[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-mailutils] mu_mimehdr_aget_disp() bug
From: |
Kostik |
Subject: |
[bug-mailutils] mu_mimehdr_aget_disp() bug |
Date: |
Mon, 12 Apr 2010 19:21:20 +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 |
Hi All!
In the last updated mimetest.c:
if "Content-Type" contain only type without name and without semicolon(;)
at the end, then mu_header_sget_value() already return type. But
mu_mimehdr_aget_disp() return NULL.
Example:
---
Content-Type: application/octet-stream
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="=?utf-8?B?0JrQvtC80LzQtdGA0YfQtdGB0LrQvtC1?=
=?utf-8?B?IA==?=
=?utf-8?B?0L/RgNC10LTQu9C+0LbQtdC90LjQtQ==?= (NewPro).docx"
---
* hvalue=application/octet-stream
* type=(null)
But if (semicolon is here ------------v):
---
Content-Type: application/octet-stream;
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="=?utf-8?B?0JrQvtC80LzQtdGA0YfQtdGB0LrQvtC1?=
=?utf-8?B?IA==?=
=?utf-8?B?0L/RgNC10LTQu9C+0LbQtdC90LjQtQ==?= (NewPro).docx"
---
* hvalue=application/octet-stream;
* type=application/octet-stream
=kostik
- [bug-mailutils] mu_mimehdr_aget_disp() bug,
Kostik <=