summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2020-03-07Merge branch 'cleanup-libimagerror'Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-06Remove unused str error handling moduleMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-06Remove unused io error handling codeMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-06Remove unused ExitUnwrap traitMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-06Remove unused iter extensionsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-01Add more trace output for Viewer implementationMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-01Change implementation to use the iterator extensionsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-01Merge branch 'viewing-iterator' into masterMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-01Optimize: Stop iteration for viewing on broken pipe errorMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-01Add viewer for viewing all entries from an iteratorMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-01Merge branch 'rt-reporting-iterator' into masterMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-01Fix: Also print if output is a data pipeMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-01Add more trace outputMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-01Add iterator extension for reporting from iteratorMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-01Fix: Simplify selecting what to printMatthias Beyer
The logic before that change was a bit bogus, as it printed stuff which was not expected. Now, things are cleared up: * Without -P, pending todos are always printed * With --deleted, deleted todos are printed * With -D / --done, done todos are printed * With -H / --hidden, hidden todos are printed No option influences the other. Therefore, the --deleted flag had to be added to the CLI. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-01Merge branch 'runtime-more-io-control' into masterMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-01Update tests for new runtime flagsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-01Update docs for new runtime flagsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-01Adapt flag forwarding to new runtime flagsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-01Use more fine-granular function as Runtime::ignore_ids() was removedMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-01Allow more fine-granular control over IO behaviour in runtimeMatthias Beyer
This patch removes the --ignore-ids option and adds --pipe-input / -I and --pipe-output / -O instead. The behaviour of -IO is the same as --ignore-ids was before, but this change gives the user the option to enable only one of both (input or output, or both). Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-02-29Merge branch 'update-indicatif' into masterMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-02-29Add some scopes for better readabilityMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-02-29Include progressbar in iteratorMatthias Beyer
indicatif got a new feature where the iterator can be used directly with the ProgressBar object. Change the code to use that. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-02-29Update indicatif: 0.12.0 -> 0.14.0Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-02-29Fix: Disable cargo-denyMatthias Beyer
Because cargo-deny fails to compile right now, we disable it here. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-02-29Fix: Also write newlinesMatthias Beyer
Fixes: e7e5d306458 ("Remove calls to exit() and replace them with error propagation up to main()") Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-02-28Merge branch 'imag-unstable' into masterMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-02-28Get the program name from the name of the executableMatthias Beyer
This enables us, during the development phase, to install in-development binaries as "imag-unstable-<command>" (for example), so that we have "imag" as a release binary in PATH and "imag-unstable" as a development binary in PATH. The change also enables the "imag" binary itself (if it is named "imag-unstable" for example) to call imag-unstable subcommands, because it calls "<own binary name>-<command>", for example "imag-unstable-diary" instead of "imag-diary". Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-02-28Use existing variable instead of hardcoding appnameMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-02-28Merge branch 'update-travis-dist' into masterMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-02-28Merge branch 'logger/remove-modules' into masterMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-02-28Remove module-based loggingMatthias Beyer
This patch removes the module-based logging mechanism. This mechanism was introduced so that the configuration file is able to define which imag module logs what. This was a fine-granular setting, but most users won't actually touch it. It was more of a debugging-thing for developers. I rarely used it during development and it only introduced more headaches. It also was not updated (as in the configuration file missed a few modules, others where not removed despite the module did not exist anymore). All in all, it was rather unmaintained and just "too much". Thus, remove this thing completely. Developers know how to use grep. This also automatically fixes bugs where `imag --debug command` did not output any debugging log, but was expected to. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-02-28travis: xenial -> bionicMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-02-28travis: trusty -> xenialMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-02-28Remove module logging settingsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-02-28Fix: If global loglevel allowes record to be logged, log itMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-02-28Add helper type for passing data to Handlebars::render()Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-02-28Add IndentionHelper for handlebars templatingMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-02-28Make error output in handlebars render error more verboseMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-02-21Add test whether Store::is_borrowed() works as expectedMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-02-15Fix: Allow "mark" subcommand to be passed IDs directly on CLIMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-02-15Fix: Subcommand is named "deleted"Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-01-03Fix: Use module path when getting mail instead of using plain MessageId ↵Matthias Beyer
object in String representation Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-01-03Outsource listing of a single mail to helper functionMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-01-03Merge branch 'libimagmail/neighbors' into masterMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-01-03Merge branch 'imag-mail-unread' into masterMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-01-03Add MailStore::thread_root_of()Matthias Beyer
This patch adds a function to find the root node of a mailthread (as in In-Reply-To header). Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-01-03Add Mail::get_thread() for getting all mails in the same thread as this mailMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-01-03Add imag-mail-unread commandMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>