Discussion:
[sup] How to move mails to trash on the server after deleting them in sup?
Siwen Yu
2015-06-23 08:38:15 UTC
Permalink
I've recently switched to SUP from MUTT.

I've followed the 'Complete gmail configuration' wiki post and set my gmail
account with offlineimap & sup successfully. But when I delete some mails
in the INDEX view with 'd' key, they just disappeared but still on the
server. After flushing changes and polling manually, they were still there.
How could I move them to the Trash on the server after deleting them in sup?

ps. My sup & offlineimap setting is the same as the wiki post.

Thanks.
--
You received this message because you are subscribed to the Google Groups "The Sup email client" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supmua+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/supmua/448b29ee-ba83-47a0-8540-7e058c5f64c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Gaute Hope
2015-06-23 08:51:59 UTC
Permalink
Post by Siwen Yu
I've recently switched to SUP from MUTT.
I've followed the 'Complete gmail configuration' wiki post and set my gmail
account with offlineimap & sup successfully. But when I delete some mails
in the INDEX view with 'd' key, they just disappeared but still on the
server. After flushing changes and polling manually, they were still there.
How could I move them to the Trash on the server after deleting them in sup?
ps. My sup & offlineimap setting is the same as the wiki post.
Hi,

sup does not do this for you. It can probably be best done with an
addon-script that loops over deleted messages, or a script that looks
for the trash (T) flag (if you have maildir-syncback enabled).

Maybe what you want to achieve is actually to add the trash flag? In
that case check out maildir-syncback in the wiki [0].

Some earlier discussion: https://github.com/sup-heliotrope/sup/issues/175

Regards, gaute

[0] https://github.com/sup-heliotrope/sup/wiki/Using-sup-with-other-clients
--
You received this message because you are subscribed to the Google Groups "The Sup email client" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supmua+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/supmua/1435048998-astroid-5-ay83go9694-1761%40strange.
For more options, visit https://groups.google.com/d/optout.
Siwen Yu
2015-06-23 09:04:08 UTC
Permalink
Thanks a lot.
Post by Gaute Hope
Post by Siwen Yu
I've recently switched to SUP from MUTT.
I've followed the 'Complete gmail configuration' wiki post and set my
gmail account with offlineimap & sup successfully. But when I delete some
mails in the INDEX view with 'd' key, they just disappeared but still on
the server. After flushing changes and polling manually, they were still
there. How could I move them to the Trash on the server after deleting them
in sup?
ps. My sup & offlineimap setting is the same as the wiki post.
Hi,
sup does not do this for you. It can probably be best done with an
addon-script that loops over deleted messages, or a script that looks
for the trash (T) flag (if you have maildir-syncback enabled).
Maybe what you want to achieve is actually to add the trash flag? In
that case check out maildir-syncback in the wiki [0].
Some earlier discussion: https://github.com/sup-heliotrope/sup/issues/175
Regards, gaute
[0]
https://github.com/sup-heliotrope/sup/wiki/Using-sup-with-other-clients
--
________________________________
䜙斯文
--
You received this message because you are subscribed to the Google Groups "The Sup email client" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supmua+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/supmua/CAJKyLDq0PrwS4ymEYA3Yus5_mhmjTigsBsmxBE-kdBe4QQWArw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
q***@gmail.com
2015-10-11 13:37:06 UTC
Permalink
Hi, has anyone successfully implemented this? Somehow the mail needs to get
moved to the IMAP "[Gmail]/Trash" folder when it is deleted, but sup does
not sync labels, so I'm not sure how to do that. Maybe it would be possible
to sync the trash folder using offlineimap, and then have some sort of hook
in sup that moved the actual mail file from the "archive" to the "trash"
folder in the maildir? with a config like this:

nametrans = lambda folder: {'archive': '[Gmail]/All Mail', 'trash':
'[Gmail]/Trash'
}.get(folder, folder)

I wonder if anyone has any thoughts or advice on this.
Post by Siwen Yu
Thanks a lot.
Post by Gaute Hope
Post by Siwen Yu
I've recently switched to SUP from MUTT.
I've followed the 'Complete gmail configuration' wiki post and set my
gmail account with offlineimap & sup successfully. But when I delete some
mails in the INDEX view with 'd' key, they just disappeared but still on
the server. After flushing changes and polling manually, they were still
there. How could I move them to the Trash on the server after deleting them
in sup?
ps. My sup & offlineimap setting is the same as the wiki post.
Hi,
sup does not do this for you. It can probably be best done with an
addon-script that loops over deleted messages, or a script that looks
for the trash (T) flag (if you have maildir-syncback enabled).
Maybe what you want to achieve is actually to add the trash flag? In
that case check out maildir-syncback in the wiki [0].
Some earlier discussion: https://github.com/sup-heliotrope/sup/issues/175
Regards, gaute
[0]
https://github.com/sup-heliotrope/sup/wiki/Using-sup-with-other-clients
--
________________________________
䜙斯文
--
You received this message because you are subscribed to the Google Groups "The Sup email client" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supmua+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/supmua/a59b8fd5-a3f9-489a-a58b-d8323d747a40%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...