This is a discussion on [courier-users] maildropfilter foreach within the Courier-Imap forums, part of the Mail Servers and Related category; hello to everyone, i try to implement a simple autoresponder as many of you already did or use. i have ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
hello to everyone,
i try to implement a simple autoresponder as many of you already did or use. i have a global maildroprc which redirects spam to other folder and local .mailfilter for user filters. now i want to do the following, as an example a file called "aliases" has email addresses of one user in it like follows: info@mydomain.org sales@mydomain.org office@mydomain.org i now would like to see if the receiving email is addressed to one of these email addresses to exclude mass mail senders. to check one email address i did that with the hasaddr() function. how is it possible to iterate through a file and check it with hasaddr()? i don't understand the foreach documentation in the manual, i think. is it just for regexp matches of the email headers? in a shellscript i would do that as follows: addresses=`cat aliases` for address in ${addresses[@]} do if [ hasaddr($address) ] then found=1 fi done but i'm really to stupid to do that in maildropfilters language/syntax thanks in advance for any help jimmy ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/.../courier-users |