Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

.procmailrc question

  • 14-03-2003 8:59am
    #1
    Registered Users, Registered Users 2 Posts: 14,149 ✭✭✭✭


    hey guys,

    I have a question regarding filtering conditions in the .procmailrc file.

    if I have
    :0 :.filter1
    * ^From.*@blah\.com
    /dev/null
    
    :0 :.filter2
    * ^From.*blah@blah2\.com
    /dev/null
    

    is it possible to put the two of them into the following:
    :0 :.from_filter
    * ^From.*@blah\.com
    * ^From.*blah@blah2\.com
    /dev/null
    

    without 'anding' them? Is there a work around even?


Comments

  • Registered Users, Registered Users 2 Posts: 43 peema


    :0:.from_filter
    * ^From.*(@blah\.com|blah@blah2\.com)
    /dev/null

    Basically, you can use standard regular expressions...

    :0:.from_filter
    * ^From.*(@blah|blah@blah2)\.com
    /dev/null

    Should also work, but would be less readable.


  • Registered Users, Registered Users 2 Posts: 14,149 ✭✭✭✭Lemming


    Cheers peema. Hadn't thought of that approach before :) I'll give it a shout and let you know how it goes!


Advertisement