On Mon, Feb 19, 2018 at 12:54:19PM -0800, Keith Smiley wrote:
> Hey everyone,
> I was wondering if anyone had a working gmail configuration with offlineimap
> that correctly supports undeleting messages. In my configuration I
> delete/archive by moving messages to the appropriate mailboxes.
You don't have to move messages to another mailboxes when deleting message.
Just mark then as deleted (by pressing 'd') will be fine. If that 'delete'
gets populated to the center Gmail server by offlineimap, the deleted message
will be moved to /Trash automatically. That said, you don't have to do this
macro index,pager d "<save-message>+keithbsmiley-gmail.com/trash<enter>"
Using the default delete operation will allow you to undelete messages
> Just using
> standard `u` command with these results in the message being marked
> correctly in the index, but then on the next offlineimap refresh, it's
> removed since it still exists in the trash.
> I expected to be able to solve this with something like this:
> macro index u "<save-message>+.../INBOX<enter>"
> But this results in duplicates of the message in the index, and the message
> still gets wiped on the next sync.
> Any advice / examples would be appreciated!
> Keith Smiley
Yubin Ruan <http://fastdrivers.org>