Package: mutt-patched
Version: 1.5.23-3
Severity: normal

Hi,
emails which are marked New and saved to a different mailbox are
sometimes marked as read. I cannot seem to reproduce this all the time,
though. I've tried to debug mutt_save_message and here is what I saw
(gdb) n
758         mutt_default_save (buf, sizeof (buf), h);
(gdb) p *h
$4 = {security = 0, mime = 0, flagged = 0, tagged = 0, appended = 0, purged = 
0, deleted = 0, changed = 0, attach_del = 0, old = 0, read = 0, 
  expired = 0, superseded = 0, replied = 0, subject_changed = 1, threaded = 1, 
display_subject = 1, recip_valid = 1, active = 1, trash = 0, 
  zhours = 3, zminutes = 0, zoccident = 0, searched = 0, matched = 0, 
attach_valid = 0, collapsed = 0, limited = 0, num_hidden = 1, recipient = 3, 
  pair = 512, date_sent = 1439925064, received = 1439925305, offset = 0, lines 
= 0, index = 428, msgno = 428, virtual = 428, score = 0, 
  env = 0xef66f0, content = 0xef6fa0, path = 0x0, tree = 0x0, thread = 
0xea6960, attach_total = 0, chain = 0x0, refno = 0, data = 0xef29e0, 
  maildir_flags = 0x0}
(gdb) n
787       mutt_pretty_mailbox (buf, sizeof (buf));
(gdb) p *h
$5 = {security = 0, mime = 0, flagged = 0, tagged = 0, appended = 0, purged = 
0, deleted = 0, changed = 0, attach_del = 0, old = 0, read = 1, 
  expired = 0, superseded = 0, replied = 0, subject_changed = 1, threaded = 1, 
display_subject = 1, recip_valid = 1, active = 1, trash = 0, 
  zhours = 3, zminutes = 0, zoccident = 0, searched = 0, matched = 0, 
attach_valid = 0, collapsed = 0, limited = 0, num_hidden = 1, recipient = 3, 
  pair = 256, date_sent = 1439925064, received = 1439925305, offset = 0, lines 
= 54, index = 428, msgno = 428, virtual = 428, score = 0, 
  env = 0xef66f0, content = 0xef6fa0, path = 0x0, tree = 0x0, thread = 
0xea6960, attach_total = 0, chain = 0x0, refno = 0, data = 0xef29e0, 
  maildir_flags = 0x0}

Note the read flag change during mutt_default_save. Please note that
the email stays marked as read even if I escape the saving by providing
an empty file. The behavior doesn't seem to be consistent though. When
I mark the email as new and try again then the above code path doesn't
change the read flag and emails stays marked as new.

I will try to dig into this deeper but I would certainly appreciate some
guidance.

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.2.0-rc7 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages mutt-patched depends on:
ii  libassuan0         2.2.1-1
ii  libc6              2.19-19
ii  libcomerr2         1.42.13-1
ii  libgnutls-deb0-28  3.3.16-2
ii  libgpg-error0      1.19-2
ii  libgpgme11         1.5.5-3
ii  libgssapi-krb5-2   1.13.2+dfsg-2
ii  libidn11           1.32-1
ii  libk5crypto3       1.13.2+dfsg-2
ii  libkrb5-3          1.13.2+dfsg-2
ii  libncursesw5       5.9+20150516-2
ii  libsasl2-2         2.1.26.dfsg1-13
ii  libtinfo5          5.9+20150516-2
ii  libtokyocabinet9   1.4.48-3
ii  mutt               1.5.23-3

mutt-patched recommends no packages.

mutt-patched suggests no packages.

-- no debconf information

-- 
Michal Hocko

Reply via email to