Eric Abrahamsen <e...@ericabrahamsen.net> writes:

> Ilya Kuzmich <ilya.kuzm...@gmail.com> writes:
>
>> Gmail folders is not a real folders, they are tags.
>> Which results in some non-standard behaviour:
>>   1) If you delete mail from a folder, it will be present in "All Mail"
>>   and maybe some other folders. Because for gmail it's a tag removal,
>>   not a real delete.
>>   2) To really delete mail you should copy message to "Trash". Then it
>>   would automagicaly disappear from all other folders.
>>   3) In my experience, deleting from "All Mail" does not helps either.
>> Because all of this, if you sync trash _after_ some other folder, that
>> folder can still have a copy of mail you just deleted. If you resync
>> again that "ghost" copy will disappear.
>
> I filter "All Mail" out of the sync'ed mailboxes and pretend it doesn't
> exist. All local mail deletion happens by moving messages to "Trash",
> and then letting Gmail do the rest. Eventually (30-day default?) Gmail
> deletes the message from Trash, and that deletion propagates down to my
> local installation. Roundabout, but it seems works, and preserves the
> point of Gmail's Trash thing as I understand it: protecting you from
> accidental deletions.

This prompted me to go check if it was actually working, and it turns
out it isn't, really. I use an mbsync->dovecot->gnus setup (so who knows
where the problem lies), but I just went to the gmail web interface and
deleted everything from the trash (619 "conversations") then updated
mbsync, which showed me:

S: +0/0 *1707/1707 #0/0

Then refreshed gnus, which still showed 3,070 messages in Trash. Should
have been empty? I also notice that the web interface shows lots of
unread messages in various folders, when I've got nothing unread
locally.

I guess I can use dovecot to issue imap commands directly, and query
both master and slave, and see if I can figure out what it's doing.

>> On 11/14, Oswald Buddenhagen wrote:
>>> On Thu, Nov 14, 2013 at 06:18:23PM +0400, Ilya Kuzmich wrote:
>>> > Also, syncing gmail-trash first is important.
>>> > It does kills all local copies of deleted mail.
>>> > 
>>> not sure what you mean without thinking much about it, but i found that
>>> gmail offers three different configuration options for the IMAP
>>> delete/expunge behavior. i suppose one of them is standards-compliant
>>> even in the strict sense, so mbsync would work without special
>>> considerations for the gmail trash. somebody cares to experiment?
>>> 
>>> ------------------------------------------------------------------------------
>>> DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
>>> OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
>>> Free app hosting. Or install the open source package on any LAMP server.
>>> Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
>>> http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> isync-devel mailing list
>>> isync-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/isync-devel
>>
>> ------------------------------------------------------------------------------
>> DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
>> OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
>> Free app hosting. Or install the open source package on any LAMP server.
>> Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
>> http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
>
>
> ------------------------------------------------------------------------------
> DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
> OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
> Free app hosting. Or install the open source package on any LAMP server.
> Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
> http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk


------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to