2 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Regexp substitutions?
FromSent OnAttachments
email builderMay 21, 2005 2:31 pm 
email builderMay 21, 2005 3:00 pm 
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] Regexp substitutions?Actions...
From:email builder (emai@yahoo.com)
Date:May 21, 2005 3:00:53 pm
List:net.sourceforge.lists.courier-maildrop

--- email builder <emai@yahoo.com> wrote:

All,

What is the best way to achieve s/// functionality in Maildrop filter files? Reading the docs, all I see is that I can pattern match using the ! (supposedly processor-intensive? is there a better way?), and then reconstruct the string I desire using the $MATCH variables. It'd be nice if there was a simple substitution operator, but if not, can anyone point me to some quickie examples of how to do this "The Maildrop way"?

Is it faster/more efficient to use backticks to use something like sed instead of doing it in maildrop? I don't need anything very sophisticated: just drop off a fixed string from the end of the envelope sender and replace = (or +) with @ in the resultant string.

TIA