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

Procmail doing my head in...

  • 10-10-2004 5:19pm
    #1
    Registered Users, Registered Users 2 Posts: 95 ✭✭


    Hi all,

    I've spent the last half hour trying to cook up what should be a really easy procmail rule.. But it doesnt want to work for me..

    Pretty much what I want is:

    if to address is somebody@somewhere.com
    then pipe through script /usr/local/bin/myscript

    What I have is:

    :0:
    * ^To:.somebody@somewhere.com
    | /usr/local/bin/myscript

    And then i tried:
    * ^To:*somebody*
    | /usr/local/bin/myscript

    I also tried a few variations of the above but it just wont work..

    Could someone plz point out where Im wrong.. ?

    Thanks a mil!


Comments

  • Closed Accounts Posts: 95 ✭✭krinDar


    fractal wrote:
    I've spent the last half hour trying to cook up what should be a really easy procmail rule.. But it doesnt want to work for me..

    if to address is somebody@somewhere.com
    then pipe through script /usr/local/bin/myscript

    Your recipe does appear to be correct. That may not be the problem however. A few questions:
    1) Is procmail being called correctly ?
    2) Have you been using procmail in that instance before ?
    3) Does 'myscript' work ? If you cat a mail into the script does it do
    what you want ?

    If you put the following variables into the file which has your recipes
    in it, it should provide some extra information that might help you:

    LOGFILE=<file to log messages to>
    VERBOSE=yes
    LOGABSTRACT=yes

    If you still cannot figure it out post some of the log information and
    answers to the above questions.


  • Closed Accounts Posts: 7,562 ✭✭✭leeroybrown


    Try:
    :0:
    * ^To: somebody@somewhere\.com
    | /usr/local/bin/myscript
    


Advertisement