Hmph, I see that upstream has wrongly (and summarily) closed this bug
report.  :(


The bug is not about the *presence* of the User-Agent header, which is
indeed optional.  (The 'Add "User-Agent" header' checkbox is found in
the "More Headers" tab when posting an article.)

This bug is about the mailto: string being malformed when the User-Agent
header (or Mime-Version, or Content-Type) is split over several lines.


As I pointed out in my second message, PostUI::maybe_mail_message() is
to blame.  It starts by converting the list of headers into a blob of
text, and then proceeds to prune *lines* corresponding to certain
headers, matching ":" as a delimiter on every line (and skipping the
next character, assumed to be a space).

This means that this:

  User-Agent: Pan/0.137 (The Mattel and Mars Bar Quick Energy Chocobot Hour;
          GIT 9a6aef1 git://git.gnome.org/pan2)

results in this junk being included in the final headers:

  GIT 9a6aef1 git: /git.gnome.org/pan2)

which is rightfully rejected by mutt.


-- 
Packages should build-depend on what they should build-depend.
                -- Santiago Vila on debian-devel


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to