1 message in net.sourceforge.lists.courier-maildrop[maildropl] Maildrop regexp need help!
FromSent OnAttachments
Alex PitaNov 21, 2002 3:37 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] Maildrop regexp need help!Actions...
From:Alex Pita (newm@softhome.net)
Date:Nov 21, 2002 3:37:40 am
List:net.sourceforge.lists.courier-maildrop

Hello maildrop experts,

I have postfix+maildrop+mysql working. I need a little help about some maildrop regexp. The problem which i have is that only with the next sintax i obtained a correct comportament!

[root@dinu etc]# cat maildroprc if ( /^From:.*<al@test.ro>/ ) { cc "/home/mailusers/test.ro/titi/Maildir/" } [root@dinu etc]# To be short: when al@test.ro send and email to anyone, i want a copy of each email to be sent to user ti@test.ro! This sintax is working but is not easy to setup the complet path to titi's mailbox account!

My question is: Does not exist any posisbility to replace cc "/home/mailusers/test.ro/titi/Maildir/" with other sintax using email address, like cc ti@test.ro ?

If i try to use: [root@dinu etc]# cat maildroprc if ( /^From:.*<al@test.ro>/ ) { cc !ti@test.ro } [root@dinu etc]#

Now al@test.ro send a message to mi@test.ro

The copy of email is placed in /home/mailusers/test.ro/mimi/0 file and not in /home/mailusers/test.ro/titi/Maildir/ directory!!!!

I tryed to redefine some predefined variabiles like DEFAULT=$HOME/Maildir/ but whithout any result! I want to mention that i use only virtual acounts and $HOME var, is extracted from mysql database.

mysql> select id, home, maildir from users; +-----------+--------------------------------+----------+ | id | home | maildir | +-----------+--------------------------------+----------+ | mimi.3323 | /home/mailusers/test.ro/mimi/ | Maildir/ | | alex | /home/mailusers/test.ro/alex/ | Maildir/ | | titi | /home/mailusers/test.ro/titi/ | Maildir/ | | alexa | /home/mailusers/test.ro/alexa/ | Maildir/ | +-----------+--------------------------------+----------+

Any ideas or some maildrop example will be wellcome.

Best regards, Alex