[courier-users] maildrop to send mail to different account

This is a discussion on [courier-users] maildrop to send mail to different account within the Courier-Imap forums, part of the Mail Servers and Related category; I have been trying to create a maildroprc that will tell maildrop to send a message to a different account. ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-13-2006
Tom Brown
 
Posts: n/a
Default [courier-users] maildrop to send mail to different account

I have been trying to create a maildroprc that will tell maildrop to send a
message to a different account. Here is what my rule looks like:

if ( /^From:.*Faxaway-/:D )
{
exception {
to !lloyd
}
}

And the message didn't get delivered to lloyd, it just disapeared. I did put
an echo statement just before the 'to' statement. So, I know it made inside
the if statement. If I manually use /usr/lib/courier/bin/sendmail to send an
email to me from root, just using 'tbrown' as the recipient, it works. So
what happened? Where did I go wrong here?

I also tried:

if ( /^From:.*Faxaway-/:D )
{
exception {
to !lloyd@esteem.com
}
}

That didn't work either.

Here is what I ended up with:

if ( /^From:.*Faxaway-/:D )
{
exception {
to "$HOME/Maildir/.faxes/"
}
}

Then I scheduled a script to move the mail to lloyd's Maildir/new. I don't
like this solution because I assume which account the mail will be delivered
to and always look in that Maildir/.faxes to move the mail. If they change
who the faxes are sent to, 1) I have to know about it, then 2) I have to
change my script. First, I'm sure they won't tell me. Second, I'm lazy and
don't want to have to change the script each time they change who the email
is sent to.

Any suggestions would be appreciated,
Tom


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=...720&dat=121642
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/.../courier-users
Reply With Quote
Reply


Thread Tools
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

vB 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 06:52 AM.


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