You are not logged in.

#1 2012-03-18 15:49:14

brianb
Member
From: Montreal, QC
Registered: 2012-02-17
Posts: 81
Website

mutt and gmail: deleting drafts from Drafts and All Mail

Hi,

I'm finally getting used to understanding mutt/gmail integration (with offlineimap), including the fact that gmail "labels" are basically mutt "folders", and "deleting" in mutt just means removing a label (removing from current folder). Now I have a question.

When I postpone a message in mutt, I configured it so that it's saved locally in [Gmail].Drafts, which then syncs with gmail's Drafts via offlineimap, just in case I ever want to access it from the web interface. Since gmail drafts are also in All Mail, when mutt syncs with gmail, a copy is saved to [Gmail].All Mail. Fine by me...

However, if I delete a draft in mutt, either manually or by aborting an already-postponed draft without re-postponing, the message is removed from [Gmail].Drafts but remains in [Gmail].All Mail -- in fact, it looks exactly like a sent message, although it was never sent. (It's also flagged as new.)

In addition, if I instead delete the draft from [Gmail].All Mail, it remains in [Gmail].Drafts, so when I sync, another copy is placed in All Mail! This means I always have to delete drafts in two places.

It's not really a huge problem -- in fact, some might consider it a "feature" to be able to archive abandoned drafts -- but I was wondering if anyone had a solution.

Thanks!

Brian

Offline

#2 2012-07-05 17:51:40

Ambrevar
Member
Registered: 2011-08-14
Posts: 212
Website

Re: mutt and gmail: deleting drafts from Drafts and All Mail

[Old topic, but may be worth bumping]

Hi,

Indeed Gmail way of handling folders is not usual at all. For Gmail, mails are ALL in the "[Gmail]/All Mail" folder. And they are "sym-linked" to other folders corresponding to their tag. So if put your draft in the [Gmail]/Draft folder, then Gmail processes as follows:
* it puts the mail in the [Gmail]/AllMail folder anyway;
* it tags it as "Draft" and symlink it to the [Gmail]/Draft folder.

If you delete from AllMail, then... it remains in AllMail. There is no other copy being created, no it is just that Mutt thinks it can delete it, but Gmail won't obey.
So if you really want to remove it, you must move it to [Gmail]/Trash.

You may find this link interesting.
http://wiki.mutt.org/?UserStory/GmailMultiIMAP

Offline

Board footer

Powered by FluxBB