Hi Christian,
Thank you for sharing your procmail recipe. Like all good recipes, I
have taken ideas from it to adapt ~> augment my own.
# cctalk - List-ID
:0 E
* List-Id: .*<cctalk.classiccmp.org>
{
:0 Whc: .maildir/.Mail\ Lists.cctalk/procmail.lock
|/usr/bin/formail -D 4096 .maildir/.Mail\
Lists.cctalk/formail.message-id.cache
:0 a:
.maildir/.Mail\ Lists.cctalk/duplicates.mbox
CCTALKFROM=`formail -czxReply-To: | cut -f1 -d, | sed -e
's/\"/\\\"/g'`
:0 fB
|/usr/bin/formail -fb -i "List-Post: <mailto:cctalk
<cctalk at classiccmp.org>>" -R Reply-To: Old-Reply-To: -i "From:
$CCTALKFROM"
:0
.maildir/.Mail\ Lists.cctalk/
}
On 8/10/21 12:23 AM, Christian Corti wrote:
That's why I have a procmail rule that fixes
that:
REPLYTO_=`formail -cXReply-To: | cut -d',' -f1 | sed -e 's/Reply-To: //'
| sed -e 's/\"/\\\"/g'`
Aside: You can remove use "-x" to extract the header without the
(Reply-To:) header. You can use "-z" to remove the space between the
(Reply-To:) header and it's value. Thus eliminating the need for the
first sed.
--
Grant. . . .
unix || die