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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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:.*user@xxxxxxxxxxx
$HOME/Mail/sent/.

So, this appears to do what is needed.

My apologies for the delay in posting this response, but e-mail volume is lower right now and I needed messages to come through in order to confirm that this works.

Thanks again to all who helped!!

Best wishes,
Ranjan


On Mon, 23 Dec 2019 11:51:04 -0600 Ranjan Maitra <maitra@xxxxxxxxx> wrote:

> 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.
>
> >
> > 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.*user@xxxxxxxxxxx
> >     * ^Resent-From:.*user@xxxxxxxxxxx
> >     $HOME/Mail/sent/.
> >
>
> However, all mail that has the Resent-From field still goes to my sent mail. Typically, From appears later than Resent-From in my mail. I will try again with the order switched and report.
>
> Does the order matter?
>
> Many thanks,
> Ranjan
>
>
> Important Notice: This mailbox is ignored: e-mails are set to be deleted on receipt. Please respond to the mailing list if appropriate. For those needing to send personal or professional e-mail, please use appropriate addresses.
> _______________________________________________
> users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
> Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx


--
Important Notice: This mailbox is ignored: e-mails are set to be deleted on receipt. Please respond to the mailing list if appropriate. For those needing to send personal or professional e-mail, please use appropriate addresses.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux