Hello, I'm running revision 10622:de9d6dae7fe5 on AIX 5.3 with some local mods for our inbox hash function. I'm having a problem doing a "select inbox" when I use the mbox_snarf plugin. When I run truss on the process I see the following stat calls: 614528: kread(9, " 1 s e l e c t i n b".., 4096) = 15 614528: statx("/gpfs/inbox/14/tstem38", 0x0FFFFFFFFFFFF2F8, 176, 0) = 0 614528: statx("/gpfs/users/t/s/tstem38/IMAP//gpfs/inbox/14/.imap/tstem38", 0x0FFFFFFFFFFFED98, 176, 0) Err#2 ENOENT 614528: statx("/gpfs/users/t/s/tstem38/IMAP//gpfs/inbox/14/tstem38", 0x0FFFFFFFFFFFEDD8, 176, 0) Err#2 ENOENT 614528: statx("/gpfs/users/t/s/tstem38/IMAP", 0x0FFFFFFFFFFFEC88, 176, 0) = 0 614528: statx("/gpfs/users/t/s/tstem38/IMAP//gpfs/inbox/14/tstem38", 0x0FFFFFFFFFFFEDD8, 176, 0) Err#2 ENOENT 614528: statx("/gpfs/users/t/s/tstem38/IMAP", 0x0FFFFFFFFFFFEC88, 176, 0) = 0 and the client gets: 1 NO [CANNOT] Invalid mailbox name For pathing I have: plugin.conf: mbox_snarf = /gpfs/inbox/%Ju/%u and mail.conf:mail_location = mbox:%h:INBOX=/var/spool/mail/%Ju/%u I verified that not using the mbox_snarf works just fine. I have no namespaces enabled. Thanks, Jonathan -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2541 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20100202/3e965ef0/attachment-0002.bin>
On Tue, 2010-02-02 at 12:33 -0500, Jonathan Siegle wrote:> I verified that not using the mbox_snarf works just fine. I have no namespaces enabled.The code contains: //FIXME:storage->set->mail_full_filesystem_access = TRUE; IIRC I couldn't figure out a nice and easy way to actually make that work. Maybe the whole plugin could be redesigned. Probably by creating a configuration like: namespace { location = mbox:~/mail .. } namespace { prefix = ~~MboxSnarf~~/ # or whatever unique string you can think of location = mbox:~/mail:INBOX=/var/mail/%u list = no hidden = yes } plugin { mbox_snarf = ~~MboxSnarf~~/ } -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20100202/2a7b9e1e/attachment-0002.bin>
On Feb 2, 2010, at 12:47 PM, Timo Sirainen wrote:> On Tue, 2010-02-02 at 12:33 -0500, Jonathan Siegle wrote: >> I verified that not using the mbox_snarf works just fine. I have no namespaces enabled. > > The code contains: > > //FIXME:storage->set->mail_full_filesystem_access = TRUE; > > IIRC I couldn't figure out a nice and easy way to actually make that > work. Maybe the whole plugin could be redesigned. Probably by creating a > configuration like: > > namespace { > location = mbox:~/mail > .. > } > namespace { > prefix = ~~MboxSnarf~~/ # or whatever unique string you can think of > location = mbox:~/mail:INBOX=/var/mail/%u > list = no > hidden = yes > } > plugin { > mbox_snarf = ~~MboxSnarf~~/ > } >First, I haven't found a working config to use for dovecot2.0 and mbox_snarf. As I need this to function, I've been thinking about your words above and been reading http://wiki.dovecot.org/Design/Storage/Plugins. The mentality of it reminds me of the lazy-expunge-plugin, but this API is taking some time getting used to. Any pointers would be appreciated. Thanks, Jonathan -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2209 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20100429/f41d8403/attachment-0002.bin>