On 9/11/2014 12:19 PM, Matus UHLAR - fantomas wrote: >>>> On 9/9/2014 7:45 PM, Sam Varshavchik wrote: >>>>> maildrop should be adding the From_ header only if it's delivering mail >>>>> to an mbox mailbox. Actually, maildrop will also emit a From_ line if >>>>> a message is sent to an external filter via xfilter. >>>>> >>>>> I think the message is being filtered through an xfilter command. The >>>>> command executed by xfilter emits an extra blank line before the >>>>> contents of the filtered message, and maildrop reads it back in, like >>>>> that. > > On 11.09.14 10:33, Bowie Bailey wrote: >> A little more digging found preline in my default delivery >> instructions. I am using this to get the Delivered-To header. >> >> DEFAULTDELIVERY="| /usr/lib/courier/bin/preline >> /usr/lib/courier/bin/maildrop -w 90" >> >> This seems to be what is adding the From_ header. The header does not >> appear if I remove the preline call. >> >> Yes, I do realize that preline is expected to add a From_ header... >> >> However, this is not a recent change -- it has been in place for years. >> But the From_ headers only started appearing after I upgraded to >> 0.73.1. Older messages only show the Delivered-To and Return-Path >> headers. Was there a change in preline? Or perhaps maildrop was >> previously removing the unnecessary From_ header and is no longer doing so? > preline should not cause problems. > Also, imho, forwarding a mail starting with "From " header should not cause > this kind of problems. > The question is, whether there's one empty line at the start, if courier > adds it when fed with "From " or something else causes that issue.
The "From " header only seems to cause problems (for me, anyway) with the antiquated Symantec gateway software. My guess is that it is adding the blank line to force the "From " line to be part of the body since it is not properly formatted to be in the header. I have bypassed that gateway in my current setup to avoid the problem. However, mail being delivered to a maildir or forwarded elsewhere should not have the "From " header. And prior to Courier 0.73.1 (or at least with 0.69.0 and before), it did not, so something has changed. The Symantec gateway is probably not the only email agent that would have problems with invalid header lines in an email. I haven't looked at the RFC's, but my understanding is that email header names are required to end with a colon and the "From " header is only used in mbox files as a separator. -- Bowie ------------------------------------------------------------------------------ Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users