Jonathan Herbach
2008-Aug-20  01:43 UTC
[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
Steffen Kaiser
2008-Aug-20  06:34 UTC
[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 IMAPI 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-----
Jonathan Herbach
2008-Aug-20  21:32 UTC
[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/
Timo Sirainen
2008-Aug-21  04:48 UTC
[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. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20080821/7173edbb/attachment-0002.bin>