6 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] .mailfilter rule
FromSent OnAttachments
PayalNov 24, 2002 7:49 pm 
ecu...@encontacto.netNov 24, 2002 8:16 pm 
Mike LeoneNov 24, 2002 8:50 pm 
Chris GamacheNov 25, 2002 5:35 am 
Chris GamacheNov 25, 2002 5:39 am 
PayalNov 25, 2002 9:34 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] .mailfilter ruleActions...
From:Mike Leone (tur@mike-leone.com)
Date:Nov 24, 2002 8:50:43 pm
List:net.sourceforge.lists.courier-maildrop

Payal (pay@hotpop.com) had this to say on 11/24/02 at 22:52:

Hi, I had some sample .mailfilter files with me. In one I had,

if (/^--$/:b) { xfilter "sed -e 's/^--$/-- /'" log "Sig Dashes corrected" }

Can someone please explain the if and xfilter line? Also, why does one need to correct the signatures dashes?

Technically, a signature is separated from the main body of an email by 2 dashes and a space ("-- ") at the begning of a line, and it must be alone on that line.. And some MUAs can be configured to automatically strip signatures upon rely, among other things. And if there is no valid separator, this signature-stripping won't work.

So the if looks for "--" - note no space. IOW, an invalid signature delimiter. And the xfilter calls on the sed utility to make it a valid signature delimiter.