Re: [Mutt] #3441: Error "Failed to parse mailto: link"
On 2010-08-09 15:34:42 -0000, Mutt wrote:
> Comment(by vinc17):
>
> The problem is that the following test fails to match:
> {{{
> if (!ascii_strcasecmp (line + 1, "ubject"))
> }}}
> in function mutt_parse_rfc822_line (parse.c).
FYI, I've added a new patch, which seems to work. The old code was
buggy and more complex than necessary, as mutt_parse_rfc822_line
already expects separate tag and value. So, url_parse_mailto doesn't
need to reconstruct a full RFC822 line.
mutt_parse_rfc822_line should probably be documented...
Now I wonder whether all the headers should be taken into account
(at least by default). This may have security implications. First,
user-defined headers should probably be disabled by changing the 1
into a 0.
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)