-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Feris Thia wrote:
Hi G T Smith,
Find no suitable one for me. In fact, how to use MATCH variable anyway ?
Regards,
Feris
On 5/2/07, G T Smith
wrote: Feris Thia wrote: Hi All,
I have a global (catch-all) account at my ISP. In my Linux box I need to download all the emails from the account and want to delivered it to local user's inbox. I've just learned about .forward and .procmailrc and have no problem with Regular Expression.
How do I match an email's address pattern (username@abc.com) from RECEIVED field in mail's header and then resend it ?
Regards,
Feris
man procmailex
contains lots of examples...
As Herbert correctly pointed out in his email if you are wishing to get your mail from a server via pop, then fetchmail is the better alternative. (The pull option). If you are having mail forwarded to you (the push option) procmail is possibly the best option if you want to place mail from different servers in different folders etc. Example 2 to 4 on the procmailex man page are all examples of simple mail forwarding rules .... the :0 starts the recipe c is a flag (look at flag definitions) the line with * in front are the match conditions... the match conditions are matched against the header by default (again look at flag definitions), if they are satisfied the line immediately afterwards is the instruction is performed, lines between {..} are considered as one line... the ! is the forward instruction... Syntax is very terse.... - -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFGN6C5asN0sSnLmgIRApJzAJ43YYoBPI/1OBvIl1+5JOrlN3Hu2QCgjiB9 UKtlaiE1oFLVyeEM+fxG/9c= =g8VO -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org