Re: Procmail regexp

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

 



On Fri, 2007-01-12 at 21:11 +1100, Cameron Simpson wrote:
> On 10Jan2007 10:12, Matthew Benjamin <msbenjamin12@xxxxxxxxx> wrote:
> | Can someone help me? I have a pprocmail receipe that I am trying to filter
> | out OOO messages. It works on the second or criteria but not the first here
> | is the regexp
> | 
> | *^Subject:.*(out of office|out of the office)
> | 
> | I want this to filter out any of these occurances regardless of case or
> | spacing.
> 
> Try making it all lowercase (see the "S").
> Got an example message that got past your rule?
> -- 

According to the man page, procmail egrep ignores case by default (i.e.
unless you add a 'D' flag to the rule.

You can ignore changes in spacing thus:
*^Subject:.*(out +of +office|out +of +the +office)

The procmailrc manpage includes a description of the extended regular
expression syntax.

As Cameron said, though, it'd be easier to troubleshoot if you post an
example of a subject line that fails to match...

Matt

Matt Davey        Time is a great teacher, but unfortunately it kills
mcdavey@xxxxxxxxxxxxxx 	all its pupils - Hector Berlioz	

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

  Powered by Linux