From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/54057 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.gnus.general Subject: Re: Saving attachments with a leading dot Date: Thu, 25 Sep 2003 05:23:34 +0200 Organization: http://purl.org/harder/ Sender: ding-owner@lists.math.uh.edu Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1064460433 9782 80.91.224.253 (25 Sep 2003 03:27:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 25 Sep 2003 03:27:13 +0000 (UTC) Original-X-From: ding-owner+M2598@lists.math.uh.edu Thu Sep 25 05:27:11 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A2Mmd-00028z-00 for ; Thu, 25 Sep 2003 05:27:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1A2MmF-0008D7-00; Wed, 24 Sep 2003 22:26:47 -0500 Original-Received: from justine.libertine.org ([66.139.78.221]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1A2Mm8-0008Cw-00 for ding@lists.math.uh.edu; Wed, 24 Sep 2003 22:26:40 -0500 Original-Received: from quimby.gnus.org (quimby.gnus.org [80.91.224.244]) by justine.libertine.org (Postfix) with ESMTP id E1A6A3A00A0 for ; Wed, 24 Sep 2003 22:26:39 -0500 (CDT) Original-Received: from news by quimby.gnus.org with local (Exim 3.35 #1 (Debian)) id 1A2Mt7-0000fR-00 for ; Thu, 25 Sep 2003 05:33:53 +0200 Original-To: ding@gnus.org Original-Path: localhost.localdomain!nobody Original-Newsgroups: gnus.ding Original-Lines: 20 Original-NNTP-Posting-Host: 0xc3f95322.esnxr2.ras.tele.dk Original-X-Trace: quimby.gnus.org 1064460833 2568 195.249.83.34 (25 Sep 2003 03:33:53 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Thu, 25 Sep 2003 03:33:53 +0000 (UTC) X-Face: ^RrvqCr7c,P$zTR:QED"@h9+BTm-"fjZJJ-3=OU7.)i/K]<.J88}s>'Z_$r; writes: > How about only changing the default of > `mm-file-name-rewrite-functions' from `nil' to, say > `mm-file-name-rfc-2183'? We might as well split the different replacements up a little to make it a bit easier to disable the ones you don't like. What about adding these two to `mm-file-name-rewrite-functions' by default: (defun mm-file-name-delete-control (file-name) "Delete control characters from FILE-NAME." (gnus-replace-in-string file-name "[\x00-\x1f\x7f]" "")) (defun mm-file-name-delete-gotchas (file-name) "Delete shell gotchas from FILE-NAME." (setq file-name (gnus-replace-in-string file-name "[<>|]" "")) (gnus-replace-in-string file-name "^[.-]*" ""))