On 4/22/2011 10:34 AM, Shankar wrote: > Introduction: > I have a ticket system in PHP. People report tickets over email. A > mail parser connects to the mailbox using IMAP, downloads the email > and parses it to create a ticket which can be viewed/updated over the > web interface. > > My requirement: > I want my application to check if the downloaded email is a spam > before it creates a ticket out of the mail. Basically I want a way to > pass the email as a string to the spamassassin perl script which then > tells me if its a spam! How to achieve this with SpamAssassin?
Why not implement SpamAssassin at the front end before the mail is delivered to the IMAP mailbox? If you tell us what mailserver you are using, we can give you instructions for setting it up. -- Bowie