Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: stromme@mi.uib.no (Stein A. Stromme)
Subject: Re: can gnus delete mail attachments?
Date: Fri, 02 May 2003 09:41:04 +0200	[thread overview]
Message-ID: <wwd6j1ssmn.fsf@eliud.mi.uib.no> (raw)
In-Reply-To: <m3fznz6vnn.fsf@quimbies.gnus.org>

[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


      parent reply	other threads:[~2003-05-02  7:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-01  5:14 Zhiheng Liu
     [not found] ` <m3fznz6vnn.fsf@quimbies.gnus.org>
2003-05-02  7:41   ` Stein A. Stromme [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=wwd6j1ssmn.fsf@eliud.mi.uib.no \
    --to=stromme@mi.uib.no \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).