Page 1 of 1
procmailrc recipe
Posted: Thu Oct 27, 2022 7:55 am
by nhdesign
Good morning,
In my .procmailrc will this work to both append the email to an existing file
and also forward the email?
:0c
* ^subject:.*jacket
$HOME/trash/forwarded
!
person@domain.com
Thanks,
NHD
Re: procmailrc recipe
Posted: Fri Oct 28, 2022 3:03 pm
by joemuller
You'll want the following:
Code: Select all
:0h
* ^Subject:.*jacket
$HOME/trash/forwarded
! person@domain.com
The above will scan the message headers, matching on a subject line ending in 'jacket'. The last two lines store a copy of the message in the mailbox file ~/trash/forwarded, then forward a copy to
person@domain.com.
-- Joe M.
Re: procmailrc recipe
Posted: Mon Oct 31, 2022 5:46 am
by nhdesign
Does not seem to work for me,
But the following does work,
:0c
* ^subject:.*jacket.*puffy|\
{
:0c
$HOME/ztrash.procmail/forwarded
:0
!
someone@domain.com
}