Move to Gmail-trash instead of deleting

Kia Niskavaara <[email protected]>
Newsgroups gmane.mail.getmail.user
Message-ID <CALed1ex-nTknsBP5yKmLc=OkjuN31XrcxbvYkudWX1EMw9-4ig@mail.gmail.com>
Hi all

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?

(I've already tried setting up a filter in Gmail to automatically move all
email to trash-folder. And in getmailrc changing mailboxes = ("INBOX",)
to mailboxes = ("INBOX","TRASH",) - in order to look for new email in both
folders. But this is not working. I get an error.)

Is there a solution to my problem?

Thanks in advance for your help
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.