Some local RT enhancements

Hi,

I thought I’d share with the list some local RT features.

  1. To make it easier to CC or forward information into the BTS without
    having to alter or preserve the subject line, people can write to
    nn@bugs.complete.org – ie 8152@bugs.complete.org to correspond to bug 8152.

This is set up with the following in Postfix’s virtual file for the bugs
domain:

/^(\d+)@bugs.complete.org$/ rt-mail+correspond-$1@complete.org
/^(\d+)-comments@bugs.complete.org/ rt-mail+comment-$1@complete.org

And in rt-mail’s .mailfilter file:

if (/^X-Addr-Extension: correspond-![0-9]+$/)
to “|reformail -i’Subject: [complete.org #$MATCH2]’ | $RTMAILGATE --queue general --action correspond”

if (/^X-Addr-Extension: comment-![0-9]+$/)
to “|reformail -i’Subject: [complete.org #$MATCH2]’ | $RTMAILGATE --queue general --action comment”

As you can see, it simply sets the subject to a value useful to RT and sends
it on.

  1. I wrote a system to allow the public to set up RT accounts, similar to
    the way bugzilla works. If people are interested, I can post the Python
    source code.

– John

I’d be interested in seeing the code.

I’ve received several requests, so it’s attached. I’ll put it up in a
Subversion repository soon.

John Goerzen jgoerzen@complete.org GPG: 0x8A1D9A1F www.complete.org

createuser.cgi (5.85 KB)

FWIW,
rt-mailgate --ticket-id-from-extension will let you send
mail to rt+6523@mydomain.com, without any weird mta hacking ;)On Sun, Jul 21, 2002 at 06:35:09PM -0500, John Goerzen wrote:

Hi,

I thought I’d share with the list some local RT features.

  1. To make it easier to CC or forward information into the BTS without
    having to alter or preserve the subject line, people can write to
    nn@bugs.complete.org – ie 8152@bugs.complete.org to correspond to bug 8152.

This is set up with the following in Postfix’s virtual file for the bugs
domain:

/^(\d+)@bugs.complete.org$/ rt-mail+correspond-$1@complete.org
/^(\d+)-comments@bugs.complete.org/ rt-mail+comment-$1@complete.org

And in rt-mail’s .mailfilter file:

if (/^X-Addr-Extension: correspond-![0-9]+$/)
to “|reformail -i’Subject: [complete.org #$MATCH2]’ | $RTMAILGATE --queue general --action correspond”

if (/^X-Addr-Extension: comment-![0-9]+$/)
to “|reformail -i’Subject: [complete.org #$MATCH2]’ | $RTMAILGATE --queue general --action comment”

As you can see, it simply sets the subject to a value useful to RT and sends
it on.

  1. I wrote a system to allow the public to set up RT accounts, similar to
    the way bugzilla works. If people are interested, I can post the Python
    source code.

– John


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

»|« Request Tracker... So much more than a help desk — Best Practical Solutions – Trouble Ticketing. Free.

FWIW,
rt-mailgate --ticket-id-from-extension will let you send
mail to rt+6523@mydomain.com, without any weird mta hacking :wink:

Was this documented somewhere that I missed? :slight_smile:

Thanks,
John