:0 # inside the square braces are a caret and a space.
* ^^From \/[^ ]+
{ FROMADDR = $MATCH }
Hello!
The above works great! No (name) or name <address> or anything! It does
say that it's from the list... but that's not an issue as I want every
list mail into a folder and that works ok.
I have some questions on your syntax here, I've tried comparing it to
sed/perl regular expressions but I can't!
If I understand:
^^From = searches the first line (or first instance?) of what comes after
From
\/ something = remove that something?
[^ ] = starts with one space
+ = save the rest of this??
It's just that I've being trying to decode this (I searched and couldnt
find any good tuts on this) so I can do a similar thing and extract the
domain without using awk or formail...
I got as far as:
:0
* ^^From \/[^ ]\/(.*)@+
{ DOMAIN = $MATCH }
which saves domain as off@ for some reason.
I was even close enough toget @sixbit.org! I just needed to take off the @
but then I changed it to the above it it's even more horrible!!
If you have a minute or two could you (or someone) explain how to do this?
I'd rather understand why istead of pasting examples.
Thanks,
Poff
poff(_at_)sixbit(_dot_)org
SDF Public Access UNIX System - http://sdf.lonestar.org
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail