Re: [Dovecot] Dovecot & (Al)pine - resaving messages to Inbox
Oh, one more reply: On Wed, 2008-08-20 at 14:32 -0700, Jonathan Herbach wrote: > > if (mbox->mbox_lock_type == F_RDLCK) { > > /* FIXME: we shouldn't fail here. it's just > > a locking issue that should be possible to > > fix.. */ > > mail_storage_set_error(storage, > > MAIL_ERROR_NOTPOSSIBLE, > > "Can't copy mails inside same mailbox"); > > return -1; > > } > > So I'm currently using: mbox_write_locks: fcntl > When I was using version 9 the relevant config setting was: "mbox_locks = > fcntl", which plus the config suggestion "fcntl: Use this if possible" led > me down this path. > > Does anybody know why this code was designed this way / why it is different > from 0.99 behavior / etc? The mbox code (and a lot of other code) was rewritten since v0.99. The problem here is simply that the mbox is read-locked first for reading the message, but only after that it figures out that it should actually be write-locked since the destination mailbox is also the same. So the possibilities to fix this are: a) Unlock the mailbox, write-lock the mailbox and look up the message offset again in case the mbox was modified while the mbox was unlocked. b) Somehow figure out earlier that the mbox needs to be write-locked and do it instead of read-locking. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Dovecot & (Al)pine - resaving messages to Inbox
On Tue, 2008-08-19 at 18:43 -0700, Jonathan Herbach wrote: > I really miss the ability to reorder messages in my inbox since I often use > it as a queue of important items. Does anybody have any ideas why I'm seeing > this error message? Or better yet, how to potentially (re) configure the > system to allow me to resave messages into the same folder? Oh, you had an answer to my previous question. :) Anyway, you could always copy it to another mailbox and then back, but currently copying a message inside a mailbox isn't working with mbox format. Feel free to disable the extra check in the code and fix the resulting assert-crash. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Dovecot & (Al)pine - resaving messages to Inbox
On Wed, 2008-08-20 at 09:52 +0200, Nicolas KOWALSKI wrote: > - this is not specific to INBOX: when saving a message from a folder to > the same folder, Alpine complaints with the message > [Can't copy mails inside same folder ] Why do you want to do it? I disabled it because it caused Dovecot to crash in a locking related assert and I didn't bother fixing it. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Dovecot & (Al)pine - resaving messages to Inbox
> I suppose the OP does not sort by date but Arrival time (this means arrival > time in the mailbox). Exactly. I sort by arrival time, which in practice is the "unsorted" ordering based upon the mbox file itself. (Except I'd like to control the arbitrary "unsorted" order that I want by "resave to inbox" to handle reordering.) Nicolas wrote: > - a quick grep shows this is 'normal' behaviour, as written in > src/lib-storage/index/mbox/mbox-save.c > > if (mbox->mbox_lock_type == F_RDLCK) { > /* FIXME: we shouldn't fail here. it's just > a locking issue that should be possible to > fix.. */ > mail_storage_set_error(storage, > MAIL_ERROR_NOTPOSSIBLE, > "Can't copy mails inside same mailbox"); > return -1; > } So I'm currently using: mbox_write_locks: fcntl When I was using version 9 the relevant config setting was: "mbox_locks = fcntl", which plus the config suggestion "fcntl: Use this if possible" led me down this path. Does anybody know why this code was designed this way / why it is different from 0.99 behavior / etc? Jonathan _ Get thousands of games on your PC, your mobile phone, and the web with Windows®. http://clk.atdmt.com/MRT/go/108588800/direct/01/
Re: [Dovecot] Dovecot & (Al)pine - resaving messages to Inbox
On Wed, Aug 20, 2008 at 07:25:38AM -0400, Charles Marcus wrote: > On 8/20/2008, Nicolas KOWALSKI ([EMAIL PROTECTED]) wrote: > > I suppose the OP does not sort by date but Arrival time (this means > > arrival time in the mailbox). > > It was my understanding that arrival time is the time the message was > DELIVERED (by whatever mechanism is in place for final delivery of > messages), NOT the time that some IMAP CLIENT moves a message around. Well, I should not have used the 'time' word. The alpine documentation states about 'Arrival' sorting: " The Arrival sort option arranges messages in the MESSAGE INDEX in the order that they exist in the folder. This is usually the same as the order in which they arrived. This option is comparable to not sorting the messages at all. " It is the same (non-)ordering available in Mozilla mail clients, with the 'Order Received' option. -- Nicolas
Re: [Dovecot] Dovecot & (Al)pine - resaving messages to Inbox
On 8/20/2008, Nicolas KOWALSKI ([EMAIL PROTECTED]) wrote: > I suppose the OP does not sort by date but Arrival time (this means > arrival time in the mailbox). It was my understanding that arrival time is the time the message was DELIVERED (by whatever mechanism is in place for final delivery of messages), NOT the time that some IMAP CLIENT moves a message around. In other words, basically a date/time stamp done by the Delivery Agent. But as long as nothing in the message itself is being modified, then it matters not to me... ;) -- Best regards, Charles
Re: [Dovecot] Dovecot & (Al)pine - resaving messages to Inbox
On Wed, Aug 20, 2008 at 07:00:22AM -0400, Charles Marcus wrote: > On 8/20/2008, Nicolas KOWALSKI ([EMAIL PROTECTED]) wrote: > > - this is not specific to INBOX: when saving a message from a folder to > > the same folder, Alpine complaints with the message > > [Can't copy mails inside same folder ] > > I'm not sure what you mean by 'saving' a message in the same folder. Well, I just mean selecting a message in the folder "foo", asking for saving in a folder ('S' in alpine, 's' in mutt), and when the MUA asks for the destination folder, enter the same "foo" folder name. It will usually append the message to the folder, and delete the original. > Is this a message that you received from someone else? If so, it is > already 'saved'. You can MOVE it around all you want, but the date/time > stamps should always stay the same (it should still sort the same if you > sort by date/time). I suppose the OP does not sort by date but Arrival time (this means arrival time in the mailbox). > I will *vigorously* argue AGAINST changing this behavior, if this is > what you are asking for. What behaviour are you writing about? > If (Al)pine is actually modifying a received messages headers, then I > would declare (Al)pine as seriously BROKEN. ? Alpine does not modify anything; it uses standard IMAP commands. -- Nicolas
Re: [Dovecot] Dovecot & (Al)pine - resaving messages to Inbox
On 8/20/2008, Nicolas KOWALSKI ([EMAIL PROTECTED]) wrote: > - this is not specific to INBOX: when saving a message from a folder to > the same folder, Alpine complaints with the message > [Can't copy mails inside same folder ] I'm not sure what you mean by 'saving' a message in the same folder. Is this a message that you received from someone else? If so, it is already 'saved'. You can MOVE it around all you want, but the date/time stamps should always stay the same (it should still sort the same if you sort by date/time). I will *vigorously* argue AGAINST changing this behavior, if this is what you are asking for. If (Al)pine is actually modifying a received messages headers, then I would declare (Al)pine as seriously BROKEN. -- Best regards, Charles
Re: [Dovecot] Dovecot & (Al)pine - resaving messages to Inbox
On Wed, Aug 20, 2008 at 09:09:57AM +0200, Nicolas KOWALSKI wrote: > On Wed, Aug 20, 2008 at 08:34:03AM +0200, Steffen Kaiser wrote: > > On Tue, 19 Aug 2008, Jonathan Herbach wrote: > > > >> I've noticed a change since Dovecot was upgraded. I used to reorder > >> items within my INBOX in al/pine by "saving" messages back to the > >> INBOX, which I was connecting via IMAP > > > > I can "S"ave a message from INBOX to INBOX and a message from another > > folder to the INBOX just fine. But I use Dovecot v1.0.13. > > I notice the same thing than Jonathan, when using mbox format. No > problem with maildir format. I forgot to write: - this is with dovecot 1.1.2 - this is not specific to INBOX: when saving a message from a folder to the same folder, Alpine complaints with the message [Can't copy mails inside same folder ] - the debug journal of Alpine shows, with a 'news' folder: IMAP DEBUG 09:46:05 8/20: 090b COPY 100 news IMAP DEBUG 09:46:05 8/20: 090b NO Can't copy mails inside same mailbox - a quick grep shows this is 'normal' behaviour, as written in src/lib-storage/index/mbox/mbox-save.c if (mbox->mbox_lock_type == F_RDLCK) { /* FIXME: we shouldn't fail here. it's just a locking issue that should be possible to fix.. */ mail_storage_set_error(storage, MAIL_ERROR_NOTPOSSIBLE, "Can't copy mails inside same mailbox"); return -1; } -- Nicolas
Re: [Dovecot] Dovecot & (Al)pine - resaving messages to Inbox
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, 20 Aug 2008, Nicolas KOWALSKI wrote: I notice the same thing than Jonathan, when using mbox format. No problem with maildir format. I use Maildir, too. Bye, - -- Steffen Kaiser -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFIq8ZHVJMDrex4hCIRAp42AKCZ5QlWzmxLPbGwVn0OGBN42M00TQCfTUG+ GUrlQ/qbB2xcL6xJUrtdtsg= =9llu -END PGP SIGNATURE-
Re: [Dovecot] Dovecot & (Al)pine - resaving messages to Inbox
On Wed, Aug 20, 2008 at 08:34:03AM +0200, Steffen Kaiser wrote: > On Tue, 19 Aug 2008, Jonathan Herbach wrote: > >> I've noticed a change since Dovecot was upgraded. I used to reorder >> items within my INBOX in al/pine by "saving" messages back to the >> INBOX, which I was connecting via IMAP > > I can "S"ave a message from INBOX to INBOX and a message from another > folder to the INBOX just fine. But I use Dovecot v1.0.13. I notice the same thing than Jonathan, when using mbox format. No problem with maildir format. -- Nicolas
Re: [Dovecot] Dovecot & (Al)pine - resaving messages to Inbox
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 19 Aug 2008, Jonathan Herbach wrote: I've noticed a change since Dovecot was upgraded. I used to reorder items within my INBOX in al/pine by "saving" messages back to the INBOX, which I was connecting via IMAP I can "S"ave a message from INBOX to INBOX and a message from another folder to the INBOX just fine. But I use Dovecot v1.0.13. Bye, - -- Steffen Kaiser -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFIq7rdVJMDrex4hCIRAk9LAJ9uMltChWBOrU7ZTxxU/1TQqiQYWQCfZkMy FhOEAVFuI5iHMIG7yJ5cAMI= =WpVb -END PGP SIGNATURE-
[Dovecot] Dovecot & (Al)pine - resaving messages to Inbox
I have a x86 Linux box running Fedora 4. Up until 2008 I was using pine 4.64 and Dovecot 0.99.x. In early 2008 I transitioned to Alpine 1.10, and didn't notice any major changes. I upgraded to Dovecot 1.0.15 this past weekend. My dovecot -n settings are at the bottom of the email. I've noticed a change since Dovecot was upgraded. I used to reorder items within my INBOX in al/pine by "saving" messages back to the INBOX, which I was connecting via IMAP . Now when I try to do it I get an error in alpine that says: [Can't copy mails inside same folder] then: [Save to folder "{localhost:143/i...r=jherbach}INBOX" FAILED] While these are alpine messages, they appear to be from the dovecot upgrade. I really miss the ability to reorder messages in my inbox since I often use it as a queue of important items. Does anybody have any ideas why I'm seeing this error message? Or better yet, how to potentially (re) configure the system to allow me to resave messages into the same folder? Jonathan --- My settings: # 1.0.15: /usr/local/etc/dovecot.conf protocols: imap pop3 imaps pop3s ssl_cert_file: /etc/pki/dovecot/dovecot.pem ssl_key_file: /etc/pki/dovecot/private/dovecot.pem disable_plaintext_auth: no login_dir: /var/run/dovecot-login login_executable(default): /usr/local/libexec/dovecot/imap-login login_executable(imap): /usr/local/libexec/dovecot/imap-login login_executable(pop3): /usr/local/libexec/dovecot/pop3-login first_valid_gid: 100 last_valid_gid: 100 mail_location: mbox:%h/mail:INBOX=%h/Mailbox mbox_write_locks: fcntl mail_executable(default): /usr/local/libexec/dovecot/imap mail_executable(imap): /usr/local/libexec/dovecot/imap mail_executable(pop3): /usr/local/libexec/dovecot/pop3 mail_plugin_dir(default): /usr/local/lib/dovecot/imap mail_plugin_dir(imap): /usr/local/lib/dovecot/imap mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3 pop3_no_flag_updates(default): no pop3_no_flag_updates(imap): no pop3_no_flag_updates(pop3): yes pop3_uidl_format(default): pop3_uidl_format(imap): pop3_uidl_format(pop3): %08Xu%08X pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls auth default: passdb: driver: pam userdb: driver: passwd _ Get ideas on sharing photos from people like you. Find new ways to share. http://www.windowslive.com/explore/photogallery/posts?ocid=TXT_TAGLM_WL_Photo_Gallery_082008