[rt-users] Custom scrip to parse new emails and reject them

Jerrad Pierce jpierce at cambridgeenergyalliance.org
Mon Nov 10 13:08:15 EST 2008


On Mon, Nov 10, 2008 at 13:04, Steve Hopps <steve.hopps at gmail.com> wrote:
> Hi, I'm sorry if this is noobish, but I'm having trouble figuring out how to
> do it
> We use a service called phonetag to take voicemails and transcribe them
> (with attached .wav files) to emails that reach our helpdesk. The problem is
> about 75% of them are blank, because the caller did not leave a message.
> When that happens the email comes in saying "We're sorry, the caller hung up
> before leaving a message". I'd like to look for "the caller hung up" and
> have RT reject any tickets from emails containing that.
> I tried writing my own conditions based on some samples I found online but I
> can't quite get it working, can anyone recommend some documentation that
> would get me on the right track, or any other kind of help?

You could look at RT::Interface::Email::Filter::SpamAssassin as a
starting point;
just be sure to have Auth::MailFrom as a higher precedent in your MailPlugins.
This would allow you to access the message for parsing, and punt it as desired.

-- 
Cambridge Energy Alliance: Save money. Save the planet.



More information about the rt-users mailing list