Sending Text instead of HTML e-mail

Is there a way to force the e-mails sent through RT to be sent in plain text
format, instead of HTML?

Also, if there is such a way, will it affect attachments added to those
outgoing e-mails?

Thanks!

Chago

Adolfo Santiago wrote:

Is there a way to force the e-mails sent through RT to be sent in plain text
format, instead of HTML?
Huh. RT doesn’t use text/html format for outgoing email.

I think he was referring to how incoming HTML formatted mail is handled.

A means to sanitize HTML and convert it into text would be nice.

No, the TrustHTMLAttachments option isn’t what I’d be looking for. That just parses the HTML
and whatever script goodies included.

-COn Wed, Mar 17, 2004 at 08:52:11PM +0300, Ruslan U. Zakirov wrote:

Adolfo Santiago wrote:

Is there a way to force the e-mails sent through RT to be sent in plain
text
format, instead of HTML?
Huh. RT doesn’t use text/html format for outgoing email.

Also, if there is such a way, will it affect attachments added to those
outgoing e-mails?

Thanks!

Chago


rt-users mailing list
rt-users@lists.bestpractical.com
The rt-users Archives

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm


rt-users mailing list
rt-users@lists.bestpractical.com
The rt-users Archives

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

signature.asc (189 Bytes)

Chad Waters wrote:

I think he was referring to how incoming HTML formatted mail is handled.

A means to sanitize HTML and convert it into text would be nice.

Here was a lot of solutions. Google archives.

  1. MTA based
  2. code based (mine attached)

No, the TrustHTMLAttachments option isn’t what I’d be looking for. That just parses the HTML
and whatever script goodies included.
This option do another thing: when you click download link it don’t
force change content type to ‘text/plain’, but instead use ‘text/html’.
With it you could see html mails by download link, but them still don’t
inlined in ticket history.
Best regards. Ruslan.

rt3.html_display.patch (1.45 KB)

Hmmm… to clarify, I’m talking about outgoing messages, from RT to
requestors. Right now, mail we send goes out in HTML format. We’d like to
change that plain text format.

Any comments about that?

Thanks!

Chago

Adolfo Santiago wrote:

Hmmm… to clarify, I’m talking about outgoing messages, from RT to
requestors. Right now, mail we send goes out in HTML format. We’d like to
change that plain text format.
If you reply on ticket via mail client and format response in html so
it’s your problem. RT store message and notify others. Send mail in
plain text form :slight_smile:
If you use WebUI then mainline RT never use ‘HTML’.

Also you could use MTA based solution to convert all incoming mail to
plain text.

Any comments about that?

I don’t understand problem.

We convert all incoming mail to text using demime.pl.

rt: “|/usr/local/bin/demime.pl - |/opt/rt3/bin/rt-mailgate --queue ‘OA Request’ --action correspond --url http://slah001.abh.vw.com/

See: http://scifi.squawk.com/demime.html

-ToddOn Wed, Mar 17, 2004 at 09:34:08PM +0300, Ruslan U. Zakirov wrote:

Adolfo Santiago wrote:

Hmmm… to clarify, I’m talking about outgoing messages, from RT to
requestors. Right now, mail we send goes out in HTML format. We’d like to
change that plain text format.
If you reply on ticket via mail client and format response in html so
it’s your problem. RT store message and notify others. Send mail in
plain text form :slight_smile:
If you use WebUI then mainline RT never use ‘HTML’.

Also you could use MTA based solution to convert all incoming mail to
plain text.

Any comments about that?

I don’t understand problem.

Thanks!

Chago

-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com]On Behalf Of Chad
Waters
Sent: Wednesday, March 17, 2004 1:07 PM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Sending Text instead of HTML e-mail

I think he was referring to how incoming HTML formatted mail is handled.

A means to sanitize HTML and convert it into text would be nice.

No, the TrustHTMLAttachments option isn’t what I’d be looking
for. That just parses the HTML
and whatever script goodies included.

-C

On Wed, Mar 17, 2004 at 08:52:11PM +0300, Ruslan U. Zakirov wrote:

Adolfo Santiago wrote:

Is there a way to force the e-mails sent through RT to be sent

in plain

text
format, instead of HTML?

Huh. RT doesn’t use text/html format for outgoing email.

Also, if there is such a way, will it affect attachments added to those
outgoing e-mails?

Thanks!

Chago


rt-users mailing list
rt-users@lists.bestpractical.com
The rt-users Archives

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm


rt-users mailing list
rt-users@lists.bestpractical.com
The rt-users Archives

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm


rt-users mailing list
rt-users@lists.bestpractical.com
The rt-users Archives

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm


rt-users mailing list
rt-users@lists.bestpractical.com
The rt-users Archives

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

Adolfo Santiago wrote:

Hmmm… to clarify, I’m talking about outgoing messages, from RT to
requestors. Right now, mail we send goes out in HTML format. We’d like to
change that plain text format.
If you reply on ticket via mail client and format response in html so
it’s your problem. RT store message and notify others. Send mail in
plain text form :slight_smile:
If you use WebUI then mainline RT never use ‘HTML’.

If your mail passes through an Exchange server at some point, it may
silently convert text/plain to text/html. This is an Exchange setting,
however I have only seen it affect mail sent throught the Exchange
server as the first MTA in the path.

Michael
Michael S. Liebman m-liebman@northwestern.edu
http://msl521.freeshell.org/
“I have vision and the rest of the world wears bifocals.”
-Paul Newman in “Butch Cassidy & the Sundance Kid”

My bad… You are correct. Messages do go out in plain text.

I was getting confused by the fact that MS Outlook was presenting the
messages to me using a font that’s different from what I’m used to seeing.
Apparently, this has to do with the messages using the character set
"UTF-8".

Thanks for the correction.

Chago

lib/RT/EmailParser.pm


( $UserFoundInExternalDatabase, %UserInfo ) =
$self->LookupExternalUserInfo( $Address, $Name );

user database, reject the incoming message appropriately

    if ( $RT::SenderMustExistInExternalDatabase
         && !$UserFoundInExternalDatabase ) {

BUT
sub LookupExternalUserInfo {
my $self = shift;
my $EmailAddress = shift;
my $RealName = shift;

my $FoundInExternalDatabase = 1;
my %params;

#Name is the RT username you want to use for this user.
$params{‘Name’} = $EmailAddress;
$params{‘EmailAddress’} = $EmailAddress;
$params{‘RealName’} = $RealName;

See RT’s contributed code for examples.

http://www.fsck.com/pub/rt/contrib/

return ($FoundInExternalDatabase, %params);
}

ALWAYS return true, so I guess you need to write something here.

Adolfo Santiago wrote:

Is there a way to force the e-mails sent through RT to be sent in plain text
format, instead of HTML?

Also, if there is such a way, will it affect attachments added to those
outgoing e-mails?

Thanks!

Chago


rt-users mailing list
rt-users@lists.bestpractical.com
The rt-users Archives

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

warm regards
Vinita Vigine Murugiah
Email : vinita@cs.mu.oz.au Ph : (03) 8344 1273