[Dovecot] question about snarf plugin in dovecot 2

Tom Lieuallen toml at engr.orst.edu
Tue Dec 14 23:46:42 EET 2010


> After these changes, snarfing doesn't work for me, either straight or UW
> optional style. Either way I try it, when I connect, it creates an empty
> ~/mbox file but does not snarf my inbox into it. My mail client
> (thunderbird) doesn't see any messages at all in my inbox. I remove the
> snarf namespace and change my mail_location back and my inbox is, of
> course, back. Note that I have all the UW compatibility namespaces in
> there.

I was hoping to get a quick resolution to this; hopefully something I'm 
doing wrong.  I'm hoping to put dovecot in production tonight. ;-)

I thought I was getting closer, but...

 From looking at the logs, I see that other plugins are loaded in the 
imap service (quotas for example).  So, I added 'snarf' to my mail plugins.

protocol imap {
  ...
  mail_plugins = $mail_plugins imap_quota snarf
  ...
}

Once I do that, I see that the plugin does load.  And now it no longer 
creates an ~/mbox if it doesn't first exist.  Then again, it now panics, 
so perhaps that is happening before getting to the point of creating the 
~/mbox file.  Since the panic is happening just after reference to 
.../var/run/dovecot/empty, I'm wondering if it has something to do with 
that directory.

----

Dec 14 13:30:23 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.info] 
imap-login: Login: user=<testacct>, method=PLAIN, rip=1.2.3.4, 
lip=4.3.2.1, mpid=23312, TLS
Dec 14 13:30:23 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug] 
imap: Debug: Loading modules from directory: /private/dovecot/lib/dovecot
Dec 14 13:30:23 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug] 
imap: Debug: Module loaded: 
/private/dovecot/lib/dovecot/lib05_snarf_plugin.so
Dec 14 13:30:23 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug] 
imap: Debug: Module loaded: 
/private/dovecot/lib/dovecot/lib10_quota_plugin.so
Dec 14 13:30:23 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug] 
imap: Debug: Module loaded: 
/private/dovecot/lib/dovecot/lib11_imap_quota_plugin.so
Dec 14 13:30:23 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug] 
imap(testacct): Debug: Effective uid=9876, gid=5094, 
home=/nfs/farm/u3/t/testacct
Dec 14 13:30:23 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug] 
imap(testacct): Debug: Quota root: name=INBOX backend=fs args=mount=/a1
Dec 14 13:30:23 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug] 
imap(testacct): Debug: Quota root: name=Home quota backend=fs 
args=mount=/nfs/farm/u3/t/testacct
Dec 14 13:30:23 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug] 
imap(testacct): Debug: Namespace : type=private, prefix=, sep=/, 
inbox=yes, hidden=no, list=yes, subscriptions=yes 
location=mbox:~/mail:INBOX=~/mbox:INDEX=/a2/imap-index/testacct
Dec 14 13:30:23 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug] 
imap(testacct): Debug: fs: root=/nfs/farm/u3/t/testacct/mail, 
index=/a2/imap-index/testacct, control=, inbox=/nfs/farm/u3/t/testacct/mbox
Dec 14 13:30:23 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug] 
imap(testacct): Debug: fs quota add mailbox dir = /a1
Dec 14 13:30:23 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug] 
imap(testacct): Debug: fs quota block device = /dev/dsk/emcpower0c
Dec 14 13:30:23 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug] 
imap(testacct): Debug: fs quota mount point = /a1
Dec 14 13:30:23 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug] 
imap(testacct): Debug: fs quota mount type = ufs
Dec 14 13:30:23 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug] 
imap(testacct): Debug: fs quota add mailbox dir = /nfs/farm/u3/t/testacct
Dec 14 13:30:23 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug] 
imap(testacct): Debug: fs quota block device = 
stak.engr.oregonstate.edu:/farm-u3
Dec 14 13:30:23 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug] 
imap(testacct): Debug: fs quota mount point = /nfs/farm/u3
Dec 14 13:30:23 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug] 
imap(testacct): Debug: fs quota mount type = nfs
Dec 14 13:30:23 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug] 
imap(testacct): Debug: Namespace : type=private, prefix=mail/, sep=/, 
inbox=no, hidden=yes, list=no, subscriptions=yes 
location=mbox:~/mail:INBOX=~/mbox:INDEX=/a2/imap-index/testacct
Dec 14 13:30:23 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug] 
imap(testacct): Debug: fs: root=/nfs/farm/u3/t/testacct/mail, 
index=/a2/imap-index/testacct, control=, inbox=/nfs/farm/u3/t/testacct/mbox
Dec 14 13:30:23 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug] 
imap(testacct): Debug: Namespace : type=private, prefix=~/mail/, sep=/, 
inbox=no,
  hidden=yes, list=no, subscriptions=yes 
location=mbox:~/mail:INBOX=~/mbox:INDEX=/a2/imap-index/testacct
Dec 14 13:30:23 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug] 
imap(testacct): Debug: fs: root=/nfs/farm/u3/t/testacct/mail, 
index=/a2/imap-index/testacct, control=, inbox=/nfs/farm/u3/t/testacct/mbox
Dec 14 13:30:23 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug] 
imap(testacct): Debug: Namespace : type=private, prefix=~testacct/mail/, 
sep=/, inbox
=no, hidden=yes, list=no, subscriptions=yes 
location=mbox:~/mail:INBOX=~/mbox:INDEX=/a2/imap-index/testacct
Dec 14 13:30:23 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug] 
imap(testacct): Debug: fs: root=/nfs/farm/u3/t/testacct/mail, 
index=/a2/imap-index/testacct, control=, inbox=/nfs/farm/u3/t/testacct/mbox
Dec 14 13:30:23 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug] 
imap(testacct): Debug: Namespace : type=shared, prefix=sharedimap/, 
sep=/, inbox=
no, hidden=yes, list=no, subscriptions=yes 
location=maildir:/a1/dove-shared:INDEX=/a2/imap-index/dove-shared/testacct
Dec 14 13:30:23 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug] 
imap(testacct): Debug: maildir++: root=/a1/dove-shared, 
index=/a2/imap-index/dove-shared/testacct, control=, inbox=
Dec 14 13:30:23 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug] 
imap(testacct): Debug: Namespace snarf: type=private, prefix=/snarf, 
sep=/, inbox
=no, hidden=yes, list=no, subscriptions=yes 
location=mbox:/private/dovecot/var/run/dovecot/empty:INBOX=/a1/mail/testacct:INDEX=MEMORY
Dec 14 13:30:23 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.debug] 
imap(testacct): Debug: fs: root=/private/dovecot/var/run/dovecot/empty, 
index=, control=, inbox=/a1/mail/testacct
Dec 14 13:30:23 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.crit] 
imap(testacct): Panic: file mailbox-list-fs.c: line 150 
(fs_list_get_path): assertion failed: 
(mailbox_list_is_valid_pattern(_list, name))
Dec 14 13:30:23 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.error] 
imap(testacct): Error: Raw backtrace: 0xff1bd000 -> 0xff1bc3d0 -> 
0xff2b6fa0 -> 0xff2e5754 -> 0xff2af548 -> 0xff2ca134 -> 0xff2e5f88 -> 
0xff111320 -> 0xff2aae64 -> 0x1a9cc -> 0x1b004 -> 0x1d378 -> 0x1d334 -> 
0x1d694 -> 0x1e070 -> 0xff1c97fc -> 0xff1ca3f0 -> 0xff1c98b0 -> 
0xff1b57e0 -> 0x269bc -> 0x15b64
Dec 14 13:30:24 zen.engr.oregonstate.edu dovecot: [ID 583609 mail.error] 
master: Error: service(imap): child 23312 killed with signal 6 (core 
dumps disabled)
-----


thank you

Tom Lieuallen
Oregon State University


More information about the dovecot mailing list