Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the SVN-Notify CPAN distribution.

Report information
The Basics
Id: 31637
Status: rejected
Priority: 0/
Queue: SVN-Notify

People
Owner: Nobody in particular
Requestors: dlindelof [...] optaros.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Garbled stylesheet
Date: Tue, 18 Dec 2007 04:37:49 -0500 (EST)
To: bug-SVN-Notify [...] rt.cpan.org
From: David Lindelöf <dlindelof [...] optaros.com>
Hello, I have observed the following problem when using SVN::Notify::HTML::ColorDiff. The data sent to the SMTP server begins like this: Content-Transfer-Encoding: 8bit <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="content-type" content="text/html; charset=us-ascii" /><style type="text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; } #msg dt { float: left; width: 6em; font-weight: bold; } #msg dt:after { content:':';} #msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; } But the source of the email I then receive shows this: Content-Transfer-Encoding: quoted-printable <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns=3D"http://www.w3.org/1999/xhtml"> <head><meta http-equiv=3D"content-type" content=3D"text/html; charset=3Dus-= ascii" /><style type=3D"text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #f= ff; } #msg dt { float: left; width: 6em; font-weight: bold; } #msg dt:after { content:':';} #msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana= ,arial,helvetica,sans-serif; font-size: 10pt; } #msg dl a { font-weight: bold} #msg dl a:link { color:#fc3; } #msg dl a:active { color:#ff0; } #msg dl a:visited { color:#cc6; } h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font= -weight: bold; } In other words, the stylesheet seems garbled by the quoted-printable encoding, and the email is not shown as it should. Do you have any idea what we are doing wrong, or whether this is a bug for SVN::Notify? Cheers, David
Subject: Re: [rt.cpan.org #31637] Garbled stylesheet
Date: Tue, 18 Dec 2007 10:25:39 -0800
To: bug-SVN-Notify [...] rt.cpan.org
From: "David E. Wheeler" <dwheeler [...] cpan.org>
On Dec 18, 2007, at 01:38, David Lindelöf via RT wrote: Show quoted text
> In other words, the stylesheet seems garbled by the quoted- > printable encoding, and the email is not shown as it should. > > Do you have any idea what we are doing wrong, or whether this is a > bug for SVN::Notify?
I don't *think* that Net::SMTP sends the body in QP, but maybe it does. What version of Net::SMTP are you using? Best, David
Subject: Re: [rt.cpan.org #31637] Garbled stylesheet
Date: Wed, 19 Dec 2007 03:16:54 -0500 (EST)
To: bug-SVN-Notify [...] rt.cpan.org
From: David Lindelöf <dlindelof [...] optaros.com>
Hello David, ----- "David Wheeler via RT" <bug-SVN-Notify@rt.cpan.org> wrote: Show quoted text
> I don't *think* that Net::SMTP sends the body in QP, but maybe it > does. What version of Net::SMTP are you using?
Actually, I think Net::SMTP sent in 8bit and that whatever SMTP server transferred the email converted it to QP. I'm using Net::SMTP version 2.29. We have since then done some experiments and seen that the stylesheet settings are lost when viewing the email under Gmail, Zimbra, Hotmail, Evolution and Lotus. However, when *forwarding* the email from Hotmail, the stylesheet worked again in the compose window (but not when the email was received). I'm still not sure this is a problem with SVN::Notify, but I'd really like to understand what's wrong. I've seen sample output from HTML::ColorDiff which are just gorgeous, and it would be a shame if it didn't work just because of some silly server setting. Cheers, David
Subject: Re: [rt.cpan.org #31637] Garbled stylesheet
Date: Wed, 19 Dec 2007 09:08:07 -0800
To: bug-SVN-Notify [...] rt.cpan.org
From: "David E. Wheeler" <dwheeler [...] cpan.org>
On Dec 19, 2007, at 00:17, David Lindelöf via RT wrote: Show quoted text
> I'm still not sure this is a problem with SVN::Notify, but I'd > really like to understand what's wrong. I've seen sample output > from HTML::ColorDiff which are just gorgeous, and it would be a > shame if it didn't work just because of some silly server setting.
SVN::Notify is pretty brain-dead about generating the HTML mail: It just generates HTML and hands it off to Net::SMTP. So I kinda doubt that it's SVN::Notify, too, but it could well be something that it uses. Sorry I'm not more help. Best, David
On Wed Dec 19 12:08:39 2007, DWHEELER wrote: Show quoted text
> On Dec 19, 2007, at 00:17, David Lindelöf via RT wrote: >
> > I'm still not sure this is a problem with SVN::Notify, but I'd > > really like to understand what's wrong. I've seen sample output > > from HTML::ColorDiff which are just gorgeous, and it would be a > > shame if it didn't work just because of some silly server setting.
> > SVN::Notify is pretty brain-dead about generating the HTML mail: It > just generates HTML and hands it off to Net::SMTP. So I kinda doubt > that it's SVN::Notify, too, but it could well be something that it uses.
Let me revise that. It generates the HTML and hands it off to the mailer, which by default is sendmail (as identified by the --sendmail option), but can also use SMTP (as identified by the --stmp option). Which are you using? And if you switch, does the problem go away? Best, David