summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
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>
2020-01-03Merge branch 'imag-mail/scan' into masterMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-01-03Merge branch 'libimagstore/is-borrowed' into masterMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-01-03Add Store::is_borrowed(StoreId)Matthias Beyer
Add a function to Store to check whether a StoreId is borrowed. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-01-03Merge branch 'imag-mail/list-format' into masterMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-01-03Merge branch 'libimagmail/flags' into masterMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-01-03Add support for format in configuration for imag-mail-listMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-01-03Add helper functions to check whether a mail is passed, replied,...Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-01-03Add Mail::{get_,neighbors}()Matthias Beyer
This patch adds functions to get the direct neighbors of a mail. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-01-03Add MailIterator for iterating over entries that are mailsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-01-03Add function to get char representation of flagMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-01-03Add function to get flagsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-01-03Add flags module for flags representation as strong typesMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-01-03Rewrite scan function with option to fetch pathes in parallelMatthias Beyer
This does not result in parallel store accessing, but only parallel fetching pathes from the filesystem. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-01-03Add imag-mail-scan command for scanning directory for new mailMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-01-03Remove feature to print content as wellMatthias Beyer
When _list_ing a list of mails, we should not show the content at all. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-01-02Rewrite Hasher::hash() for MailHasherMatthias Beyer
Because message ids should be unique, we consider this to be safe. This should seems to be the best practice. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-01-02Fix: Do not assume UTF8 encoding of data to hashMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-01-02Optimization: Get the Message-Id from the header, if it is thereMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-01-02Merge branch 'libimagmail/message-id-type' into masterMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-01-02Use MessageId type where applicableMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-01-02Impl Display for MessageIdMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-01-02Add more impls on MessageId typeMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>