Bowie Bailey writes:

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?

maildrop has an -A option that will do this for you.

And, if you set DEFAULTDELIVERY to exactly what you see in /etc/courier/maildrop, Courier will silently add this option for you, when it invokes maildrop.

It's the additional -w 90 option that keeps Courier from automatically adding the -A option, in your case. It's best to remove this option completely. If don't really need it, just set DEFAULTDELIVERY=/usr/lib/courier/bin/maildrop and everything else will fall into place.

Attachment: pgpQoBalp22tQ.pgp
Description: PGP signature

------------------------------------------------------------------------------
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
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to