procmail
[Top] [All Lists]

processing further after successful delivery

1997-07-01 08:26:00

I'd like to do the following:

once I have figured out in which folder I want the mail to go to, I delivery
it with "rcvstore" and then I send a little arrival note (kind of like a biff
service. This note has to be sent after the mail is delivered because it
receiver has to be able to go check the folder to find the new mail).

The problem here is that the successful delivery interrupts processing of the
procmailrc file, so I don't get the chance to send the note.

How can I do that cleanly and robustly with procmail ?

I've already thought of the following:

        :0 c :blabla/.lock
        | rcvstore blabla

        :0 a
        {
                DELIVERED=yes

                :0
                | send note

                HOST=
        }

but it seems messy and I don't quite trust it (I don't know exactly how it
would behave in exceptional situations).

Any suggestion for improvement ?


        Stefan

<Prev in Thread] Current Thread [Next in Thread>
  • processing further after successful delivery, Stefan Monnier <=