LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   procmail correct syntax (https://www.linuxquestions.org/questions/linux-software-2/procmail-correct-syntax-720620/)

robbtek 04-21-2009 05:45 AM

procmail correct syntax
 
Hello ,

I must move email from specific sender to specific dir with procmail .

I use this syntax :

:0:
* ^From:.*SENDER@domain.tld
/home/myuser/mail/SENDER_PATH

but this work also for email received from address other_SENDER@domain.tld and not only from SENDER@domain.tld .

what is the correct syntax ?


Thanks

******* 04-21-2009 10:09 AM

I don't know if procmail handles more elaborate regex stuff so "^From:..SENDER@domain.tld" might be less greedy.


All times are GMT -5. The time now is 05:34 AM.