Subject: Stopping mail from being sent?

From: Lukasz Opyrchal <[email-masked]>
Date: Wed, 24 Mar 2004 16:20:47 -0500 (EST)

Hello,

Let's say I use a sending-filter to process all mail that I send.  I was 
wondering if there is a way for my filter program to stop pine from 
sending the particular mail (if the filter decides that a particular mail 
should not be sent).

I'd prefer to stop message sending completely (I don't want to just erase 
the message content and send an empty message).

I would appreciate any help on whether this can be done and how.

Thanks

Lukasz

-------------------------------------------------------------------------
| Lukasz Opyrchal                    |           University of Michigan |
| http://www.eecs.umich.edu/~lukasz  |  Dept. of Electrical Engineering |
| [email-masked]              |             and Computer Science |
-------------------------------------------------------------------------

-- 
-----------------------------------------------------------------
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/pine/pine-info/
-----------------------------------------------------------------

---

From: Eduardo Chappa <[email-masked]>
Date: Wed, 24 Mar 2004 13:54:06 -0800 (PST)

*** Lukasz Opyrchal ([email-masked]) wrote today:

:) Let's say I use a sending-filter to process all mail that I send.  I 
:) was wondering if there is a way for my filter program to stop pine from 
:) sending the particular mail (if the filter decides that a particular 
:) mail should not be sent).
:) 
:) I'd prefer to stop message sending completely (I don't want to just 
:) erase the message content and send an empty message).

Make your filter remove the file that it processed. When Pine does not 
find it, it will send you an error message. A more elegant way is to make 
the filter exit with a return value different from zero, but that I don't 
recall correctly, so try it before you use.

Eduardo
http://www.math.washington.edu/~chappa/pine/