Your message dated Sun, 21 Jan 2007 11:56:46 -0500
with message-id <[EMAIL PROTECTED]>
has caused the Debian Bug report #407258,
regarding rss2email: urls in title generates invalid email
to be marked as having been forwarded to the upstream software
author(s) [EMAIL PROTECTED]

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
rss2email maintainers: This is a forwarded bug report from the Debian
BTS. The full bug is at http://bugs.debian.org/407258

Johannes Berg wrote:
> When you get a title like this:
> <title><a href="http://example.net/";>link</a></title>
> 
> r2e generates invalid email because it uses html2text, which first
> results in
> 
> """link [1]
> 
> [1] http://example.net/""";
> 
> which is then copied into the subject verbatim leading to
> 
> --begin snip email--
> Subject: link [1]
> 
> [1] http://example.net/
> From: ...
> ...
> 
> body text
> --end snip email--
> 
> which obviously is invalid.
> 
> I fixed it by replacing all \n in the subject with ' ' after doing
> html2text, but a much better solution would be to just ignore the <a> tag
> completely. I didn't find an easy way to tell html2text exactly that.

I don't see anywhere in the rss spec (granted, it's a somewhat vague
spec), or in the atom spec (seems quite clear) that allows titles to
contain embedded html in the first place. I'd be inclined to make it not
format the title at all, except for removing any newlines from it ...

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature


--- End Message ---

Reply via email to