Hi,
formail has the option -rD
Which is like the -D option with the difference that the email-address
of the sender is used instead of a message ID. This -r option is not
supported by reformail as far as I know.
I wrote the following script:
http://www.xs4all.nl/~hanb/software/reformail-rD
Which can be used in auto-replies for example: So I will only ask
people once not to CC me on mailinglists. Vacation/out of office
autoreplies is another example where this feature comes in handy.
# fluxbox-devel mailing-list
if (/^Sender.*flux...@lists.sourceforge.net$/)
to $DEFAULT/fluxbox-devel
# Automatic single reply to people who cc me on mailinglist to which I
# am subscribed.
if (! /^X-Loop: ha...@mijncomputer.nl/ && \
/^Subject: Re:/ && \
/^(Cc|To).*(fluxbox-devel|morelists...)@/)
{
`reformail-rD 8192 $DEFAULT/auto_cc_dbase`
if ( $RETURNCODE == 0 )
{
log '====> Cc: detected, replied and deleted.'
`$HOME/.mutt/auto_cc_reply`
to $TRASHCAN
}
else
{
log '====> Cc: detected, already replied before so just
deleted.'
to $TRASHCAN
}
}
Yes, this is a feature request. I just had the code in my mind so I
wrote it down. :)
# Han