Paul Bartlett added a `c' flag to his egrepping recipe:
| :0 wc
Yes, I was going to say that that was the answer to your previous problem;
procmail should be testing with a copy, not delivering the original to the
testing recipe (and then stopping). That's why your subsequent `a' and `E'
recipes were not attempted.
| So far things are starting to get peachy keen, except that the
| transmitted (to myself) message had all the headers correct but
| no body!
No wonder:
| :0 fw
| | formail -rz -I "Cc:" \
| -I "Reply-To: $FULLNAME" \
| -I "Subject: $THESUBJ" \
| -I "X-List: $GROUPNAME" \
| -I "X-Loop: $MY_ADDR" \
| -I "X-Info: Private Discussion Group Only" \
| -I "Precedence: list" \
| -I "Message-ID: $MID" \
| -I "Mime-Version: $MIMEVER" \
| -I "Content-Type: $MIMETYPE" \
| -I "Content-Transfer-Encoding: $MIMEXFER" \
| -I "Errors-To: $MY_ADDR" \
| -I "Return-Receipt-To:" \
| -I "Resent-From: $FULLNAME" \
| -I "Resent-Sender: $FULLNAME" \
| -I "Organization: $GROUPORG"
Now, note there that you are feeding the entire message to formail -r
without the -k option, so it drops the body. There are two basic ways
to preserve the body:
1. Use formail's -k option; if you don't want the body quoted, also use -b
(or -p "").
2. Filter only the head through formail -r so that the body remains untouched.
Note that if you want the body text cited with punctuation marks down its
left margin, you must use method #1. However, I get the feeling that you
don't want that, so you have the choice of adding -kb to formail's options
or `h' to the flags.