Subject: Fcc as process, not file

From: Jan Vicherek <[email-masked]>
Date: Fri, 21 Feb 1997 05:05:44 -0500 (EST)

Hi.

   Instead of saving it into sent-mail folder directly, I would like to do
some additional processing on *every* msg that's being sent before saving
it to the sent-mail folder.

   How do I do that ?

   I can think of a few ways :
      o  define a sending filter, but then I couldn't combine it with
other sending filters, like PGP.
      o  send a copy to a user that will do the processing via procmail,
but this is not elegant at all -- I would rather call procmail directly,
as in third option :
      o  in Fcc field, instead of specifying "sent-mail", specify
something like : "|my_process" which would execute this process instead !

      It appears to me that the third option is the most elegant one, but
requires some coding. Could someone :
      o  advise me on a better way to do it, OR
      o  help me get it coded ?

        Thanx,

            Jan

 -- Gospel of Jesus is the saving power of God for all who believe --
Jan Vicherek ## To some, nothing is impossible. ##  www.ied.com/~honza
    >>>    Free Software Union President  ...  www.fslu.org    <<<
Interactive Electronic Design Inc.    -#-    PGP: finger [email-masked]
 - - - -  I wonder whether Jesus had available Unix drivers  - - - -

---

From: "Robin S. Socha" <[email-masked]>
Date: Fri, 21 Feb 1997 15:23:32 +0100 (CET)

On Fri, 21 Feb 1997, Jan Vicherek wrote:

  >   Instead of saving it into sent-mail folder directly, I would like to
  >do some additional processing on *every* msg that's being sent before
  >saving it to the sent-mail folder.
  >
  >   How do I do that ?
  >
  
Wrong. At least with procmail, you can do that... and a few million things
more... >;->  

[...] 

  >      o  advise me on a better way to do it, OR

Sure, check Nancy McGough's filtering faq. Also, check the entire procmail
package *thoroughly*. Everything you need is in there. If in doubt, consult
the procmail mailing list.

Cheers,
Robin

++---+---+---+---+---+---+---+---++---+---+---+---+---++---+---+---+---+---++
   Robin S. Socha	 Political Science Dept.	Tel: +49(0228)22217-8
   Bonner Talweg 56	 Bonn University		Fax: +49(0228)22217-9
   53113 Bonn		 email: [email-masked]
++---+---+---+---+---+---+---+---++---+---+---+---+---++---+---+---+---+---++
       On the package it said: "Requires MS Windows 3.11 or better"  
	       			      ...  so I got myself Linux. 
++---+---+---+---+---+---+---+---++---+---+---+---+---++---+---+---+---+---++

---

From: Jan Vicherek <[email-masked]>
Date: Fri, 21 Feb 1997 17:00:51 -0500 (EST)

> Wrong. At least with procmail, you can do that... and a few million things

    I know I can do that with procmail. But I don't know how to tell Pine
that I want to process all msgs with one of the sending filters, and then,
transparently, with the procmail filter, instead of saving it into
sent-mail.

     Thanx

          TTYL,

             Jan

---

From: Jan Vicherek <[email-masked]>
Date: Sat, 22 Feb 1997 00:18:25 -0500 (EST)

> the procmail mailing list.

   I read the whole FAQ, but didn't find a way to tell Pine to process
every msg with a certain process before saving it to sent-mail.

     Any hints ?

           Thanx,

                Jan

---

From: "Robin S. Socha" <[email-masked]>
Date: Sat, 22 Feb 1997 08:45:37 +0100 (CET)

On Sat, 22 Feb 1997, Jan Vicherek wrote:
  >>   >      It appears to me that the third option is the most elegant
  >>   >one, but requires some coding. Could someone :
  >> Sure, check Nancy McGough's filtering faq. Also, check the entire
  >> procmail package *thoroughly*. Everything you need is in there. If in
  >> doubt, consult the procmail mailing list.
  >

man procmail. man formail. man pine... In the latter, it says "no
filtering..." 

DESCRIPTION 
       formail is a filter that can be used to force mail into mailbox
       format, perform From ' escaping, generate auto-replying headers, do
       simple header munging/extracting or split up a
       mailbox/digest/articles file. The mail/mailbox/article contents will
       be expected on stdin.
	[giant blablabla to follow...]
	
How come I always get this weird feeling somethings *very* fishy when I hear
someone say the magic words: "I read the whole FAQ, but didn't find a way to
..."

Don't take this personally (that was just a touch of politeness---please do
take it personally), but this is the wrong list to discuss filtering
matters. Really.

Cheers,
Robin