From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/16687 Path: news.gmane.org!not-for-mail From: Tim Landscheidt Newsgroups: gmane.emacs.gnus.user Subject: Faking filenames for attachments Date: Sun, 09 Feb 2014 11:43:01 +0000 Organization: http://www.tim-landscheidt.de/ Message-ID: <87fvnsecl6.fsf@passepartout.tim-landscheidt.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1391946205 1828 80.91.229.3 (9 Feb 2014 11:43:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Feb 2014 11:43:25 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Sun Feb 09 12:43:33 2014 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WCSnN-0001kG-5l for gegu-info-gnus-english@m.gmane.org; Sun, 09 Feb 2014 12:43:33 +0100 Original-Received: from localhost ([::1]:50341 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCSnM-0006t6-Qi for gegu-info-gnus-english@m.gmane.org; Sun, 09 Feb 2014 06:43:32 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCSnE-0006sz-2G for info-gnus-english@gnu.org; Sun, 09 Feb 2014 06:43:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCSn6-00022t-N4 for info-gnus-english@gnu.org; Sun, 09 Feb 2014 06:43:24 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:37793) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCSn6-00022l-GU for info-gnus-english@gnu.org; Sun, 09 Feb 2014 06:43:16 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WCSn4-0001Un-Uw for info-gnus-english@gnu.org; Sun, 09 Feb 2014 12:43:14 +0100 Original-Received: from f054153209.adsl.alicedsl.de ([78.54.153.209]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 09 Feb 2014 12:43:14 +0100 Original-Received: from tim by f054153209.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 09 Feb 2014 12:43:14 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: info-gnus-english@gnu.org Original-Lines: 48 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: f054153209.adsl.alicedsl.de Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:8x2pTuj9aQsS4CXr5Ixvgfnmabw= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:16687 Archived-At: Hi, usually, if I attach a file /a/b/c.e to a message, it gets MIME headers: | Content-Type: mime/type | Content-Disposition: attachment; filename=c.e However, I want to pretend the filename is d.e. mml-attach-file doesn't seem to support that, so after a look at (emacs-mime)MML Definition I resented to using mml-insert-empty-tag directly: | (mml-insert-empty-tag 'part | 'type "mime/type" | 'filename "/a/b/c.e") | 'name "d.e" | 'disposition "attachment") With that, the headers looked like: | Content-Type: mime/type; name=d.e | Content-Disposition: attachment; filename=c.e Still there! More debugging led to removing 'filename from mml-content-disposition-parameters which for the mimicry case resulted in: | Content-Type: mime/type; name=d.e | Content-Disposition: attachment which is okay, but the headers generated by mml-attach-file lacked any filename: | Content-Type: mime/type | Content-Disposition: attachment which isn't. So now I have a working solution (advise mml-attach-file to add a 'name parameter, remove 'filename from mml-content-disposition-parameters), but this doesn't seem to be very stable. Are there other options that I have missed? TIA, Tim