[courier-users] maildropfilter foreach

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 ...


Go Back   Usenet Forums > Mail Servers and Related > Courier-Imap

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-26-2007
Jimmy Ott
 
Posts: n/a
Default [courier-users] maildropfilter foreach

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:24 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0