Skip to content

Conversation

jkbzh
Copy link
Contributor

@jkbzh jkbzh commented Jul 17, 2018

Fixes issues #52 #51

@jkbzh jkbzh changed the title [WIP] Applemail hack WIP: Applemail hack Jul 17, 2018
@jkbzh jkbzh changed the title WIP: Applemail hack [WIP] Applemail hack Jul 17, 2018
@jkbzh jkbzh changed the title [WIP] Applemail hack WIP Applemail hack Jul 17, 2018
Apple Mail messages of type multipart/alternative are only adding
attachments to the text/html. This change allows to parse them
as multipart/mixed, which, although not ideal, makes those attachments
visible. Enable this option if text/plain is your prefered content.
to multipart/mixed, use hypermail's set_save_alts to do the same in
a cleaner way.
The Apple Mail ua header value may change depening on what device
is used. Changed set_applemail_ua_value to a list so that new ones
can be added if needed. The default list values are "Apple iPhone"
(concatenanted to "Mail (" during the check (
hypermail's set_save_alts to deal with Apple Mail. Cleaner.
The Apple Mail UA string depends on the device used. set_apple_mail_ua
is now a list where you can add new device names. The default
values are Apple and iPhone. These are concatenated with "Mail (" when
doing a UA match.
have only two alternatives: text/plain and text/html, ignore the text/html
one (and next step, make this happen only if text/plain is the prefered type).
to ignore messages that only have two alternatives,
…var.

default list of known Apple devices that can send mail
Check for valid values of save_alts
Disable applemail_mimehack if save_alts is enabled or text/html is the prefered
type.
Add a default not-in use value for old_save_alts to distinguish it
from a valid save_alts value
Rename parse_multipart_alternative_as_mixed to
parse_multipart_alternative_force_save_alts to reflect what we're doing now.
* Fixed code issues that didn't allow to decode some specific MIME arranged
  messages
* In some cases, the HTML alternative wasn't being ignored as expected
* Added missing memory deallocation
* The MIME boundary epilogue wasn't being ignored
The origlp and origbp variables used to store the parsed message
before processing alternatives weren't being reset.
- improve detectionn and handling of multipart/alternative
  and its exceptions for the applemail_hack
- when the value for applemail_ua_header was empty (""),
  the header match strncasecmp returned true
- after choosing a mime alternative, the end process didn't reinitialize
  two pointers to NULL, which could cause random issues
jkbzh added 25 commits November 4, 2018 18:00
iconv_close() wasn't always being called.
iconv's buffer wasn't being reset when there was nothing to convert
middle of a string of iso-2022-jp encoded Japanese characters.
This fix makes it replace only the domain after the "@" char and only in
an email address.
This fix makes it replace only the domain after the "@" char and only in
an email address.
rfc3676 formatted messages can have both fixed and flowed lines.
delsp wasn't always being removed
fix folding of lines with quotes
optimization: The regex comparitions didn't stop at the first match
but did all of them regardless.
A Content-Transfer-Encoding header with a missing value
would be handled the same as an unknown encoding value:
a message would be included in the body of the converted message
stating the encoding was unknown as well as the unknown encoding
value. However, if the value was missing, hypermail would use
the value of an unitialized variable.
seconds value was using the local date seconds value instead of 00.
@jkbzh jkbzh merged commit b388b70 into master Dec 20, 2019
jkbzh added a commit that referenced this pull request Dec 23, 2019
Merging to master for 2.4.0 release
jkbzh added a commit that referenced this pull request Dec 23, 2019
Merging to master for 2.4.0 release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants