Re: [Mutt] #3441: Error "Failed to parse mailto: link"
#3441: Error "Failed to parse mailto: link"
--------------------+-------------------------------------------------------
Reporter: vinc17 | Owner: me
Type: defect | Status: started
Priority: major | Milestone:
Component: mutt | Version:
Keywords: |
--------------------+-------------------------------------------------------
Comment(by vinc17):
Replying to [comment:6 me]:
> Your proposed patch has a subtle problem with user-defined headers not
working. mutt_parse_rfc822_line() has a rather nasty habit of replacing
the NUL at the end of `line` with a colon to restore the full line since
it assumes that p points somewhere in the same malloc'd region.
Shouldn't mutt_parse_rfc822_line be changed to avoid that instead?
mutt_parse_rfc822_line does a "safe_strdup (line)", so it could do a
mutt_sprintf instead. If mutt_matches_ignore/mutt_matches_ignore don't
need the colon, that may be OK and IMHO, the code would be cleaner.
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3441#comment:9>
Mutt <http://www.mutt.org/>
The Mutt mail user agent