Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* offlineimap and gnus expire flags
@ 2015-11-07 16:10 Julien Cubizolles
  2015-11-13 19:06 ` Dan Christensen
  0 siblings, 1 reply; 3+ messages in thread
From: Julien Cubizolles @ 2015-11-07 16:10 UTC (permalink / raw)
  To: info-gnus-english

To those of you using offlineimap with Gnus, how do you make it
propagate gnus-expire flags (and possibly some other flags)? Does mbsync
handle this problem more easily?

I've tried some offlineimap.py code from
http://roland.entierement.nu/blog/2010/09/08/gnus-dovecot-offlineimap-search-a-howto.html
but it's from 2010 and it's throwing some errors.

--8<---------------cut here---------------start------------->8---
ERROR: ERROR in syncfolder for FreeOffline folder aapt: Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/offlineimap/accounts.py", line 450, in syncfolder
    remotefolder.syncmessagesto(localfolder, statusfolder)
  File "/usr/lib/python2.7/dist-packages/offlineimap/folder/Base.py", line 549, in syncmessagesto
    action(dstfolder, statusfolder)
  File "/usr/lib/python2.7/dist-packages/offlineimap/folder/Base.py", line 484, in syncmessagesto_flags
    addflags = selfflags - statusflags
TypeError: unsupported operand type(s) for -: 'list' and 'set'

  unsupported operand type(s) for -: 'list' and 'set'
ERROR: Syncing folder bandsintown [acc: FreeOffline]
  unsupported operand type(s) for -: 'list' and 'set'

Traceback:
  File "/usr/lib/python2.7/dist-packages/offlineimap/folder/Base.py", line 549, in syncmessagesto
    action(dstfolder, statusfolder)
  File "/usr/lib/python2.7/dist-packages/offlineimap/folder/Base.py", line 484, in syncmessagesto_flags
    addflags = selfflags - statusflags
--8<---------------cut here---------------end--------------->8---




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

* Re: offlineimap and gnus expire flags
  2015-11-07 16:10 offlineimap and gnus expire flags Julien Cubizolles
@ 2015-11-13 19:06 ` Dan Christensen
  2015-11-14  9:38   ` Julien Cubizolles
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Christensen @ 2015-11-13 19:06 UTC (permalink / raw)
  To: info-gnus-english

I have the following in my .offlineimap.py, and it works for me.
But I'm using an older version of offlineimap, and haven't tested
this with a current version.

Dan

import offlineimap.imaputil as IU
if not hasattr(IU, 'monkeypatchdone'):
    IU.flagmap += [('gnus-expire','E'),
                   ('gnus-dormant', 'Q'),
                   ('gnus-save', 'V'),
                   ('gnus-forward', 'W')]
    IU.monkeypatchdone = True



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

* Re: offlineimap and gnus expire flags
  2015-11-13 19:06 ` Dan Christensen
@ 2015-11-14  9:38   ` Julien Cubizolles
  0 siblings, 0 replies; 3+ messages in thread
From: Julien Cubizolles @ 2015-11-14  9:38 UTC (permalink / raw)
  To: info-gnus-english

Dan Christensen <jdc@uwo.ca> writes:

> I have the following in my .offlineimap.py, and it works for me.
> But I'm using an older version of offlineimap, and haven't tested
> this with a current version.

Thanks, it's working with offlineimap 6.5.5.

Julien.


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

end of thread, other threads:[~2015-11-14  9:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-07 16:10 offlineimap and gnus expire flags Julien Cubizolles
2015-11-13 19:06 ` Dan Christensen
2015-11-14  9:38   ` Julien Cubizolles

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).