unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Tomi Ollila <tomi.ollila@iki.fi>
To: notmuch@notmuchmail.org
Subject: Re: [PATCH 0/2] emacs: Fold long headers when sending
Date: Mon, 30 Jan 2017 18:19:56 +0200	[thread overview]
Message-ID: <m2poj4mser.fsf@guru.guru-group.fi> (raw)
In-Reply-To: <1485684281-2760-1-git-send-email-markwalters1009@gmail.com>

On Sun, Jan 29 2017, Mark Walters <markwalters1009@gmail.com> wrote:

> This pair of patches add a test for folding long headers, and backport
> the bugfix from emacs master. This fixes the bug reported in
> id:87612qwh04.fsf@viking.dsc.soic.indiana.edu
>
> The fix in emacs master (77bbca8c82f6e553c42abbfafca28f55fc995d00)
> runs the folding function just before message-header-hook, so this fix
> should give almost exactly the same behaviour.
>
> Since message--fold-long-headers was introduced in the same commit
> this should mean we do not apply the fix for any version of emacs
> which it already has it.
>
> I don't know whether my bash in the test suite is sufficiently
> portable, so if anyone who knows about that could check I would be
> grateful. (For example, is seq -s " " 1 1000 standard?)

`seq` is not standard, but these days it seems to exist on freebsd and
macos (but may not on solaris). however, in bash one can do
 
long_subject="This is a long subject `echo {1..1000}`"

(to expand {1..1000} inside "" one need to "execute" it -- a trick like
set_long_subject () { long_subject="This is a long subject $*"; }
set_long_subject {1..1000} ;: is unecessarily "complex" for this ;/


Tomi

PS: fwiw with `echo` (shell-builtin) there just one fork(2) is executed;
using `seq` 2 fork(2)s and one execve(2) would be executed (since bash).


>
> Best wishes
>
> Mark
>
>
>
> Mark Walters (2):
>   Test: emacs: test for folding long headers.
>   emacs: compat: backport fix for folding long headers when sending
>
>  emacs/notmuch-compat.el | 28 +++++++++++++++---
>  test/T310-emacs.sh      | 78 +++++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 102 insertions(+), 4 deletions(-)
>
> -- 
> 2.1.4

      parent reply	other threads:[~2017-01-30 16:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-29 10:04 [PATCH 0/2] emacs: Fold long headers when sending Mark Walters
2017-01-29 10:04 ` [PATCH 1/2] Test: emacs: test for folding long headers Mark Walters
2017-01-29 10:04 ` [PATCH 2/2] emacs: compat: backport fix for folding long headers when sending Mark Walters
2017-01-30 16:19 ` Tomi Ollila [this message]

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=m2poj4mser.fsf@guru.guru-group.fi \
    --to=tomi.ollila@iki.fi \
    --cc=notmuch@notmuchmail.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.
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).