Open zuf opened 14 years ago
I fount that problem is in commit c5b9bb9e864c4aae882a68b8702a3389d2e8079a in files: lib/tmail/encode.rb lib/tmail/header.rb
Here the "reverse" patch (use patch -p1 -R): http://pastebin.com/XQCVJvWG
This was causing quite a few complaints. Appears that Exchange 2003 can't parse these messages, resulting in them getting displaying in their raw format. Reverting c5b9bb9 does resolve this issue.
The root cause was in Encode#fold_the_string. The fix is here: https://github.com/eac/tmail/commit/05940a3c9882147b090b061f7242a796515a2d1e. This commit has run in production for a month without any error reports.
We are having the same problem. It started to happen when we upgraded Rails from 2.3.5 to 2.3.8. After reading the documentation, Rails 2.3.8 uses TMail 1.2.7 and Rails 2.3.5 uses TMail 1.2.3.
The problem is the extra line space which causes our Exchange server to not send the E-mail to everyone but to display them as raw text. I tested it on Rails 2.3.11 and it was doing the same thing.
I'm running into this issue as well - it'd be good to see eac's patch pulled in.
I've the same problem (problem found with Outlook 2007, but also with gmail webapp). This was after an upgrade to Redmine 1.2.0 (and hence from Rails 2.3.5 to 2.3.11). For interested ones, this Integration issue with Redmine has been reported there: http://www.redmine.org/issues/8751
eac, won't you open a Pull Request to merge eac/tmail@05940a3c9882147b090b061f7242a796515a2d1e ? This issue is quite critical (unless you send to multiple recipients only in BCC field). I would appreciate a 1.2.7.2 bug fix release... instead long-term patching my production systems.
Hello.
I discover strange issue with TMail version 1.2.6 - 1.2.7.1. TMail adds unnecessary line breaks to headers with multiple email adresses.
For example this code:
Produces string with empty lines (double line breaks: "\r\n\t\r\n\"):
This mean end of headers part of email (and broke some clients like Outlook 2003).
TMail 1.2.3.1 produces another string: => "To: a.user@example.com, v.user2@example.com, e.smith@example.com,\r\n\tinfo@example.com, v.pupkin@example.com\r\n\r\n"
This string hasn't double line breaks in adress list.
P.S.
git bisect show me this information: