Package: offlineimap
Version: 6.3.4-1
Severity: normal

Hi,

What led to the situation:
  I use offlineimap, notmuch and mutt in this order.

What happened:
  offlineimap delivers a a new message to a Maildir
  and attaches ':2,' as a suffix. postsync notmuch tagging
  moves such a message to 'cur', which tricks mutt
  to think that there are no new messages in any folder
  (because there are no messages in 'new')

What would I expect:
  I would like offlineimap to deliver messages without
  ':2,' suffix, as it should be done actually [1,2].

[1] http://dev.mutt.org/trac/ticket/2476
[2] http://notmuchmail.org/pipermail/notmuch/2011/004833.html

I attach a trivial diff that fixes this. When a message is moved to 'new'
and no flags are to be set, then no info is attached at all.

Cheers,
Tomasz



-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=es_ES.utf8, LC_CTYPE=es_ES.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages offlineimap depends on:
ii  python          2.7.9-1
ii  python-support  1.0.15

offlineimap recommends no packages.

Versions of packages offlineimap suggests:
ii  doc-base         0.10.6
pn  python-kerberos  <none>

-- no debconf information

-- debsums errors found:
debsums: changed file /usr/share/pyshared/offlineimap/folder/Maildir.py (from 
offlineimap package)
292c292,295
<         infostr += '2,' + ''.join(flags)
---
>         if len(flags) == 0 and dir_prefix == 'new':
>             infostr = ''
>         else:
>             infostr += '2,' + ''.join(flags)

Reply via email to