Commit Graph

16 Commits

Author SHA1 Message Date
c0887603c5 guile: avoid body duplication
In message, don't re-fill when unneeded. Add tests.

Fixes #2802.
2025-02-05 21:16:15 +02:00
606f4be74b guile: Fix the mu:body message method
Somewhere along the way, the body-txt and body-html fields were merged
into a single body field. Later, commit 8eac392221 ("guile: re-enable
the guile support") finally removed support for Field::Id::BodyHtml from
mu:c:get-field.

Unfortunately mu.scm and the documentation are still stuck in the past, so
update them. mu:body-txt is now a synonym for mu:body, and mu:body-html
always returns #f.

I wanted to add a mu:body test also for the rfc822.1 message, but there's
currently a bug where its body text is is duplicated (issue #2802), so the
test would fail.
2025-01-04 20:51:14 -03:00
a703f00214 guile: tests: Fix encoding of "atomic" message
It's stated to be US-ASCII with 7-bit encoding, but it contains the
UTF-8 character '—'.

Fixing the encoding very slightly changes the average size of messages
reported by mu:average, so adjust the new expected value.
2025-01-03 16:33:06 -03:00
2f5602b938 unit tests: improve
and add a new one for the indexer
2023-09-12 21:38:57 +03:00
ca5bb06457 guile: use mu-message-fields 2022-03-07 06:50:18 +02:00
aa70bf1920 Merge branch 'pr-1111'
Fix a bunch of conflicts, tests.
2018-08-18 10:29:40 +03:00
c0fce88540 fix file size in test-mu-guile.scm changed by e97ec2d5
Signed-off-by: Chirantan Ekbote <chirantan.ekbote@gmail.com>
2013-05-28 22:46:09 -07:00
cbe595483f * guile: update guile tests for slightly updated testcases 2013-05-15 00:18:05 +03:00
87e3c5d3f5 * cosmetic 2013-05-13 00:03:23 +03:00
855e81db99 * update copyright years 2013-03-30 11:32:07 +02:00
241af50e97 * update / add testcases for string normalization 2012-12-09 13:34:16 +02:00
30f93663b0 * lib: do some more escaping of body text 2012-11-18 22:09:56 +02:00
89b52d7eed * guile: update test case 2012-08-09 10:39:45 +03:00
543f4a1926 * guile: some more improvements 2012-07-15 12:44:52 +03:00
8e3fbe380e * guile: some general improvements / cleanups in module loading, object
visibilty. turn some integers (such as message priority, log level, contact
  type) into symbols.
2012-07-14 12:32:15 +03:00
9bddf2f0b9 * guile: beginnings of some unit tests 2012-07-12 21:19:59 +03:00