summaryrefslogtreecommitdiff
path: root/lib/message/mu-message.hh
AgeCommit message (Collapse)Author
2025-09-03store: remove some _unlocked functions, update clear_labelsDirk-Jan C. Binnema
They don't add much value, let's remove. Rework clear_labels in terms of update_labels.
2025-08-15message: add support for labels + testsDirk-Jan C. Binnema
Labels are strings associated with messages, which can be used for searching them.
2025-05-24message: retain non-file flags when movingDirk-Jan C. Binnema
The content-flags won't change, and the unread-flag can be re-calculated. Add a unit test, and some small doc improvements. Fixes #2831.
2024-06-01message: add default ctorDirk-Jan C. Binnema
Useful for stuffing messages in async-queues
2024-05-01lib: centralize xapian include, enable move semanticsDirk-Jan C. Binnema
Only include xapian.h in one place, so we can have consistent options. With that in place, we can enable C++ move semantics. We don't do anything with that yet, but we check in the meson.build file to see if we have the required xapian version.
2023-09-09support xapian ngramsDirk-Jan C. Binnema
Xapian supports an "ngrams" option to help with languages/scripts without explicit wordbreaks, such as Chinese / Japanese / Korean. Add some plumbing for supporting this in mu as well. Experimental for now.
2023-08-09message & friends: make formattableDirk-Jan C. Binnema
So we can easily debug-print them.
2023-05-11message: try to detect body text languageDirk-Jan C. Binnema
Try to detect the language of the e-mail body and make it searchable.
2023-04-06mu: allow relative message paths in mu commandsDirk-Jan C. Binnema
2022-11-07message: updates for new sexpDirk-Jan C. Binnema
Update for API changes.
2022-08-11message: update references() implementationDirk-Jan C. Binnema
Clean up the implementation at bit, and filter out 'fake' message-ids, such as the ones from protonmail. Update documentation. Add Mu::Message::thread_id(). This fixes #2312.
2022-07-13message: sanitize maildirDirk-Jan C. Binnema
Remove trailing '/' in maildirs, since people have that (like "/foo/"), and earlier version didn't complain about that. Fixes #2298
2022-06-04mu-maildir: refactor some duplicate codeDirk-Jan C. Binnema
mu-flags & mu-maildir were having some duplicate code; refactor it into mu-message-file.{cc,hh}
2022-06-02lib: improve test coverageDirk-Jan C. Binnema
Add a bunch of tests
2022-05-21message: make it easier to create heap-allocated messagesDirk-Jan C. Binnema
We need this for guile to coƶperate with its garbage collector.
2022-05-15message: augment cache-path() so it supports subpartsDirk-Jan C. Binnema
Take an optional index parameter for a *subpart*. This is for the case where we save attachments from a message (in particular, when forwarding). We can't save them in the same directory for the (rare) case when there are multiple attachments with the same name. And we don't want to uniquify the name, since that shows up in e.g. the forwarded file name. This can be solved by saving each in their own indexed subdir.
2022-05-05message: add cache_path per messageDirk-Jan C. Binnema
Generate a message-specific cache path when needed. Update tests, too.
2022-05-05message/document: allow updating flagsDirk-Jan C. Binnema
Some flags (such as 'personal') can only be set just before storing; so allow for update the flags.
2022-05-05message/field: cache the message's sexpDirk-Jan C. Binnema
Keep it in the store; much faster than generating on the fly.
2022-05-05mu: add "modified" fieldsDirk-Jan C. Binnema
Add a new "modified" field for checking the last modification time of the message.
2022-04-30message: add docid param to sexpDirk-Jan C. Binnema
2022-04-30message: improve API; improve extract_tagsDirk-Jan C. Binnema
2022-04-30message: implement update-after-moveDirk-Jan C. Binnema
Allow for in-place updating of a moved document; i.e., without re-parsing
2022-04-30message: refactor file handling, add ::mtime()Dirk-Jan C. Binnema
2022-04-30message: add move constructorDirk-Jan C. Binnema
2022-04-18message: improve support for decryptionDirk-Jan C. Binnema
Found a small leak: https://github.com/jstedfast/gmime/pull/124/commits
2022-04-16message: better deal with test messagesDirk-Jan C. Binnema
Allow for specifying path / maildir for tests messages Improve fake_msg_id
2022-04-16message: implement conversion to sexpDirk-Jan C. Binnema
Like mu-msg-sexp, but for Mu::Message
2022-03-28message: make maildir optionalDirk-Jan C. Binnema
2022-03-26message: update implementationDirk-Jan C. Binnema
Add more of the Message class (and various helpers), which are to replace all the `mu-msg-*` code. Add more tests.
2022-03-26message: move to lib/message, update namingDirk-Jan C. Binnema
Basically, move/rename lib/mu-message* to lib/mu-*. Add the beginnings of a Message class.