Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* can gnus delete mail attachments?
@ 2003-05-01  5:14 Zhiheng Liu
       [not found] ` <m3fznz6vnn.fsf@quimbies.gnus.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Zhiheng Liu @ 2003-05-01  5:14 UTC (permalink / raw)


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?  Thanks!

Zhiheng


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: can gnus delete mail attachments?
       [not found] ` <m3fznz6vnn.fsf@quimbies.gnus.org>
@ 2003-05-02  7:41   ` Stein A. Stromme
  0 siblings, 0 replies; 2+ messages in thread
From: Stein A. Stromme @ 2003-05-02  7:41 UTC (permalink / raw)


[Lars Magne Ingebrigtsen]

| Zhiheng Liu <zhliu@bu.edu> 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, <menu-bar> <mime part> <save and strip>.
    (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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-05-02  7:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-01  5:14 can gnus delete mail attachments? Zhiheng Liu
     [not found] ` <m3fznz6vnn.fsf@quimbies.gnus.org>
2003-05-02  7:41   ` Stein A. Stromme

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).