I too have been trying to find a solution to the exact same task.
At this stage we are looking at making copies of the incoming emails to disk
Using the /opt/rt3/bin/rt cli tool, selecting the tickets in the SPAM queue
and pulling out the message ID.
Then greping for the message-id to find the message in the folder on disk
and using that to import the origional message into spamassasin.
Very clunky way of doing it, but this is all I have been able to come up
with over the past few weeks of trying to find an efficient way of doing
Hope this is of some help.
DarrinOn 12/12/05, Asif Iqbal firstname.lastname@example.org wrote:
On Thu, Dec 08, 2005 at 11:16:21PM, Asif Iqbal wrote:
I am using spamassassin before sending the email to RT. So it filters
out most-of-the spams before it reaches the queue. However there are
some spams that manage to slip thru the filter and make it to the queue
from time to time.
To collect those tickets I created a separate queue call SPAM. Users
drop those spam tickets in that queue and that part works just fine.
Now I want pull those tickets out of the queue and pipe it through my
spam learner and then delete them. I think to do it as a cronjob would
be most efficient.
However to achieve that I need to find a way grab the ticket with full
headers in cli.
Any suggestion or hints on this or pointing to a already better approach
would be greatly appreciated.
In otherwords is there a way, may be cli or may be api, that I can pull
a ticket’s first transaction with all the email headers? Any reference
to the wiki/list archive/rt book will do and I can start from there.
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
"…there are two kinds of people: those who work and those who take the
to be in the first group;…less competition there." - Indira Gandhi
Be sure to check out the RT Wiki at http://wiki.bestpractical.com
Download a free sample chapter of RT Essentials from O’Reilly Media at
WE’RE COMING TO YOUR TOWN SOON - RT Training in Amsterdam, Boston and
San Francisco - Find out more at
"If you save the world too often, it begins to expect it…"