<<< Date Index >>>     <<< Thread Index >>>

Re: [PATCH 2 of 3] Unify mutt_write_references



Aron Griffis wrote:  [Thu Jul 10 2008, 09:41:24AM EDT]
> diff -r f005e1a25900 -r 73431d86627a copy.c
> --- a/copy.c  Thu Jul 10 09:38:25 2008 -0400
> +++ b/copy.c  Thu Jul 10 09:38:25 2008 -0400
> @@ -369,11 +369,11 @@
>        if (h->env->irt_changed && h->env->in_reply_to)
>        {
>       LIST *listp = h->env->in_reply_to;
> -     fputs ("In-Reply-To: ", out);
> +     fputs ("In-Reply-To:", out);
>       for (; listp; listp = listp->next)
>       {
> +       fputc (' ', out);
>         fputs (listp->data, out);
> -       fputc (' ', out);
>       fputc ('\n', out);
>        }

I forgot to mention (sorry!) that this patch also eliminates the
extraneous space that mutt_copy_header was adding to the end of
both In-Reply-To: (above) and References: (below)

> @@ -381,27 +381,8 @@
>        if (h->env->refs_changed && h->env->references)
>        {
>       LIST *listp = h->env->references, *refs = NULL, *t;
> -     fputs ("References: ", out);
> -
...
> -
> +     fputs ("References:", out);
> +     mutt_write_references (h->env->references, out, 0);
>       fputc ('\n', out);
>        }