Subject: [sup-talk] Initial import does not preserve read/unread status

From: [email-masked] (Alec Berryman)
Date: Sun, 10 Aug 2008 19:53:52 -0400

The new user guide says about sup-add:

"You can also specify --read to mark all imported messages as read; the
default is to preserve the read/unread status from the source."

When I imported a new maildir source with a mix of read and unread
messages (in the cur or new subfolder, respectively), all of the
messages were marked unread.  Is the documentation wrong or is this a
bug?  I hope it's a bug.

---

From: [email-masked] (Alec Berryman)
Date: Sun, 10 Aug 2008 20:13:24 -0400

> messages were marked unread.  Is the documentation wrong or is this a

On second thought, that was a horrible bug report.

I'm using sup-0.6 from gems.  I haven't done anything fancy; I just ran
'gem install sup', and it appears all my gem packages are up to date.  I
configured sup by running sup-config, entering my name and address,
taking the other defaults, and then not adding any sources.  I added one
source later using `sup-add maildir:/path/to/maildir'.  Mutt and manual
inspection of the maildir shows most of the messages being read, but sup
shows all of them unread.  The behavior does not change if I remove
~/.sup and run the same sequence of commands except for adding a
sup-sync between running sup-add and sup.

---

From: [email-masked] (William Morgan)
Date: Tue, 12 Aug 2008 20:14:09 -0700

> messages were marked unread.  Is the documentation wrong or is this a

Weird. Can you provide some sample filenames for read and unread
messages? (Since that's how Maildir keeps state---it might be there's
some naming variant that Sup doesn't know about.)
-- 
William <wmorgan-sup at masanjin.net>

---

From: [email-masked] (Alec Berryman)
Date: Sun, 17 Aug 2008 14:59:15 -0400

> some naming variant that Sup doesn't know about.)

Sure (ls -R output; maildir attached; samples from sup-talk):

sup-does-not-import-read-messages-as-read/:
cur/
new/
tmp/

sup-does-not-import-read-messages-as-read/cur:
1218394528_0.8381.barry,U=23205,FMD5=d25c71bb54a5e1f674c1d0df91b0b4fe:2,S
1218397749_0.16026.barry,U=23207,FMD5=d25c71bb54a5e1f674c1d0df91b0b4fe:2,S
1218405160_1.1978.barry,U=23211,FMD5=d25c71bb54a5e1f674c1d0df91b0b4fe:2,S
1218413059_0.23982.barry,U=23215,FMD5=d25c71bb54a5e1f674c1d0df91b0b4fe:2,RS
1218413717_1.26111.barry,U=23216,FMD5=d25c71bb54a5e1f674c1d0df91b0b4fe:2,S
1218626652_4.3870.barry,U=23368,FMD5=d25c71bb54a5e1f674c1d0df91b0b4fe:2,S
1218626652_5.3870.barry,U=23369,FMD5=d25c71bb54a5e1f674c1d0df91b0b4fe:2,S

sup-does-not-import-read-messages-as-read/new:
1218626652_2.3870.barry,U=23366,FMD5=d25c71bb54a5e1f674c1d0df91b0b4fe

sup-does-not-import-read-messages-as-read/tmp:

When I import this folder with sup, I see all messages marked as new,
but I only expect to see 1.  The maildir names are generated by
offlineimap.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sup-does-not-import-read-messages-as-read.tar.bz2
Type: application/octet-stream
Size: 6635 bytes
Desc: not available
URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20080817/485a2391/attachment-0001.obj>