On Fri, 2006-02-03 at 21:08 +0200, Tomas Kuliavas wrote: > > I've got a computer generated status mail, sent once a day. Thunderbird > > and Outlook both display the message fine, but Squirrelmail pukes and > > displays the raw message body. I am sure it's something I am doing wrong > > when generating the mail, but I can't figure it out. > ... > > The catch is that Squirrelmail just shows the raw body - it does not > > seem to recognize the boundary markers or something. Thunderbird and > > Outlook do though. I'm thinking I am missing something fundamental. Any > > suggestions? > > Find programmer that wrote your php mailer and show him rfc2045. > > Chapter 4. > --- > Messages composed in accordance with this document MUST include such > a header field, with the following verbatim text: > > MIME-Version: 1.0 > --- > > SquirrelMail gets message structure from IMAP server. IMAP server fails to > parse message that violates rfc. >
We also had a problem with this (apparently it is not just 'home-brewed' php mailers that suffer this violation and getting the programmers to change their code was, of course, not the answer our customers wanted to hear. Since we use maildrop for our local mailer we ended up adding the following to our global maildroprc file: FORMAIL="/usr/local/bin/formail" if ( ! ( /^Mime-Version:.*/:h || (/^Content-Type:.*plain/:h || (! /^Content-type:.*/)) ) ) { exception { xfilter "$FORMAIL -a \"Mime-Version: 1.0\"" } } Which does what the original mailer should have done to begin with (unless the content type is plain or the content type header is absent). Sven ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 -- squirrelmail-users mailing list Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines List Address: squirrelmail-users@lists.sourceforge.net List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users