Re: Move to Gmail-trash instead of deleting
Kia Niskavaara <[email protected]>
| Newsgroups | gmane.mail.getmail.user |
|---|---|
| Message-ID | <CALed1ezO7s1x50VsJr65ykCyrZBpcs1xbjTqtAV7B0=cAzQD4A@mail.gmail.com> |
On Mon, Jun 15, 2020 at 3:22 PM Charles Cazabon < [email protected]> wrote: > Kia Niskavaara <[email protected]> wrote: > > > > I'm using getmail with Gmail IMAP and SimpleIMAPSSLRetriever. > > > > I've tried using 'delete = True' in config, and as suspected this deletes > > the mail in Gmail. > > > > However, I would like to move it from Gmail-Inbox to Gmail-Trash instead > of > > deleting. This is normal Gmail behaviour when clicking the Trash-symbol > in > > the web interface. Is this possible with getmail also? > > Yes. getmail's built-in support is the move_on_delete option - it's > documented under common retriever parameters. Set delete and > move_on_delete > and you will get what you want. > > I also think (not sure) that this can be controlled with a Gmail > preference. > I thought by default, IMAP client deletes were moved to Trash instead of > being > deleted - perhaps you changed that setting? Or Gmail have changed the > default. > > Charles > Thanks! I found the setting in Gmail now. By default deleted mail gets moved to archive. So I changed it to "send to trash" and now it seems to be working as needed. Thanks again