From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/2403 Path: news.gmane.org!not-for-mail From: stromme@mi.uib.no (Stein A. Stromme) Newsgroups: gmane.emacs.gnus.user Subject: Re: can gnus delete mail attachments? Date: Fri, 02 May 2003 09:41:04 +0200 Organization: Univ. of Bergen, Dept. of Mathematics Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1138668844 15002 80.91.229.2 (31 Jan 2006 00:54:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:54:04 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:30:38 2006 Original-Path: quimby.gnus.org!newsfeed1.e.nsc.no!nsc.no!nextra.com!uio.no!nntp.uib.no!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: eliud.mi.uib.no Original-X-Trace: toralf.uib.no 1051861264 42256 129.177.61.66 (2 May 2003 07:41:04 GMT) Original-X-Complaints-To: abuse@uib.no Original-NNTP-Posting-Date: 2 May 2003 07:41:04 GMT User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:wjCekhuEyYcFNy4txJcX4axonYY= Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:2543 Original-Lines: 32 X-Gnus-Article-Number: 2543 Tue Jan 17 17:30:38 2006 Xref: news.gmane.org gmane.emacs.gnus.user:2403 Archived-At: [Lars Magne Ingebrigtsen] | Zhiheng Liu writes: | | > Hi all, I use nnimap to access my emails. Sometimes I receive emails | > with attachments. After I save those attachments to separate files, I | > want to delete them while keeping only the text parts in the mail | > folders. Can gnus do this? | | If you use `e' to edit the messages, you can just remove the | attachments. Easier to point at the attachment and perform C-o: C-o runs the command gnus-mime-save-part-and-strip which is an interactive compiled Lisp function in `gnus-art'. It is bound to C-o, . (gnus-mime-save-part-and-strip) You are prompted for a file name. Later you can delete the file, or perhaps use /dev/null as file name directly (untested). You end up in edit message mode, so you have to do C-c C-c afterwards to exit that. Sounds not too hard to write a short piece of code, or even a keyboard macro, to do all that. SA -- Stein Arild Strømme +47 55584825, +47 95801887 Universitetet i Bergen Fax: +47 55589672 Matematisk institutt www.mi.uib.no/stromme Johs Brunsg 12, N-5008 BERGEN stromme@mi.uib.no