From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/38007 Path: main.gmane.org!not-for-mail From: "Yair Friedman (Jerusalem)" Newsgroups: gmane.emacs.gnus.general Subject: Re: rewrite functions Date: Sun, 19 Aug 2001 11:09:59 +0200 Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035173657 18506 80.91.224.250 (21 Oct 2002 04:14:17 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:14:17 +0000 (UTC) Return-Path: Return-Path: Original-Received: (qmail 11026 invoked from network); 19 Aug 2001 08:07:54 -0000 Original-Received: from lovely.amdocs.com (204.151.97.17) by gnus.org with SMTP; 19 Aug 2001 08:07:54 -0000 Original-Received: from amdocs.com (speedy1.amdocs.com [204.151.97.67]) by lovely.amdocs.com (8.9.3/8.9.3) with ESMTP id LAA08976 for ; Sun, 19 Aug 2001 11:07:43 +0200 (IST) Original-Received: from YAIRFRNT (localhost [127.0.0.1]) by amdocs.com (8.9.3+Sun/8.9.3) with ESMTP id LAA00557 for ; Sun, 19 Aug 2001 11:04:19 +0300 (IDT) Original-To: Gnus Mailing List In-Reply-To: (Lars Magne Ingebrigtsen's message of "Fri, 17 Aug 2001 19:24:20 +0200") User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.6 Original-Lines: 22 Xref: main.gmane.org gmane.emacs.gnus.general:38007 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:38007 Lars Magne Ingebrigtsen writes: > "Yair Friedman (Jerusalem)" writes: > >> The variable mm-file-name-rewrite-functions is a List of functions used >> for rewriting file names of MIME parts. >> >> Currently it works only on the filename part. However, one might want >> to apply some of the functions such as 'upper' on the full path. > > All of the saving functions generally ignore the supplied path -- they > usually refer to local paths on the sender's machine, so they aren't > very useful. Not ignoring the path is also a security risk -- if > you're reading mail as root, and you get something that's called > "/etc/passwd", the MUA would be doing you a disservice if it gave you > that as the default name to save. > > So, I think the current method is fine. Oh, but I need rewrite functions for the paths Gnus supplies - mostly for the dumb applications that don't understand the "x:/path/file.ext" syntax in mm-display-external, and possibly in mm-save-part.