Juan Miscaro wrote:
> As before, my complete maildroprc file:
>
> /^Delivered-To:\s*.+/
> RECIPIENT=getaddr ${MATCH}
>   

add:
`echo rcpt=$RECIPIENT >> /tmp/maildrop.out`
and after each test, look in /tmp/maildrop.out to see if the variable is 
really defined.
> # split the recipient into user and domain parts
> USER=""
> DOMAIN=""
> if ( ${RECIPIENT} =~ /(.*)@([EMAIL PROTECTED])/ )
> {
>    USER=${MATCH1}
>    DOMAIN=${MATCH2}
> }
> else
> {
>   #no domain part
>   USER=${RECIPIENT}
> }
>
> # extract extension from user-part
> # we assume '+' is the delimiter. if you use another char, adjust..
> EXTENSION=""
> if ( ${USER} =~ /([^\+]+)\+(.*)/ )
> {
>   #extension found
>   USER=${MATCH1}
>   EXTENSION=${MATCH2}
> }
>
> MAILDIR="/var/spool/virtual_mailboxes/example.com/$USER/Maildir"
>
> if (/^X-Spam-Status: Yes/)
> {
>   to $MAILDIR/.Polluriel/
> }
>
>   

now did the message that you passed to maildrop contain a Delivered-To 
header?




-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to