[rt-users] Procmail filtering

John Arends jarends at uiuc.edu
Tue Nov 13 17:54:20 EST 2007


I'm trying to use procmail to filter messages coming into RT but I can't 
figure out how to pass a queue name to my procmail recipe if it has 
spaces in it.

QUEUE=\"queue with spaces\" and QUEUE='queue with spaces' both cause 
failure.

Any suggestions?

My /etc/aliases looks like this:

rt-general:  "|/etc/smrsh/procmail  -m QUEUE=General 
/etc/procmail/rt-deliver.rc"

rt-deliver.rc looks like this:

  # Trash Outlook autoreplies
:0 w
* ^subject:.*Out of Office AutoReply
  /dev/null

#Strip Attachments and HTML
:0 fw
    |/usr/local/bin/stripmime.pl

#Send it on to the RT queue
:0 w
| /usr/sbin/rt-mailgate --queue $QUEUE --action correspond --url 
https://myserver.edu/rt/




More information about the rt-users mailing list