Discussions of development and use of the Sup email client
 help / color / mirror / Atom feed
* How to move mails to trash on the server after deleting them in sup?
@ 2015-06-23  8:38 Siwen Yu
  2015-06-23  8:51 ` [sup] " Gaute Hope
  0 siblings, 1 reply; 4+ messages in thread
From: Siwen Yu @ 2015-06-23  8:38 UTC (permalink / raw)
  To: supmua


[-- Attachment #1.1: Type: text/plain, Size: 494 bytes --]

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.

[-- Attachment #1.2: Type: text/html, Size: 600 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [sup] How to move mails to trash on the server after deleting them in sup?
  2015-06-23  8:38 How to move mails to trash on the server after deleting them in sup? Siwen Yu
@ 2015-06-23  8:51 ` Gaute Hope
  2015-06-23  9:04   ` Siwen Yu
  0 siblings, 1 reply; 4+ messages in thread
From: Gaute Hope @ 2015-06-23  8:51 UTC (permalink / raw)
  To: Siwen Yu, supmua

Siwen Yu writes on June 23, 2015 10:38:
> 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



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [sup] How to move mails to trash on the server after deleting them in sup?
  2015-06-23  8:51 ` [sup] " Gaute Hope
@ 2015-06-23  9:04   ` Siwen Yu
  2015-10-11 13:37     ` q.shanahan
  0 siblings, 1 reply; 4+ messages in thread
From: Siwen Yu @ 2015-06-23  9:04 UTC (permalink / raw)
  To: Gaute Hope; +Cc: supmua

[-- Attachment #1: Type: text/plain, Size: 1256 bytes --]

Thanks a lot.

On Tue, Jun 23, 2015 at 4:51 PM, Gaute Hope <eg@gaute.vetsj.com> wrote:

> Siwen Yu writes on June 23, 2015 10:38:
>
>> 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
>
>


-- 
________________________________
余斯文

[-- Attachment #2: Type: text/html, Size: 2062 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [sup] How to move mails to trash on the server after deleting them in sup?
  2015-06-23  9:04   ` Siwen Yu
@ 2015-10-11 13:37     ` q.shanahan
  0 siblings, 0 replies; 4+ messages in thread
From: q.shanahan @ 2015-10-11 13:37 UTC (permalink / raw)
  To: The Sup email client


[-- Attachment #1.1: Type: text/plain, Size: 2035 bytes --]

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. 


On Tuesday, June 23, 2015 at 5:04:08 AM UTC-4, Siwen Yu wrote:
>
> Thanks a lot. 
>
> On Tue, Jun 23, 2015 at 4:51 PM, Gaute Hope <e...@gaute.vetsj.com 
> <javascript:>> wrote:
>
>> Siwen Yu writes on June 23, 2015 10:38:
>>
>>> 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
>>
>>
>
>
> -- 
> ________________________________
> 余斯文
>

[-- Attachment #1.2: Type: text/html, Size: 4118 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-10-11 13:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-23  8:38 How to move mails to trash on the server after deleting them in sup? Siwen Yu
2015-06-23  8:51 ` [sup] " Gaute Hope
2015-06-23  9:04   ` Siwen Yu
2015-10-11 13:37     ` q.shanahan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox