Gnus development mailing list
 help / color / Atom feed
From: Dan Christensen <>
Subject: Re: Pruning attachments
Date: Wed, 19 Feb 2020 16:23:47 -0500
Message-ID: <> (raw)
In-Reply-To: <>

On Feb 19, 2020, Lars Ingebrigtsen <> wrote:

> Didier Verna <> writes:
>> now that I'm running short on Gmail storage, I figured there are many
>> emails with attachments that I would like to keep, but without the
>> attachments (for example because I saved them somewhere else).
>> Is there a way in Gnus/nnimap to save and email but get rid of the
>> attachments?
> If you hit `e' on an nnimap message containing attachments, you can then
> edit it to delete the attachments.  This can probably be automated
> pretty easily...

I use `d' on an attachment button to delete it, `C-o' to save it and
replace it with a link to where you save it, `r' to delete it and
replace it with a link to a specified, already existing file, etc.

On nnimap groups, this works, but is a bit flakey, often leaving both
the edited message and the original message around.  When that happens,
I just delete the original message.


      reply index

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-19  8:56 Didier Verna
2020-02-19 14:11 ` Lars Ingebrigtsen
2020-02-19 21:23   ` Dan Christensen [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:

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

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Gnus development mailing list

Archives are clonable: git clone --mirror

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone