[Top][All Lists]

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

Re: [bug-mailutils] Re: How get_attachment_name from multiline Content-

From: Kostik
Subject: Re: [bug-mailutils] Re: How get_attachment_name from multiline Content-Disposition?
Date: Wed, 07 Apr 2010 19:44:57 +0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20100228 Thunderbird/ Mnenhy/

Sergey Poznyakoff wrote:
>> But does not work, if filename*0*, filename*1*, filename*3*
>> (filename*2* is missing).
> That's intended.  It really should not.  Quoth RFC 2231, section 3:
Yes, but if filename*0*="a", filename*1*="b", filename*3*="c".
get_attachment_name should return fname="ab" (excluding "с"), is not it?
But now return NULL.

> Nope.  I've forgotten to inform you (or, better said, supposed
> you to have paid attention to the ChangeLog, alias git log.  It's a rule
> of thumb now, that you've cloned the repo): use
> mu_message_aget_decoded_attachment_name, which does all the dirty 
> work for you.  E.g.:

Well, try to use it, I'll tell the result later.

>> Does not work but really existing attachements:
>> -- Content-Disposition: attachment; filename = "111.doc"
>> -- Content-Disposition: attachment; name = "111.doc"
>> -- Content-Disposition: attachment; name="111.doc"
> Hmm, give more details please, would you?

-- ordinary mime header, but if "Content-Disposition" has "name" param
instead "filename", get_attachment_name return NULL.

-- ordinary mime header, but if "filename"("name") separated from "equal
sign"("=") by space, get_attachment_name return NULL.

---- filename="111.doc" - works well.
---- filename = "111.doc" - does not work (space before and after "equal


reply via email to

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