[rt-users] Incoming messages all plain text

DeVore, John jdevore at pnwu.org
Thu Aug 25 20:13:39 EDT 2011

Thanks for the help Thomas.  I have determined that the problem is related to messages coming through our Exchange server.  I setup a test mailbox on another mail server and the messages come through properly with "Content-Type: multipart/alternative" and the HTML is intact.

-----Original Message-----
From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Thomas Sibley
Sent: Thursday, August 25, 2011 12:24 PM
To: RT Users
Subject: Re: [rt-users] Incoming messages all plain text

Please keep your responses on the mailing list.

On 08/25/2011 03:06 PM, DeVore, John wrote:
> I ran the query you listed and it returns with 'Empty set'.

No results means that the message in question had no MIME parts, but was made up of just a single MIME entity.

> There is a record in the Attachments table with a MessageId of 
> CAP5SNsEgyCSDQk6no6NpdiGy_v+=ktq1Uf8M64tcLoOpd5AENw at mail.gmail.com
> which I see when I run:
> select * from Attachments where 
> MessageId='CAP5SNsEgyCSDQk6no6NpdiGy_v+=ktq1Uf8M64tcLoOpd5AENw at mail.gm
> ail.com'\G
> (see attached results)

The results of this query show me what I need to know.  Note that the content type is text/plain, not multipart/alternative as expected with both a text/plain and text/html part included (both in the parsed ContentType column and the raw Headers column).  This means that when RT received the message, it had no HTML part.  I suspect something else is munging your message before it gets into RT.

Do you have spam/virus filtering setup?  What's your fetchmailrc look like?  You can try having fetchmail pipe the messages it fetches to a different command instead of rt-mailgate to capture what it downloads.

RT Training Sessions (http://bestpractical.com/services/training.html)
*  Chicago, IL, USA  September 26 & 27, 2011
*  San Francisco, CA, USA  October 18 & 19, 2011
*  Washington DC, USA  October 31 & November 1, 2011
*  Melbourne VIC, Australia  November 28 & 29, 2011
*  Barcelona, Spain  November 28 & 29, 2011

More information about the rt-users mailing list