Bug#578434: cyrus: Changing Junk-Status to No-Junk (in Icedove3) let disappear mail and create hardlink

2010-04-20 Thread Dan White

On 19/04/10 23:18 +0200, Jakob Schuerz wrote:

Package: cyrus-imapd-2.2
Version: 2.2.13-19
Severity: important
File: cyrus

When i mark an Mail in Icedove in the Junk-Folder as no-Junk, it goes to the 
Inbox-Folder as unread.
When i change to the Inbox-Folder, the Mail sometimes disapperas immediately. 
Never found it again in Icedove.

So. I use Icedove as a IMAP-Client for a cyrus-Mailserver. Cyrus runs on the 
same machine (localhost).
When i look in the spool-directory of cyrus /var/spool/cyrus/mail/j/user/jakob 
i can find the expecting mail with grep.
This mail/the file is now hardlinked

for example:

-rw---  3 cyrus mail   15310 12. Apr 22:37 27183.


Hard links are indicative of 'singleinstancestore' being enabled (which is
on by default). See imapd.conf(5).

To trouble shoot why your messages are disappearing, reference
/usr/share/doc/cyrus-imapd-2.2/README.Debian.debug.gz and enable telemetry
logging.

--
Dan White



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#578434: cyrus: Changing Junk-Status to No-Junk (in Icedove3) let disappear mail and create hardlink

2010-04-20 Thread Jakobus Schuerz
Am 2010-04-20 14:38, schrieb Dan White:
 On 19/04/10 23:18 +0200, Jakob Schuerz wrote:
 Package: cyrus-imapd-2.2
 Version: 2.2.13-19
 Severity: important
 File: cyrus

 When i mark an Mail in Icedove in the Junk-Folder as no-Junk, it goes to 
 the Inbox-Folder as unread.
 When i change to the Inbox-Folder, the Mail sometimes disapperas 
 immediately. Never found it again in Icedove.

 So. I use Icedove as a IMAP-Client for a cyrus-Mailserver. Cyrus runs on the 
 same machine (localhost).
 When i look in the spool-directory of cyrus 
 /var/spool/cyrus/mail/j/user/jakob i can find the expecting mail with grep.
 This mail/the file is now hardlinked

 for example:

 -rw---  3 cyrus mail   15310 12. Apr 22:37 27183.
 
 Hard links are indicative of 'singleinstancestore' being enabled (which is
 on by default). See imapd.conf(5).
 
 To trouble shoot why your messages are disappearing, reference
 /usr/share/doc/cyrus-imapd-2.2/README.Debian.debug.gz and enable telemetry
 logging.
 

Thank you for this hint.

Here the Logging:

This happened, when i set the Junkstate in No-Junk in the Junk-directory.

1271768571DONE
1271768571267 OK Completed
1271768571268 uid store 8357 +FLAGS (NonJunk)
1271768571* 2 FETCH (FLAGS (\Recent \Seen Junk NonJunk) UID 8357)
268 OK Completed
1271768571269 uid store 8357 -FLAGS (Junk)
1271768571* 2 FETCH (FLAGS (\Recent \Seen NonJunk) UID 8357)
269 OK Completed
1271768571270 uid store 8357 -Flags (\Seen)
1271768571* 2 FETCH (FLAGS (\Recent NonJunk) UID 8357)
270 OK Completed
1271768571271 IDLE
1271768571+ idling
1271768571DONE
1271768571271 OK Completed
1271768571273 uid copy 8357 INBOX
1271768571273 OK [COPYUID 1256304629 8357 27209] Completed
1271768571274 uid store 8357 +FLAGS (\Deleted \Seen)
1271768571* 2 FETCH (FLAGS (\Recent \Deleted \Seen NonJunk) UID 8357)
274 OK Completed
1271768571275 noop
1271768571275 OK Completed
1271768571276 getquotaroot INBOX/Junk
1271768571* QUOTAROOT INBOX/Junk
276 OK Completed
1271768571277 UID fetch 8358:* (FLAGS)
1271768571* 2 FETCH (FLAGS (\Recent \Deleted \Seen NonJunk) UID 8357)
277 OK Completed (0.000 sec)
1271768571278 IDLE
1271768571+ idling

This happened, when i changed into the INBOX, while the Mail disappears:

== 20098 ==
1271768603DONE
1271768603* 1051 EXISTS
* 7 RECENT
140 OK Completed
1271768603141 noop
1271768603141 OK Completed
1271768603142 getquotaroot INBOX
1271768603* QUOTAROOT INBOX
142 OK Completed
1271768603143 UID fetch 27209:* (FLAGS)
1271768603* 1051 FETCH (FLAGS (\Recent NonJunk) UID 27209)
143 OK Completed (0.000 sec)
1271768603144 UID fetch 27209 (UID RFC822.SIZE FLAGS
BODY.PEEK[HEADER.FIELDS (From To Cc Bcc Subject Date Message-ID Priority
X-Priority References Newsgroups In-Reply-To Content-Type x-spam-status
x-spam-flag content-type x-bogosity)])
1271768603* 1051 FETCH (FLAGS (\Recent NonJunk) UID 27209 RFC822.SIZE
1913 BODY[HEADER.FIELDS (From To Cc Bcc Subject Date Message-ID Priority
X-Priority References Newsgroups In-Reply-To Content-Type x-spam-status
x-spam-flag content-type x-bogosity)] {321}
Date: Sat, 7 Mar 2009 01:47:16 +0100
From: Jakobus =?UTF-8?B?U2Now7xyeg==?= x.xx...@.xx
To: jakob.schu...@gmx.at, Jakobus =?UTF-8?B?U2Now7xyeg==?= (ICH)
 xx...@x.x.xxx
Subject: Neuer Server TEST
Message-ID: 20090307014716.2d595...@gmx.at
Content-Type: text/plain; charset=US-ASCII

)
144 OK Completed (0.000 sec)
1271768604145 uid store 27209 +Flags (\Seen \Deleted)
1271768604* 1051 FETCH (FLAGS (\Recent \Deleted \Seen NonJunk) UID 27209)
145 OK Completed
1271768604146 IDLE
1271768604+ idling


I hope, it will help you!

jakob

-- 
The UNIX way of Sex:
gunzip-strip-touch-finger-mount-fsck-more-yes-umount-sleep



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#578439: Bug#578434: cyrus: Changing Junk-Status to No-Junk (in Icedove3) let disappear mail and create hardlink

2010-04-20 Thread Jakobus Schuerz
From the logging in /var/lib/cyrus/log/jakob i got the following.

This happened, when i set the Junkstate in No-Junk in the Junk-directory.

The 5th-last line in the logging shows, that the \Deleted-Flag is set to
the new UID. I think this command must come from Thunderbird/Iceweasel.


1271768571DONE
1271768571267 OK Completed
1271768571268 uid store 8357 +FLAGS (NonJunk)
1271768571* 2 FETCH (FLAGS (\Recent \Seen Junk NonJunk) UID 8357)
268 OK Completed
1271768571269 uid store 8357 -FLAGS (Junk)
1271768571* 2 FETCH (FLAGS (\Recent \Seen NonJunk) UID 8357)
269 OK Completed
1271768571270 uid store 8357 -Flags (\Seen)
1271768571* 2 FETCH (FLAGS (\Recent NonJunk) UID 8357)
270 OK Completed
1271768571271 IDLE
1271768571+ idling
1271768571DONE
1271768571271 OK Completed
1271768571273 uid copy 8357 INBOX
1271768571273 OK [COPYUID 1256304629 8357 27209] Completed
1271768571274 uid store 8357 +FLAGS (\Deleted \Seen)
1271768571* 2 FETCH (FLAGS (\Recent \Deleted \Seen NonJunk) UID 8357)
274 OK Completed
1271768571275 noop
1271768571275 OK Completed
1271768571276 getquotaroot INBOX/Junk
1271768571* QUOTAROOT INBOX/Junk
276 OK Completed
1271768571277 UID fetch 8358:* (FLAGS)
1271768571* 2 FETCH (FLAGS (\Recent \Deleted \Seen NonJunk) UID 8357)
277 OK Completed (0.000 sec)
1271768571278 IDLE
1271768571+ idling

This happened, when i changed into the INBOX, while the Mail disappears:

== 20098 ==
1271768603DONE
1271768603* 1051 EXISTS
* 7 RECENT
140 OK Completed
1271768603141 noop
1271768603141 OK Completed
1271768603142 getquotaroot INBOX
1271768603* QUOTAROOT INBOX
142 OK Completed
1271768603143 UID fetch 27209:* (FLAGS)
1271768603* 1051 FETCH (FLAGS (\Recent NonJunk) UID 27209)
143 OK Completed (0.000 sec)
1271768603144 UID fetch 27209 (UID RFC822.SIZE FLAGS
BODY.PEEK[HEADER.FIELDS (From To Cc Bcc Subject Date Message-ID Priority
X-Priority References Newsgroups In-Reply-To Content-Type x-spam-status
x-spam-flag content-type x-bogosity)])
1271768603* 1051 FETCH (FLAGS (\Recent NonJunk) UID 27209 RFC822.SIZE
1913 BODY[HEADER.FIELDS (From To Cc Bcc Subject Date Message-ID Priority
X-Priority References Newsgroups In-Reply-To Content-Type x-spam-status
x-spam-flag content-type x-bogosity)] {321}
Date: Sat, 7 Mar 2009 01:47:16 +0100
From: Jakobus =?UTF-8?B?U2Now7xyeg==?= x.xx...@.xx
To: jakob.schu...@gmx.at, Jakobus =?UTF-8?B?U2Now7xyeg==?= (ICH)
 xx...@x.x.xxx
Subject: Neuer Server TEST
Message-ID: 20090307014716.2d595...@gmx.at
Content-Type: text/plain; charset=US-ASCII

)
144 OK Completed (0.000 sec)
1271768604145 uid store 27209 +Flags (\Seen \Deleted)
1271768604* 1051 FETCH (FLAGS (\Recent \Deleted \Seen NonJunk) UID 27209)
145 OK Completed
1271768604146 IDLE
1271768604+ idling


I hope, it will help you!

jakob

-- 
The UNIX way of Sex:
gunzip-strip-touch-finger-mount-fsck-more-yes-umount-sleep



-- 
To unsubscribe, send mail to 578434-unsubscr...@bugs.debian.org.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#578434: cyrus: Changing Junk-Status to No-Junk (in Icedove3) let disappear mail and create hardlink

2010-04-20 Thread Dan White

On 20/04/10 15:06 +0200, Jakobus Schuerz wrote:

Thank you for this hint.

Here the Logging:

This happened, when i set the Junkstate in No-Junk in the Junk-directory.

1271768571DONE

1271768571267 OK Completed

1271768571268 uid store 8357 +FLAGS (NonJunk)

1271768571* 2 FETCH (FLAGS (\Recent \Seen Junk NonJunk) UID 8357)

268 OK Completed
1271768571269 uid store 8357 -FLAGS (Junk)

1271768571* 2 FETCH (FLAGS (\Recent \Seen NonJunk) UID 8357)

269 OK Completed
1271768571270 uid store 8357 -Flags (\Seen)

1271768571* 2 FETCH (FLAGS (\Recent NonJunk) UID 8357)

270 OK Completed
1271768571271 IDLE

1271768571+ idling

1271768571DONE

1271768571271 OK Completed

1271768571273 uid copy 8357 INBOX

1271768571273 OK [COPYUID 1256304629 8357 27209] Completed


Copied to the INBOX, which should utilize a hard link if Cyrus determines
that it can. Those details should be hidden from the client though.


1271768571274 uid store 8357 +FLAGS (\Deleted \Seen)

1271768571* 2 FETCH (FLAGS (\Recent \Deleted \Seen NonJunk) UID 8357)

274 OK Completed


Marked for deletion.


1271768571275 noop

1271768571275 OK Completed

1271768571276 getquotaroot INBOX/Junk

1271768571* QUOTAROOT INBOX/Junk

276 OK Completed
1271768571277 UID fetch 8358:* (FLAGS)

1271768571* 2 FETCH (FLAGS (\Recent \Deleted \Seen NonJunk) UID 8357)

277 OK Completed (0.000 sec)
1271768571278 IDLE

1271768571+ idling


Closing the No-Junk mailbox should implicitly expunge the message (in the
No-Junk mailbox).


This happened, when i changed into the INBOX, while the Mail disappears:

== 20098 ==
1271768603DONE

1271768603* 1051 EXISTS

* 7 RECENT
140 OK Completed
1271768603141 noop

1271768603141 OK Completed

1271768603142 getquotaroot INBOX

1271768603* QUOTAROOT INBOX

142 OK Completed
1271768603143 UID fetch 27209:* (FLAGS)

1271768603* 1051 FETCH (FLAGS (\Recent NonJunk) UID 27209)

143 OK Completed (0.000 sec)


There is probably some kind of caching involved here. Your client
is searching for any messages with UID 27209 or greater, and finds the new
message with that UID.


1271768603144 UID fetch 27209 (UID RFC822.SIZE FLAGS
BODY.PEEK[HEADER.FIELDS (From To Cc Bcc Subject Date Message-ID Priority
X-Priority References Newsgroups In-Reply-To Content-Type x-spam-status
x-spam-flag content-type x-bogosity)])

1271768603* 1051 FETCH (FLAGS (\Recent NonJunk) UID 27209 RFC822.SIZE

1913 BODY[HEADER.FIELDS (From To Cc Bcc Subject Date Message-ID Priority
X-Priority References Newsgroups In-Reply-To Content-Type x-spam-status
x-spam-flag content-type x-bogosity)] {321}
Date: Sat, 7 Mar 2009 01:47:16 +0100
From: Jakobus =?UTF-8?B?U2Now7xyeg==?= x.xx...@.xx
To: jakob.schu...@gmx.at, Jakobus =?UTF-8?B?U2Now7xyeg==?= (ICH)
xx...@x.x.xxx
Subject: Neuer Server TEST
Message-ID: 20090307014716.2d595...@gmx.at
Content-Type: text/plain; charset=US-ASCII

)
144 OK Completed (0.000 sec)
1271768604145 uid store 27209 +Flags (\Seen \Deleted)

1271768604* 1051 FETCH (FLAGS (\Recent \Deleted \Seen NonJunk) UID 27209)

145 OK Completed


The client marks the message for deletion, but I don't think it should be
from your stated expectation.


1271768604146 IDLE

1271768604+ idling


And when you close the INBOX, the message should be unlinked or removed
as it's expunged.

--
Dan White



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#578434: cyrus: Changing Junk-Status to No-Junk (in Icedove3) let disappear mail and create hardlink

2010-04-19 Thread Jakob Schuerz
Package: cyrus-imapd-2.2
Version: 2.2.13-19
Severity: important
File: cyrus

When i mark an Mail in Icedove in the Junk-Folder as no-Junk, it goes to the 
Inbox-Folder as unread.
When i change to the Inbox-Folder, the Mail sometimes disapperas immediately. 
Never found it again in Icedove.

So. I use Icedove as a IMAP-Client for a cyrus-Mailserver. Cyrus runs on the 
same machine (localhost).
When i look in the spool-directory of cyrus /var/spool/cyrus/mail/j/user/jakob 
i can find the expecting mail with grep.
This mail/the file is now hardlinked

for example:

-rw---  3 cyrus mail   15310 12. Apr 22:37 27183.
^

This happens with each Mail when i change the Junk-state to no-junk 

Maybe it is a Problem of Icedove, because, when i try this with evolution, it 
won´t happen.
Or it´s a Problem of the combination Icedove/Cyrus


I have 

Package: icedove
Version: 3.0.4-2
Versions of packages icedove depends on:
ii  debianutils 3.2.2Miscellaneous utilities specific t
ii  fontconfig  2.8.0-2  generic font configuration library
ii  libasound2  1.0.22-2 shared library for ALSA applicatio
ii  libatk1.0-0 1.30.0-1 The ATK accessibility toolkit
ii  libc6   2.10.2-6 Embedded GNU C Library: Shared lib
ii  libcairo2   1.8.10-3 The Cairo 2D vector graphics libra
ii  libdbus-1-3 1.2.24-1 simple interprocess messaging syst
ii  libdbus-glib-1-20.84-1   simple interprocess messaging syst
ii  libfontconfig1  2.8.0-2  generic font configuration library
ii  libfreetype62.3.11-1 FreeType 2 font engine, shared lib
ii  libgcc1 1:4.4.2-9GCC support library
ii  libglib2.0-02.24.0-1 The GLib library of C routines
ii  libgtk2.0-0 2.20.0-2 The GTK+ graphical user interface
ii  libjpeg62   6b-16.1  The Independent JPEG Group's JPEG
ii  libnspr4-0d 4.8.4-1  NetScape Portable Runtime Library
ii  libnss3-1d  3.12.6-1 Network Security Service libraries
ii  libpango1.0-0   1.28.0-1 Layout and rendering of internatio
ii  libsqlite3-03.6.23.1-1   SQLite 3 shared library
ii  libstartup-notification 0.10-1   library for program launch feedbac
ii  libstdc++6  4.4.2-9  The GNU Standard C++ Library v3
ii  libx11-62:1.3.3-2X11 client-side library
ii  libxrender1 1:0.9.5-2X Rendering Extension client libra
ii  libxt6  1:1.0.7-1X11 toolkit intrinsics library
ii  psmisc  22.10-1  utilities that use the proc file s
ii  zlib1g  1:1.2.3.4.dfsg-3 compression library - runtime


Best regards

Jakob

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages cyrus-imapd-2.2 depends on:
ii  cyrus-common- 2.2.13-19  Cyrus mail system - common files
ii  libasn1-8-hei 1.4.0~git20100322.dfsg.2-1 Heimdal Kerberos - ASN.1 library
ii  libc6 2.10.2-6   Embedded GNU C Library: Shared lib
ii  libcomerr21.41.11-1  common error description library
ii  libdb4.7  4.7.25-9   Berkeley v4.7 Database Libraries [
ii  libgssapi2-he 1.4.0~git20100322.dfsg.2-1 Heimdal Kerberos - GSSAPI support 
ii  libkrb5-26-he 1.4.0~git20100322.dfsg.2-1 Heimdal Kerberos - libraries
ii  libroken18-he 1.4.0~git20100322.dfsg.2-1 Heimdal Kerberos - roken support l
ii  libsasl2-22.1.23.dfsg1-5 Cyrus SASL - authentication abstra
ii  libssl0.9.8   0.9.8n-1   SSL shared libraries
ii  libwrap0  7.6.q-18   Wietse Venema's TCP wrappers libra

cyrus-imapd-2.2 recommends no packages.

cyrus-imapd-2.2 suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org