On 9/11/2014 7:07 PM, Sam Varshavchik wrote: > Bowie Bailey writes: > >> 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? > Right, that's it. > > maildrop never needed From_ headers, to deliver mail effectively. Its not > clear where the preline came from, there was never any need for it, ant that > really looks like some leftovers from procmail. Procmail needed preline, but > maildrop never did. > > Until about a year ago, maildrop completely ignored the From headers, so > this did nothing. Simply remove preline from the delivery chain. It is not > needed.
As I said above, I have been using preline to provide me with a Delivered-To header. There are several email addresses that get delivered into my inbox and I use this when I need to determine which address a particular email was sent to. (as you know, the To: header is not reliable for this) > • To make room for the new MIME-aware maildrop, certain, and likely obsolete > mail server interfaces (mail handed to maildrop with an mbox-style From_ > line, or with leading spurious blank lines) are no longer directly > supported; must use maildrop together with reformail. See the maildrop(1) > man page for more information. It looks like I could use reformail to get the same result, but there are no usage examples in the man pages. Is this the right format to add a Delivered-To header? DEFAULTDELIVERY="| /usr/lib/courier/bin/reformail -A'$DTLINE' | /usr/lib/courier/bin/maildrop -w 90" I think the quoting will work properly. DTLINE should be expanded into the DEFAULTDELIVERY string prior to running the reformail command. I could also call reformail as an xfilter in maildroprc. Which would be the best way to do it? -- 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