From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6163487219372785664 X-Gmail-Labels: Topic type: DISCUSSION Date: Sun, 11 Oct 2015 06:37:06 -0700 (PDT) From: q.shanahan@gmail.com To: The Sup email client Message-Id: In-Reply-To: References: <448b29ee-ba83-47a0-8540-7e058c5f64c8@googlegroups.com> <1435048998-astroid-5-ay83go9694-1761@strange> Subject: Re: [sup] How to move mails to trash on the server after deleting them in sup? MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_3520_1897527872.1444570627052" X-Google-Token: EILM6bAFmK8uem58ZCM0 X-Google-IP: 108.41.29.47 ------=_Part_3520_1897527872.1444570627052 Content-Type: multipart/alternative; boundary="----=_Part_3521_179257537.1444570627053" ------=_Part_3521_179257537.1444570627053 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, has anyone successfully implemented this? Somehow the mail needs to get= =20 moved to the IMAP "[Gmail]/Trash" folder when it is deleted, but sup does= =20 not sync labels, so I'm not sure how to do that. Maybe it would be possible= =20 to sync the trash folder using offlineimap, and then have some sort of hook= =20 in sup that moved the actual mail file from the "archive" to the "trash"=20 folder in the maildir? with a config like this: nametrans =3D lambda folder: {'archive': '[Gmail]/All Mail', 'trash':=20 '[Gmail]/Trash' }.get(folder, folder) I wonder if anyone has any thoughts or advice on this.=20 On Tuesday, June 23, 2015 at 5:04:08 AM UTC-4, Siwen Yu wrote: > > Thanks a lot.=20 > > On Tue, Jun 23, 2015 at 4:51 PM, Gaute Hope > wrote: > >> Siwen Yu writes on June 23, 2015 10:38: >> >>> I've recently switched to SUP from MUTT.=20 >>> I've followed the 'Complete gmail configuration' wiki post and set my= =20 >>> gmail account with offlineimap & sup successfully. But when I delete so= me=20 >>> mails in the INDEX view with 'd' key, they just disappeared but still o= n=20 >>> the server. After flushing changes and polling manually, they were stil= l=20 >>> there. How could I move them to the Trash on the server after deleting = them=20 >>> 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/17= 5 >> >> Regards, gaute >> >> [0]=20 >> https://github.com/sup-heliotrope/sup/wiki/Using-sup-with-other-clients >> >> > > > --=20 > ________________________________ > =E4=BD=99=E6=96=AF=E6=96=87 > ------=_Part_3521_179257537.1444570627053 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hi, has anyone successfully implemented this? Somehow the = mail needs to get moved to the IMAP "[Gmail]/Trash" folder when i= t is deleted, but sup does not sync labels, so I'm not sure how to do t= hat. 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 fro= m the "archive" to the "trash" folder in the maildir? w= ith a config like this:

nametrans =3D lambda folder: {'archive': '[Gmail]/Al= l Mail', 'trash': '[Gmail]/Trash'
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 }.get(folder, fold= er)

I wonder if anyone has any thoughts or advic= e on this.=C2=A0


On Tuesday, June 23, 2015 at = 5:04:08 AM UTC-4, Siwen Yu wrote:
Thanks a lot.=C2=A0

On Tue, Jun 23, 2015 at 4:51 PM, Gaute Hope <e...@gau= te.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 de= lete some mails in the INDEX view with 'd' key, they just disappear= ed but still on the server. After flushing changes and polling manually, th= ey 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.co= m/sup-heliotrope/sup/wiki/Using-sup-with-other-clients




--
________________________________
=E4=BD=99=E6=96=AF=E6=96= =87
------=_Part_3521_179257537.1444570627053-- ------=_Part_3520_1897527872.1444570627052--