Re: OT: help conditioning on multiple fields using procmail (solved!)

2019-12-25 Thread Ranjan Maitra
Dear friends, I have realized, thanks to a comment off-list, that including the colon is needed and then the suggestions work. Indeed, there appears to be no need to even look into the Resent-From field. So, the following recipe works: :0: * ^From:.*u...@outlook.com $HOME/Mail/sent/. So, this

Re: OT: help conditioning on multiple fields using procmail

2019-12-24 Thread Ranjan Maitra
Thank you all for your suggestions. I am a little lost because none of them have done what I want to do. So, let me explain what I am trying to do. I am getting all my e-mail forwarded from u...@outlook.com to another e-mail address, say: u...@gmail.com. I send myself outgoing e-mails (BCc'ed).

Re: OT: help conditioning on multiple fields using procmail

2019-12-23 Thread Tim via users
On Mon, 2019-12-23 at 15:07 -0600, Ranjan Maitra wrote: > I have also realized that internal e-mails sent through Outlook do > not have this Resent-From field in the mail header. Is it possible to > have .procmailrc not find the Resent-From field and then proceed? Since you say that some mail is d

Re: OT: help conditioning on multiple fields using procmail

2019-12-23 Thread Ranjan Maitra
Thank you for your help and in detailing the process. Adding the colon to the From: does not prevent e-mail having the Resent-From set at the same e-mail address. I am trying out your other suggestion. Thanks again! Best wishes, Ranjan On Tue, 24 Dec 2019 12:09:38 +0900 "Stephen J. Turnbull"

OT: help conditioning on multiple fields using procmail

2019-12-23 Thread Stephen J. Turnbull
Ranjan Maitra writes: > So, I use in my .procmailrc: > > :0: > *^From.*u...@outlook.com > $HOME/Mail/sent/. > > And it used to work fine. However, recently I have also started > forwarding my e-mail from the address: u...@outlook.com and what is > happening is that the e-mail envelope o

OT: help conditioning on multiple fields using procmail

2019-12-23 Thread Stephen J. Turnbull
Ranjan Maitra writes: > So, I use in my .procmailrc: > > :0: > *^From.*u...@outlook.com > $HOME/Mail/sent/. > > And it used to work fine. However, recently I have also started > forwarding my e-mail from the address: u...@outlook.com and what is > happening is that the e-mail envelope o

Re: OT: help conditioning on multiple fields using procmail

2019-12-23 Thread Tony Nelson
On 19-12-23 16:07:14, Ranjan Maitra wrote: On Mon, 23 Dec 2019 14:50:36 -0500 Todd Zullinger wrote: > Ranjan Maitra wrote: > >> Conditions are AND'ed by default, so if you want to only > >> match messages which have both From and Resent-From headers, > >> you can add another condition to your

Re: OT: help conditioning on multiple fields using procmail

2019-12-23 Thread Ranjan Maitra
On Mon, 23 Dec 2019 14:50:36 -0500 Todd Zullinger wrote: > Ranjan Maitra wrote: > >> Conditions are AND'ed by default, so if you want to only > >> match messages which have both From and Resent-From headers, > >> you can add another condition to your recipe: > >> > >> :0: > >> * ^From.*u.

Re: OT: help conditioning on multiple fields using procmail

2019-12-23 Thread Todd Zullinger
Ranjan Maitra wrote: >> Conditions are AND'ed by default, so if you want to only >> match messages which have both From and Resent-From headers, >> you can add another condition to your recipe: >> >> :0: >> * ^From.*u...@outlook.com >> * ^Resent-From:.*u...@outlook.com >> $HOME/Mail

Re: OT: help conditioning on multiple fields using procmail

2019-12-23 Thread Ranjan Maitra
Thanks very much! > > I don't think it's off-topic, as procmail is included in > Fedora and used by plenty of folks here. Granted, there are > probably forums with more procmail users and experts than > this one. Thanks again for answering this question. However, something is not quite working.

Re: OT: help conditioning on multiple fields using procmail

2019-12-23 Thread Todd Zullinger
Hi, Ranjan Maitra wrote: > This is an OT question, but one that I am sure someone > here will likely know the answer to, given how much help I > have received here on such questions in the past. I don't think it's off-topic, as procmail is included in Fedora and used by plenty of folks here. Gra

OT: help conditioning on multiple fields using procmail

2019-12-23 Thread Ranjan Maitra
Hi, This is an OT question, but one that I am sure someone here will likely know the answer to, given how much help I have received here on such questions in the past. So, I store e-mails sent by me to others using the "From" field to a folder called "/sent" So, I use in my .procmailrc: :0: