[Top][All Lists]

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

[bug-mailutils] improve behavior of mu_mimehdr_a?get_disp

From: Kostik
Subject: [bug-mailutils] improve behavior of mu_mimehdr_a?get_disp
Date: Mon, 19 Apr 2010 19:31:21 +0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20100228 Thunderbird/ Mnenhy/


Kostik wrote:
>> 16ea05b7  - improves behavior of mu_mimehdr_a?get_disp wrt. missing
>> semicolon.

Sergey, several suggestions for improvement mu_mimehdr_aget_disp():

1. for
Content-Type: "text/plain";
Content-Transfer-Encoding: 8bit
type is "text/plain" (with double quotes).

And mu_c_strcasecmp() in examples/mimetest.c not work correctly with it.
      else if (!type
               || (mu_c_strcasecmp (type, "text/plain") == 0)
               || (mu_c_strcasecmp (type, "text/html")) == 0)

2. for
Content-Type: text/plain ; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
type is 'text/plain ' (with whitespace at the end (quotes is mine)).

And in examples/mimetest.c mu_c_strcasecmp() not work correctly again.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]