[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-mailutils] Adding subject in msg-send.c
From: |
Kidong Lee |
Subject: |
Re: [bug-mailutils] Adding subject in msg-send.c |
Date: |
Fri, 7 Mar 2003 09:59:29 +0900 |
User-agent: |
Mutt/1.4i |
On Thu, Mar 06, 2003 at 05:15:42PM +0900, Kidong Lee wrote:
> Hello,
>
> When I try to add Subject header in examples/msg-send.c(see diff file),
> But there's no Subject header in the received mail.(The patch has no effect.)
> On the contrary, When I comment out message_set_stream()(at 121 line,
> version 0.3), there's Subject header in the mail.(In this case, there's
> no body, of course)
>
> There seems to be some kind of conflict between message_set_stream() and
> message_set_header().
>
> Is it bug? or is there any fault?
>
> ---------------
>
> $ diff msg-send.c.orig msg-send.c
> 69a70
> > header_t hdr = 0;
> 120d120
> < C (message_set_stream (msg, in, NULL));
> 121a122,125
> >
> > C (header_create (&hdr, NULL, 0, msg));
> > C (header_set_value (hdr, "Subject", "subject test", 1));
> > C (message_set_header(msg, hdr, NULL));
>
I made mistake in attaching diff file
There's correct diff file.
----------------
$ diff msg-send.c.orig msg-send.c
69a70
> header_t hdr = 0;
121a123,126
>
> C (header_create (&hdr, NULL, 0, msg));
> C (header_set_value (hdr, "Subject", "subject test", 1));
> C (message_set_header(msg, hdr, NULL));