Re: Is there a reason why the trashed flag is not synced?

Subject: Re: Is there a reason why the trashed flag is not synced?

Date: Sun, 9 May 2021 15:43:17 -0500

To: David Bremner

Cc: notmuch@notmuchmail.org

From: Felipe Contreras


On Sun, May 9, 2021 at 4:38 AM David Bremner <david@tethera.net> wrote:
> Felipe Contreras <felipe.contreras@gmail.com> writes:

> > I understand deleting files is complex, but what's wrong with simply
> > tagging the T (trashed) messages as 'deleted'?
> >
> > I'm using synchronize_flags=true.
>
> The current lack of synchronization is intentional, with the reasoning
> explained in the commit message of [1].  I don't know if a one way sync
> (only from T -> deleted) has been discussed.
> https://git.notmuchmail.org/git/notmuch/commit/2c262042ac174d7bc96d6035ab9c88bd0abe7f35

This rationale makes sense to me, and I agree with the conclusion that
such behavior "can be potentially dangerous".

But the fact that something is potentially dangerous doesn't mean that
it necessarily is.

It makes sense that by default synchronize_flags=true doesn't sync the
trash flag, but what's wrong with a new configuration
synchronize_flags=all that does?

That way it's the responsibility of the user to ensure that such
potentially dangerous behavior can't happen before doing
synchronize_flags=all.

Cheers.

-- 
Felipe Contreras
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: