Kris, it's me again,

> I have no idea.  I'm a sendmail+procmail guy.  <g>

Perhaps you - or someone else - could help me with this:
formail reads from stdin. Okay, so I want to extract a header with -X.
But spamc also reads from stdin and stdin is empty after formail has read the 
mail. So, how do I get a program to "write to stdin". Hmm, understand what I 
mean?

Example:
It now looks like this:

formail -a "X-My-Extra-Header: 
Checked" | "$SPAMC" -s "$MAX_SIZE" -u "$MAILNAME" -U "$SOCKETPATH" -E 
> "$tmpfile"
check=$?

But before this command, there should be a check for that header. This has to 
look like this:

if( formail -X "X-My-Extra-Header: Checked == true ) {
  write to "$tmpfile"
}else{
  "command above"
}

Know what I mean and where my problem is? :)

-- 
Regards, Manu

Reply via email to