procmail
[Top] [All Lists]

Re: How to set a VARIABLE value with a filter

2010-03-14 01:26:07
Michelle Konzack <linux4michelle(_at_)tamay-dogan(_dot_)net> writes:

Am 2010-03-13 09:14:32, schrieb Harry Putnam:
I'm guessing my post just sounded like a bunch of gobbledeegook and
hence the lack of responses to it.

???  --  Do you have read my mail?

No, I'm very sorry... It must have gotten on my server late or something.

Thanks for your patience and for showing me your previous post.

 :0 
 * ^From: portage@
 {

     MYVAR=`script_that_collects_those_lines`

I haven't tried this yet... can't just now... but wondered how the
message body gets piped to `script_that_collects_those_lines'?

I see no indication of a pipe... so does it just happen automatically?
It seems that just executing the script but no input to it.

I now of these methods to get input into a script:

   input | script   (stdout piped into script)  
     script -       (script followed by dash takes input from stdout,
                     as in some common tar commands)
     script < filename

I don't see any of those at work there so it must be that procmail just
knows to pipe the message into script but does it unseen. 

I'm sure you now it works and I'm sorry I could not try...yet.

I look forward to trying it out soon.

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail