Re: An issue setting the header of a new message

Philip Van Hoof wrote:
> On Wed, 2007-01-24 at 16:50 +0100, Sergio Villar Senin wrote:
>> Philip Van Hoof wrote:
>>> In case of 1 and 2, the camel_message_info_* API must be used, in case
>>> of 2 the camel_mime_part and camel_mime_message API must be used.
>> So the check should be (((TnyCamelHeader *)header)->write == 3) isn't it?
> That's possible, yes. I'll check with you this evening. But feel free to
> just try it.
> Any check that doesn't explicitly compare with a number, is wrong since
> I changed tny-camel-header.c.
> All "if (inst->write)"'s should be replaced with "if (inst->write ==
> 1)"'s and all if (!inst->write)"'s with "if (inst->write == 0)"'s.

Seems that == 1 is the right choice.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]