summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2020-06-04Mark function to allow return let binding in clippyreimplement-mailMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-04Collapse nested if-elseMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-02builds: debian: Add libnotmuch-devMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Fix imag-bin for use of anyhowMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Fix libimagmail for anyhow usageMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Make error message more verboseMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Fix template for new variables and newlinesMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Trim name value before passing it to handlebarsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Make to-field parsing available for all recipient-fieldsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Do not use helper but parse things into variablesMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Fix: Use NameAddr to parseMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Add helper to get name from "to"/"cc"/"bcc" fieldMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Add helpers that mark whether cc/bcc is setMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Fix example imagrc: we do not have a "message_id" helperMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Set is_in_reply_to in templateMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Add implementation for generate_message_id()Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Add getters with "add_getters_setters" for MailConfigMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Add configuration for sending and receiving mailMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Add implementation for crafting new mailMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Add ui for creating a new mailMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Update dependenciesMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01handlebars: 2 -> 3Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de> (cherry picked from commit 33a2c03ea8361ae61c162e307e10bc7266c1b249)
2020-06-01Remove version patchlevel restrictionsMatthias Beyer
And update some crates. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Revert "Add check whether Store::is_borrowed() works"Matthias Beyer
This reverts commit 59f37c5b750e6f98531e674848b6bf03929651c3. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Make use of the new `quick` parameter in the libimagmail interfaceMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Add `quick` parameter to MailStoreWithConnection::import_with_query()Matthias Beyer
See the newly introduced comment. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Fix: Rename to match naming schemeMatthias Beyer
"create" should be used for a function that tries to create an entry, but fails if it already exists. "retrieve" is used for a function that creates an entry if necessary. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Add MailStore::entry_exists_by_id()Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Move import function to own moduleMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Add script to fuzzy-select mailMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Add tagging when importingMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Add settings for tagging with imag-mailMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Make import function capable of importing tagsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Move configuration handling to dedicated typeMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Remove old format fetchingMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Reimplement imag-mail to take queries from stdinMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Remove unused functionMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Remove unused importMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Remove notmuch thread wrapping codeMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Remove unused functionMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Remove unused functionMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Remove mailtree moduleMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Add mailtree testing functionsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Add helper function to fill arena with testing dataMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Print trace output before listing mailMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Collect all mails before printingMatthias Beyer
This patch changes the algorithm for printing the mailtrees. It does a unique().sort() before actually printing, so that mails apparing in two trees are not printed twice. This is an experimental change, not sure whether it works as intended. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Remove sanity-checkMatthias Beyer
This check was added during development. It sanity-checks whether an Entry was already borrowed in the store and ignores that entry then in the iteration. Of course, just ignoring is not a nice thing as it might hide things that are expected in the iteration. Thus, remove this sanity check here. This is an individual commit because we might need to see this in the history, so that we can revert this commit if need be. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01imag-mail: ReimplementMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01libimagmail: Rewrite backend to use notmuchMatthias Beyer
This commit rewrites libimagmail to use notmuch as backend for mail operations. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-01Add check whether Store::is_borrowed() worksMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>