unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Jameson Graef Rollins <jrollins@finestructure.net>
To: sshilovsky@gmail.com, notmuch@notmuchmail.org
Subject: Re: Tabulation in multiline headers
Date: Fri, 17 Oct 2014 17:08:08 -0700	[thread overview]
Message-ID: <87vbnime8n.fsf@servo.finestructure.net> (raw)
In-Reply-To: <CAHc2pO1QjtqMw9rf0aWGup+Bs_ZpvsZ1bd32H0xiDdzQ_k5GFA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1506 bytes --]

On Fri, Oct 17 2014, Sergei Shilovsky <sshilovsky@gmail.com> wrote:
> Lets consider this message:
>
>     id:87r5aucoeg.fsf@servo.finestructure.net
>
> Its subject spreads over 2 lines and the 2nd line is indented with
> <Tab> in the file:
>
>     Subject: running the crypto branch [was: Re: Hiding HTML mime-parts and/or
>     <Tab--->scrubbing (gmail's) HTML-based citation]
>
> The issue is that notmuch_message_get_header() returns this whole line
> with the Tab
> character (though I guess it should not):
>
>     running the crypto branch [was: Re: Hiding HTML mime-parts
> and/or<Tab>scrubbing (gmail's) HTML-based citation]
>
> This file could be imported from gmane though with mb2md. My test long
> subject message (sent via gmail) didn't got any tabulation.

Hi, Sergei.  I'm not clear on where exactly you are seeing a problem
with this tab in the subject line.  Is it showing up somewhere you think
it shouldn't?

Headers that are broken across multiple lines must be indented, so I
think it is fairly standard for MUAs to insert either a space or a tab
at that point.

>  No idea where this tabulation could came from, but would that be
> correct to replace <tab> with space in libnotmuch itself?

User-Agent: Notmuch/0.5-102-ge86ac1d (http://notmuchmail.org) Emacs/23.2.1
	(i486-pc-linux-gnu)

I'm not sure libnotmuch should be doing any scrubbing of the message
contents.  The emacs UI does seem to replace the tab with a space,
though.  Maybe other MUAs should be doing the same?

jamie.

[-- Attachment #2: Type: application/pgp-signature, Size: 818 bytes --]

  reply	other threads:[~2014-10-18  0:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-17 23:45 Tabulation in multiline headers Sergei Shilovsky
2014-10-18  0:08 ` Jameson Graef Rollins [this message]
2014-10-18  1:37   ` Sergei Shilovsky
2014-10-18  9:11     ` Jani Nikula

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

  List information: https://notmuchmail.org/

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

  git send-email \
    --in-reply-to=87vbnime8n.fsf@servo.finestructure.net \
    --to=jrollins@finestructure.net \
    --cc=notmuch@notmuchmail.org \
    --cc=sshilovsky@gmail.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

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 read-only IMAP folder(s) and NNTP newsgroup(s).