I am using K-9 5.001 on 4.4.4, using IMAP.  I am overall quite happy
with it.  My IMAP server is dovecot2.

Just now, I read mail on the phone, pushing the circle from the account
list view.  One message had already been deleted on the server (I am
sure because it's in the Trash mailbox with a ctime from before I
touched the phone).  I don't have "poll when connecting for push" set
(thinking that might reduce data usage.  So the phone didn't know that
message had been not only read but deleted.  That's fine; it shouldn't
be a problem.   But, when I read it, the message disappeared and was
replace with an empty message, with no from/to/subject/content.
On doing a sync, it went away.

My theory is that k-9 is trying to set the read flag, and gets a "no
such message" error, and maybe some (async to the read flag push)
notification of delete, but somehow the operations collide and the
message is not cleanly deleted on the phone.

I wonder if there is (enough) locking of messages surrounding flag push
and incoming notifies; it seems either order is ok, but there could be
multiple threads doing things at once.

To reproduce, I think I need to break the IMAP connection from k-9.  If
I delete from another client while K-9 is connected for push, K-9
deletes the message.  So I think I'd need to have a message arrive, have
K-9 lose data connection, delete the message with another client and
then have K-9 connect.  I tried that and the message remains, just
getting marked read.   So this may be tricky to trigger.

(I haven't looked at logcat yet; I know I should.)

I have seen another issue very occasionally where I get 0-byte files in
my IMAP folder.  But I am pretty sure that's different.

Thanks,
Greg

-- 
-- 
You received this message because you are subscribed to the K-9 Mail Users List.
To post to this group, send email to [email protected]
To unsubscribe, email [email protected]
To report an issue with K-9 Mail, visit 
http://code.google.com/p/k9mail/issues/list
For more options, visit this group at http://groups.google.com/group/k-9-mail

--- 
You received this message because you are subscribed to the Google Groups "K-9 
Mail" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Attachment: pgpkcKr3QW8UH.pgp
Description: PGP signature

Reply via email to