summaryrefslogtreecommitdiff
path: root/lib/message/test-mu-message.cc
AgeCommit message (Collapse)Author
2026-04-10message: improve attachment heuristicsDirk-Jan C. Binnema
Do not consider calender-invitations "attachments"; do mark as "calendar". Do recognize application/ics as calendar messages. Update mime-object to expose a message part's disposition. Change the "is-attachment" heuristic to include inline parts if they have a filename parameter in their content-disposition. Note that this doesn't change things radically; the delta is +69 and -202 for ~6500 attachments.
2025-11-19test-mu-message: use join_path for test-pathDirk-Jan C. Binnema
We were not doing that correctly, missing a "/" between dirname and filename.
2024-03-15message: flag list-unsubscribe as MailingListDirk-Jan C. Binnema
Flag message that merely have a List-Unsubscribe header with Flags::MailingList too (some marketing message have this header, yet miss "List-Id". Add a test as well.
2023-07-05update to use fmt-based apisDirk-Jan C. Binnema
Not complete, but a first big stab converting users of Mu::Error and various g_warning & friends, format to the new libfmt-based APIs.
2023-04-24message: remove control characters from subjectDirk-Jan C. Binnema
And add a unit-test. Fixes #2477
2023-04-06message: allow extracting message parts to fileDirk-Jan C. Binnema
And add unit-test. Fixes #2467
2023-03-24message: fix user-after-scope in testDirk-Jan C. Binnema
2023-03-14contact: fix quotingDirk-Jan C. Binnema
Ensure that addresses with commas are quoted. Don't 2047-encode though. Update tests.
2023-02-28mu: add müller test-caseDirk-Jan C. Binnema
2023-02-19mu-message-part: rework cooked_filename a bitDirk-Jan C. Binnema
Improve working, add a 'minimal' mode, and add some unit tests.
2023-01-13mu: test-message: add test for html text from base64Dirk-Jan C. Binnema
2022-11-07message: updates for new sexpDirk-Jan C. Binnema
Update for API changes.
2022-10-24message: use fake Message-ID when emptyDaniel Colascione
Previously, mu generated a fake message ID for messages without a Message-ID header. This fake message ID allows these messages to show in an --include-related query. However, if a message contained a Message-ID header with the value equal to the empty string, we did not generate a fake message ID in the index, and consequently, these messages failed to appear in an --include-related query. This change uses a fake message ID when the Message-ID header is absent _or_ empty.
2022-10-16view: be clearer there's no text body foundDirk-Jan C. Binnema
There may have been an html body, but mu-view only shows a text-body; make that clearer. Add a test case for an html-only message. Fixes #2349.
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-08-11tests: update test helpers and usersDirk-Jan C. Binnema
Move test-mu-common to mu-test-utils. Use mu_test_init as a wrapper for g_test_init. Update users.
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-16message: remove x-ms-has-attach checkDirk-Jan C. Binnema
Apparently, it's not very useful (marks sigs as attachments).
2022-06-10message: refactor/improve attachment heuristic a bitDirk-Jan C. Binnema
Also check for X-MS-Has-Attach
2022-06-10message: add calendar flagDirk-Jan C. Binnema
For message that contain calendar invitations
2022-06-05message: fix 'changed' testDirk-Jan C. Binnema
2022-06-02lib: improve test coverageDirk-Jan C. Binnema
Add a bunch of tests
2022-05-24tests: improve coverage a bitDirk-Jan C. Binnema
2022-05-13test: enable some moreDirk-Jan C. Binnema
2022-05-12message: Don't assume there's a sub-messageDirk-Jan C. Binnema
Also add unit-test. Fixes: issue #2256.
2022-05-05message: add cache_path per messageDirk-Jan C. Binnema
Generate a message-specific cache path when needed. Update tests, too.
2022-04-30message: improve API; improve extract_tagsDirk-Jan C. Binnema
2022-04-19server: workaround for broken message-idDirk-Jan C. Binnema
We cannot really _search_ for the broken message-id, but we can still view it. Should help for issue #2232.
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: add basic support for encrypted partsDirk-Jan C. Binnema
2022-04-16test-mu-message: improve signature check testDirk-Jan C. Binnema
Still not very good though...
2022-04-16message: move tests to test-mu-message.ccDirk-Jan C. Binnema