Davide Libenzi wrote:
> On Thu, 12 Dec 2002, sergey ivanov wrote:
>>to use courier imap server I wrote line
>>===========
>>"external"[tab]"0"[tab]"1"[tab]"/var/MailRoot/for_imap.sh"[tab]"@@FILE"\
>>[tab]<my username>"@@FROM"
>>===========
>>into mailproc.tab, while for_imap.sh contains lines to convert endlines
>>as it proposed by Aaron Johnson at
>>http://www.gina.net/solution/dbmail_install.html:
>>===========
>>#!/bin/sh
>>perl -pi -e 's/\r\n/\n/g' $1
>>/usr/bin/maildrop -d $2 < $1
>>===========
>>      Everything works for me and I can use courier imap server.
>>But if the maildrop receipt file (~/.mailfilter) contains errors and
>>maildrop fails, the messages dissapear.
>>      How can I tell from external mail processing program to XMail
>>that the message should be returned to queue for another delivery attempt?
> 
> 
> You have to use @@TMPFILE and you have to purge the @@TMPFILE from your
> script when you've done with the processing.

        Davide, I am sorry, I did not understand. Do you mean that I should 
check in script envoked from mailproc.tab, and if mail delivery
fails, than pass @@TMPFILE to /usr/sbin/sendmail for next delivery 
attempt? Should this script be something like this:
==========
#!/bin/sh
perl -pi -e 's/\r\n/\n/g' $1
/usr/bin/maildrop -d $2 < $1 || /usr/sbin/sendmail @2 < $1
rm -f $1
==========
(while @1 will be @@TMPFILE passed from mailproc.tab)

        Sergey.


-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

Reply via email to