summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
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>
2020-01-02Fix: Set isflag when creating a mail in the storeMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-01-02Fix: Do not assume a mail file to be valid UTF8Matthias Beyer
We did assume that the file contained valid UTF8 when reading to `String`. Now we read to a byte buffer, which removes the (wrong) assumtion. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-01-02Store::retrieve_mail_from_path() should have a flag to force making a ref ↵Matthias Beyer
out of the entry Because if the entry already exists, we might override the ref anyways. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-01-02Fix: Clap argument nameMatthias Beyer
The clap argument name is written with dashes instead of underscores. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-01-01Update copyright years to 2015-2020Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-25Rewrite "show" Command to be able to read ids from stdinMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-25Fix: Remove Box::leak() call in runtime application abstractionMatthias Beyer
This patch removes the leakage in the runtime application abstraction. Also fix formatting. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-24Fix: Make "list" default command of imag-tagMatthias Beyer
The "list" command is advertised as default command for imag-tag. This commit fixes the implementation so that the binary actually behaves this way. For this, the list() function gets a new parameter which tells it whether there is a subcommand object to be expected in the Runtime. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-24Fix: Drop habit before getting instancesMatthias Beyer
Because when showing an instance, we try to get the comment for the instance from the habit template, which tries to Store::get() the template in HabitInstance::get_comment(). This fails if the template is already borrowed, thus drop the borrow before the whole thing. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-24Fix: Date in documentationMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de> (cherry picked from commit 343a409df938d3fb9197b5aa8f7d551b1a8dd151)