Hi Timo,
Yes, your patch got it right! The
| Your message was automatically rejected by Dovecot Mail Delivery Agent. | | The following reason was given: | Quota exceeded
mail passes Spamassassin even when the original mail is MIME-encoded. No bad-headers anymore. Thanks!
Mark
PS. It might be nice if the original subject is used instead of "Automatically rejected mail", but that's a detail.
PPS. Your advice not to use relative paths in maildir helped. No more open failures when deliver wants to write the .dovecot.lda-dupes file.
-----Oorspronkelijk bericht----- Van: Timo Sirainen [mailto:tss@iki.fi] Verzonden: donderdag 2 november 2006 21:54 Aan: Mark Ruijs CC: dovecot@dovecot.org Onderwerp: Re: [Dovecot] deliver + quota failure
On Sun, 2006-10-29 at 10:45 +0100, Mark Ruijs wrote:
I also found the cause of why the Quota Exceeded message won't pass the spam/virusfilter in some cases. It only happens when the original mail is MIME. Then the reply mail contains the original mail, but only the headers. According to the Perl library MIME::Parser, the mail has a "unexpected end of preamble". It happed to be the following part: .. My C is a bit rusty. Sure someone here can add a check in the while-loop to suppress output of the "Content-Type.boundary" part?
OK, done. I didn't test this properly, so please reply if this works or not:
http://dovecot.org/list/dovecot-cvs/2006-November/006658.html