procmail
[Top] [All Lists]

RE: Replacing characters in $MATCH, and folders with periods

2004-04-09 06:43:54
On Fri, Apr 09, 2004 at 12:10:25AM -0500, Timur Tabi wrote:
I have the following recipe:

:0
* ^TO_ \/(_dot_)*(_at_)subdomain\(_dot_)domain\(_dot_)com
* MATCH ?? ()\/[^(_at_)]+
.$MATCH/


Looking again at this briefly, what the hell is "^TO_",
which is not a procmail macro token and is not likely to
match on anything at all; and why do you have a space
after it before the match token?

I can't understand how you could ever have a match on this.

Looking further at my proposed solution to your alleged problem,
I can't even reproduce your problem.  (So my solution isn't
necessary.)  I have a message in my current mail archive with 
a dot in the local part of the address, which I used as
a guinea pig in my (to mix metaphors) test harness.

Recipe:

 MATCH
 :0
 * ^To:(.*\<)?\/[a-z0-9_+.-]*@
 * MATCH ?? ^^\/[^(_at_)]+
 ./tmp/.$MATCH/

Log extract:

 procmail: Assigning "MATCH"
 procmail: Matched "track.datek@"
 procmail: Match on "^To:(.*\<)?\/[a-z0-9_+.-]*@"
 procmail: Matched "track.datek"
 procmail: Match on "^^\/[^(_at_)]+"
 procmail: Assigning
"LASTFOLDER=./tmp/.track.datek/new/1081516664.15566_0.panix5.panix.com"
 From 
Documents(_dot_)450453(_dot_)16436(_dot_)0(_at_)compliance(_dot_)ameritradeclearing(_dot_)com
  Sat Apr
3 05:59:14 2004
 Subject: Your Ameritrade Confirmation
  Folder: ./tmp/.track.datek/new/1081516664.15566_0.panix5.panix.com
1339


So I don't see your problem (except that your recipe as provided will
never work).


Dallman


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail