--- mouss <[EMAIL PROTECTED]> wrote:
> Juan Miscaro wrote:
> >
> >>> # split the recipient into user and domain parts
> >>> USER=""
> >>> DOMAIN=""
> >>> if ( ${RECIPIENT} =~ /(.*)@([EMAIL PROTECTED])/ )
> >>>
>
> oops. This should be:
>
> if ( ${RECIPIENT} =~ /(.*)@([EMAIL PROTECTED])/ )
>
> but it is unrelated to your problem.
>
>
> Back to your problem.
>
> if the message was not tagged as spam, then it will follow normal
> flow
> and will be delivered to $DEFAULT.
>
> Normally, this variable is obtained from authdaemon. you can run
> maildrop manually with a -V flag to get more infos.
>
> or try setting
>
> DEFAULT="/var/spool/virtual_mailboxes/example.com/$USER/Maildir/"
> (note the trailing slash in Maildir/)
Thanks. I will try that next. Meanwhile I found something.
I added echo statements for $USER and $DOMAIN and saw that these
variables remain empty. $RECIPIENT however remains good
('[EMAIL PROTECTED]'). This is maildroprc:
/^Delivered-To:\s*.+/
RECIPIENT=getaddr ${MATCH}
# split the recipient into user and domain parts
USER=""
DOMAIN=""
if ( ${RECIPIENT} =~ /(.*)@([EMAIL PROTECTED])/ )
{
USER=${MATCH1}
DOMAIN=${MATCH2}
}
else
{
#no domain part
USER=${RECIPIENT}
}
`echo rcpt=$RECIPIENT >> /tmp/maildrop.out`
`echo user=$USER >> /tmp/maildrop.out`
`echo domain=$DOMAIN >> /tmp/maildrop.out`
# 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"
`echo maildir=$MAILDIR >> /tmp/maildrop.out`
#DEFAULT="/var/spool/virtual_mailboxes/example.com/$USER/Maildir/"
if (/^X-Spam-Status: Yes/)
{
to $MAILDIR/.Polluriel/
}
Juan
Ask a question on any topic and get answers from real people. Go to
Yahoo! Answers and share what you know at http://ca.answers.yahoo.com
-------------------------------------------------------------------------
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