On 9/12/2014 6:40 PM, Sam Varshavchik wrote:
> 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.

I need the -w 90 in order to send the quota warning messages.

I was able to get it to work using the -A option.  I found that I had to 
delay the expansion of the $DTLINE variable, which makes sense.

This was the working option:

DEFAULTDELIVERY="| /usr/lib/courier/bin/maildrop -A \"\$DTLINE\" -w 90"

Thanks for all the help!

-- 
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

Reply via email to