Gnus development mailing list
 help / color / mirror / Atom feed
From: Nikolaus Rath <Nikolaus@rath.org>
To: ding@gnus.org
Subject: Re: [PATCH] Support hiding deleted IMAP messages (v3)
Date: Fri, 03 Jul 2015 18:53:54 -0700	[thread overview]
Message-ID: <87y4iw7knh.fsf@vostro.rath.org> (raw)
In-Reply-To: <smud208yh1t.fsf@linuxpal.mit.edu> (Greg Troxel's message of "Fri, 03 Jul 2015 19:09:34 -0400")

[-- Attachment #1: Type: text/plain, Size: 1762 bytes --]

On Jul 03 2015, Greg Troxel <gdt@lexort.com> wrote:
> Nikolaus Rath <Nikolaus@rath.org> writes:
>
>> It's really pretty simple. There is no concept of a trash folder in
>> IMAP. Deleting a message means marking it with the \Deleted flag. The UA
>> is expected to take that into account when showing the mailbox contents
>> (e.g. by hiding such messsages or showing them crossed out). A message
>> can be physically deleted by "expunging" it (that would correspond to
>> emptying the trash).
>
> OK, but it seems many MUAs have a notion of moving messages to a trash
> folder instead of just IMAP deletion.
>
> Do MUAs that behave the way you say have  "trash" mailbox in the UI
> that is  really the set of messages in other mailboxes (or inbox)
> that have the \Deleted flag set?

Theoretically they could, in practice I don't know any MUA that does
this. They all have a trash mailbox in the imap account, and move
messages there instead of deleting them.

>> Any trash folder in an IMAP mailbox is a totally ordinary folder, and if
>> there are messages in it it means that they have been moved there (i.e.,
>> not deleted). To empty the trash, you still have to mark the message as
>> \Deleted, *and* then expunge it.
>
> But I empty trash by total-expire in gnus, on the trash mailbox :-)

That's the same thing. By default, deleting in Gnus means setting the
\Delete flag *and* immediately running expunge. But I've submitted
another patch that changes this, so that you can skip the expunge step. 


Best,
-Nikolaus

-- 
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

             »Time flies like an arrow, fruit flies like a Banana.«

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 997 bytes --]

      reply	other threads:[~2015-07-04  1:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-03  2:17 Nikolaus Rath
2015-07-03 13:44 ` Greg Troxel
2015-07-03 19:02   ` Nikolaus Rath
2015-07-03 23:09     ` Greg Troxel
2015-07-04  1:53       ` Nikolaus Rath [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=87y4iw7knh.fsf@vostro.rath.org \
    --to=nikolaus@rath.org \
    --cc=ding@gnus.org \
    /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).