Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: kousik <kousiknandy@gmail.com>
To: info-gnus-english@gnu.org
Subject: Too Late in Fixing Continuation Lines?
Date: Thu, 22 Nov 2007 06:00:31 -0800 (PST)	[thread overview]
Message-ID: <a7a2d607-992a-4697-8923-4c5cc9416105@i12g2000prf.googlegroups.com> (raw)

Suppose we have a subject which has a newline, and next line doesn't
start with a space. message-check-news-header-syntax() offers to fix
such a broken subject by inserting a space in front of the second
line. But if we have gnus-posting-style to insert a new header, then
message-goto-eoh() will not be able to see the broken subject line,
inserting the new header there itself. Example:

(1) Original message:
---------------------
Subject: Hello
World

(2a) Fixed by message-check-news-header-syntax() (no extra header):
--------------------
Subject: Hello
 World

(2b) gnus-posting-style inserting a header:
-------------------
Subject: Hello
X-New-Header: foobar
World

(3) "Fixed" by message-check-news-header-syntax()
------------------------
Subject: Hello
X-New-Header: foobar
 World

So you can see now `World' became part of X-New-Header!

I don't know enough lisp & gnus codebase to fix it, I hope someone
here will have enough clues.

regards
Kousik

                 reply	other threads:[~2007-11-22 14:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a7a2d607-992a-4697-8923-4c5cc9416105@i12g2000prf.googlegroups.com \
    --to=kousiknandy@gmail.com \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).