How to collect full headers of a ticket using CLI

How do I collect the info of a ticket with full headers using a cron
job/RT CLI/RT Email Interface from CLI

Note: Hope I am not violating any mailing list policy by cross-posting.
I posted this question in rt-users group as well.

Thanks

Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
“…there are two kinds of people: those who work and those who take the credit…try
to be in the first group;…less competition there.” - Indira Gandhi

Asif Iqbal wrote:

I am using rt 3.2.3 on my https RT server and I am using rt-mailgate
on my mailserver separate from RT server. Every email first come into
my mailserver, processed through spamassassin
(qmail+qmail-scanner+spamd+clamd…) and dropped if detected as spam. Else
piped into rt-mailgate and hence pushed to the right queue. However, there
are some spams that slipped
through the crack. I have a spam queue for users to drop those tickets

[…]

I am already dropping the spams as I mentioned in my first email.
All emails first processed andd get dropped if detected as spam,
otherwise goes on its way to RT.

I am trying to come up with a process for undetected spams. Users take
those tickets and move them over to the separate queue in RT called SPAM.

I want pull those tickets out with full headers and give to my spam process
to learn as spam using a cron job. Anyone can help me with this

“How to collect the info of a ticket with full headers using a cron job”

Thanks

Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
“…there are two kinds of people: those who work and those who take the credit…try
to be in the first group;…less competition there.” - Indira Gandhi

“How to collect the info of a ticket with full headers using a cron job”

In other words how do I run this from command line?

https://rt.domain.com/Ticket/Display.html?ShowHeaders=1&id=292150#txn-984012

I might get this by using lynx but I am hoping to see a RT way to do it
from command line. I am only interested in the first transaction of a
ticket.

Any help with this would be greatly appreciated.

Thanks

Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
“…there are two kinds of people: those who work and those who take the credit…try
to be in the first group;…less competition there.” - Indira Gandhi

“How to collect the info of a ticket with full headers using a cron job”

In other words how do I run this from command line?

https://rt.domain.com/Ticket/Display.html?ShowHeaders=1&id=292150#txn-984012

More appropriately it would be

https://rt.domain.com/Ticket/History.html?id=292150#txn-984012

(just the history of the first transaction of a ticket)

I might get this by using lynx but I am hoping to see a RT way to do it
from command line. I am only interested in the first transaction of a
ticket.

Any help with this would be greatly appreciated.

Thanks


Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
“…there are two kinds of people: those who work and those who take the credit…try
to be in the first group;…less competition there.” - Indira Gandhi


The rt-users Archives

Be sure to check out the RT Wiki at http://wiki.bestpractical.com

Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
“…there are two kinds of people: those who work and those who take the credit…try
to be in the first group;…less competition there.” - Indira Gandhi

“How to collect the info of a ticket with full headers using a cron job”

Still hoping someone will have a solution of doing in through RT CLI and
not LWP way.

https://rt.domain.com/Ticket/History.html?ShowHeaders=1&id=292150#txn-984012

Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
“…there are two kinds of people: those who work and those who take the credit…try
to be in the first group;…less competition there.” - Indira Gandhi