bug-mailutils
[Top][All Lists]
Advanced

[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:1.8.1.24) Gecko/20100228 Thunderbird/2.0.0.24 Mnenhy/0.7.6.0

Hello!

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";
        charset="ISO-8859-1"
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.

=kostik



reply via email to

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