[Top][All Lists]

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

[Nmh-workers] content type syntax?

From: Paul Fox
Subject: [Nmh-workers] content type syntax?
Date: Wed, 07 May 2008 08:40:30 -0400

can someone tell me whether this is legal syntax for
a Content-Type field?

 > --Apple-Mail-21--97781285
 > Content-Transfer-Encoding: base64
 > Content-Type: application/pdf;
 >         x-unix-mode=0644;
 >         name=Low Cost Laptop.pdf  
 > Content-Disposition: inline;
 >         filename="Low Cost Laptop.pdf"

the issue, unsurprisingly, is the lack of quotes on the "name="
field.  i have the following rule in .mh_profile, which catches
otherwise unhandled application types and lets me save the file:

    mhshow-show-application: fallback_save '%f' '%a'

when invoked, the fallback_save script is getting the string:

    'x-unix-mode="0644" name="Low"'

(without the single quotes) as its second argument.

so -- who's at fault, and if it's apple mail, is there a way
to make mhshow handle this better?

 paul fox, address@hidden (arlington, ma, where it's 58.3 degrees)

reply via email to

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