diff options
author | June McEnroe <june@causal.agency> | 2020-11-29 18:19:14 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-11-29 18:19:14 -0500 |
commit | dff54eaeea5cdd7e5a16ad279e8691225d6b15c2 (patch) | |
tree | 10d84a760342fd4c5ddb15132ff85e70a8ddc520 | |
parent | Fix section spec of multipart/alternative fallback export (diff) | |
download | bubger-dff54eaeea5cdd7e5a16ad279e8691225d6b15c2.tar.gz bubger-dff54eaeea5cdd7e5a16ad279e8691225d6b15c2.zip |
Fall back to multipart export for alternative without suitable inline
1. Otherwise a single part exported as an attachment will generate a <li> without surrounding attachment <ul>. 2. This renders mimedown[1] messages more pleasingly, rather than just choosing the HTML part. [1]: https://github.com/begriffs/mimedown
Diffstat (limited to '')
-rw-r--r-- | export.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/export.c b/export.c index f060c0b..d195104 100644 --- a/export.c +++ b/export.c @@ -231,17 +231,9 @@ static int exportHTMLBody( &part->parts.ptr[i], dataCheck(body, List).list.ptr[i] ); } - struct Data num = { .type = Number, .number = part->parts.len }; - listPush(section, num); - int error = exportHTMLBody( - file, envelope, section, - &part->parts.ptr[part->parts.len - 1], - dataCheck(body, List).list.ptr[part->parts.len - 1] - ); - section->len--; - return error; + } - } else if (part->multipart) { + if (part->multipart) { int error; bool attached = false; for (size_t i = 0; i < part->parts.len; ++i) { |