Re: dovecot Digest, Vol 154, Issue 14

2016-02-17 Thread Richard Platel
-user special folder? > Message-ID: <56ba6951.8010...@gmx.de> > Content-Type: text/plain; charset=windows-1252; format=flowed > > Hello, > > Am 09.02.2016 um 22:28 schrieb Richard Platel: >> Hi >> >> It's possible to mark some folders as special use for IMAP

Per-user special folder?

2016-02-09 Thread Richard Platel
Hi It's possible to mark some folders as special use for IMAP in the config like: namespace inbox { mailbox Spam { special_use = \Junk } } Our webmail allows users to use an arbitrary folder for Spam, and we have this settings and we'd like to return it in from our UserDB (which is a

[Dovecot] maildir compressed message fix patch

2014-04-24 Thread Richard Platel
When a compressed maildir message has a bad S= size in its filename it puts the user in an unrecoverable state, since maildir's do_fix_size function just does a stat() on the maildir file and saves the compressed size in the filename. This (quick, rough, barely tested) patch addresses this

[Dovecot] zlib maildir reindex broken

2014-04-23 Thread Richard Platel
I posted to the list about this a while ago but never got a response, I have a bit more information now. Dovecot 2.2.12 and other 2.2 versions are broken when using zlib and maildir. If messages are re-indexed, the INTERNALDATE of all messages is set to the time the re-index is done. The

[Dovecot] dovecot with maildir not using mtime on reindex

2014-02-20 Thread Richard Platel
] Select completed (0.035 secs). A FETCH 1:* FULL * 1 FETCH (FLAGS () INTERNALDATE 20-Feb-2014 16:59:51 + RFC822.SIZE 2249 ENVELOPE (Thu, 20 Feb 2014 11:43:50 -0500 Test message ((Richard Platel NIL rplatel tucows.com)) ((Richard Platel NIL rplatel tucows.com)) ((Richard Platel NIL rplatel

Re: [Dovecot] dovecot with maildir not using mtime on reindex

2014-02-20 Thread Richard Platel
Furthermore: it seems the behaviour is correct (mtime is used for internaldate) if the message is not compressed. On Feb 20, 2014, at 12:09 PM, Richard Platel rpla...@tucows.com wrote: Hi. It seems that dovecot is using the current time, not a maildir file's mtime for INTERNALDATE when

[Dovecot] EAGAIN in dict proxy

2014-01-15 Thread Richard Platel
Hello, We’re using a custom program to manage quotas talking to dovecot via the dovecot dict proxy protocol over a unix socket: plugin { quota = dict:User quota::proxy:/var/run/auth_proxy_dovecot/quotasocket:quota } Dovecot gets slammed with quota requests periodically, seemingly because

Re: [Dovecot] zlib config questions

2013-12-06 Thread Richard Platel
You only need to add the zlib plugin to mail_plugins once. As far as I know, there's no indication in the logs that mail is being compressed, and the filename isn't modified to indicate that it's compressed, but, of course, the files are zlib data on disk. One gotcha if you're using maildir

Re: [Dovecot] dovecot-antispam plugin problem with multiple messages

2013-11-29 Thread Richard Platel
-backendctx, - ctx-dest_mail, + mail, move_to_class(asbox-movetype)); /* On Nov 27, 2013, at 4:17 PM, Richard Platel rpla...@tucows.com wrote: Hi With dovecot 2.2.5, and dovecot-antispam built

[Dovecot] dovecot-antispam plugin problem with multiple messages

2013-11-27 Thread Richard Platel
Hi With dovecot 2.2.5, and dovecot-antispam built from a recent HEAD pull, when copying multiple messages to or from a Spam folder, the plugin sends multiple copies of the first message to the backend. I've tried this with the pipe and spool2dir backends. For example with the spool2dir

Re: [Dovecot] fts-solr indexer-worker connects to wrong solr host dovecot-2.2.4

2013-10-03 Thread Richard Platel
; + } + /**/ + fuser = p_new(user-pool, struct fts_solr_user, 1); if (fts_solr_plugin_init_settings(user, fuser-set, env) 0) { /* invalid settings, disabling */ On 2013-10-02, at 3:28 PM, Richard Platel rpla...@tucows.com wrote: I've confirmed that this problem still exists

Re: [Dovecot] fts-solr indexer-worker connects to wrong solr host dovecot-2.2.4

2013-10-02 Thread Richard Platel
after indexing a user, and isn't idle-killed for upwards of a minute. Any help? On 2013-09-27, at 11:46 AM, Richard Platel rpla...@tucows.com wrote: Hello. We're setting up fts solr and want to have the solr server host be set per-user via UserDB. It looks like if a user connects and fts

Re: [Dovecot] Index error copying compressed message

2013-09-27 Thread Richard Platel
On 2013-09-22, at 12:35 AM, Timo Sirainen t...@iki.fi wrote: On 19.9.2013, at 23.59, Richard Platel rpla...@tucows.com wrote: Dovecot 2.2, with the zlib plugin, I think we're getting bad index entries on IMAP COPY. On copying a message to an empty folder, in the dovecot error log I see

[Dovecot] fts-solr indexer-worker connects to wrong solr host dovecot-2.2.4

2013-09-27 Thread Richard Platel
Hello. We're setting up fts solr and want to have the solr server host be set per-user via UserDB. It looks like if a user connects and fts indexes mail, and then another user connects and indexes mail, indexer-worker is connecting to the first user's fts host: User1,

[Dovecot] Index error copying compressed message

2013-09-19 Thread Richard Platel
Hi. Dovecot 2.2, with the zlib plugin, I think we're getting bad index entries on IMAP COPY. On copying a message to an empty folder, in the dovecot error log I see: Sep 19 20:34:25 imap01 dovecot: imap(gr...@rp-auth-test.com): Error: Cached message size smaller than expected (615 971) Sep

[Dovecot] Custom quota setup

2013-08-02 Thread Richard Platel
(Dovecot 2.2-ee) We have a weird quota requirement, we have file storage that we manage through our own APIs but want that usage to come out of the user's mail quota. The usage is in a maildirsize like file uncreatively called filestoresize in the user's maildir. In the past we've been

[Dovecot] feature request: IMAP passdb prefetch

2013-08-02 Thread Richard Platel
It'd be useful for us if the IMAP passdb could be used as a prefetch userdb. The remote IMAP server could respond with something like * OK key=value * OK key=value SEQ OK [CAPABILITY ...] Logged in. Or * OK some JSON key value pairs SEQ OK [CAPABILITY ...] Logged in. Would anyone else find

[Dovecot] feature request: IMAP passdb prefetch

2013-08-02 Thread Richard Platel
On 2.8.2013, at 18.20, Richard Platel rpla...@tucows.com wrote: It'd be useful for us if the IMAP passdb could be used as a prefetch userdb. The remote IMAP server could respond with something like * OK key=value * OK key=value SEQ OK [CAPABILITY ...] Logged in. Or * OK some

Re: [Dovecot] Custom quota setup

2013-08-02 Thread Richard Platel
On 2013-08-02, at 11:34 AM, Timo Sirainen t...@iki.fi wrote: On 2.8.2013, at 18.15, Richard Platel rpla...@tucows.com wrote: We pass custom quota rules for each user in our userdb, and use a custom dict proxy program, so that program could read the file and pass a setting at log in time

Re: [Dovecot] Custom quota setup

2013-08-02 Thread Richard Platel
On 2013-08-02, at 12:05 PM, Timo Sirainen t...@iki.fi wrote: On 2.8.2013, at 18.56, Richard Platel rpla...@tucows.com wrote: On 2013-08-02, at 11:34 AM, Timo Sirainen t...@iki.fi wrote: On 2.8.2013, at 18.15, Richard Platel rpla...@tucows.com wrote: We pass custom quota rules for each

[Dovecot] Renaming not supported across conflicting directory permissions

2013-02-13 Thread Richard Platel
Is it possible to disable this check in 2.1.7? (without a patch and re-compile?)

Re: [Dovecot] Fixing bad maildir message sizes

2013-01-22 Thread Richard Platel
maildir: [$maildir]\n; fixmaildir($maildir, \*STDOUT); } if ($folder) { print Fixing folder: [$folder]\n; fixfolder($folder, \*STDOUT); } } 1; On 2013-01-22, at 7:01 AM, Timo Sirainen t...@iki.fi wrote: On 21.1.2013, at 21.54, Richard Platel rpla...@tucows.com wrote

[Dovecot] Fixing bad maildir message sizes

2013-01-21 Thread Richard Platel
Hello. As stated in my previous message, we have some old compressed maildir messages with incorrect sizes in the filename. These messages cause dovecot 2.x problems. I'm trying to write a script to crawl all our messages, check the actual message size and if necessary, fix the filename.

[Dovecot] Zlib maildir reindex bug?

2013-01-14 Thread Richard Platel
Hi Running dovecot 2.1.7 (from debian repo). We have some old compressed maildir messages with the wrong S= size in the filename (our fault). If I delete index files, log in to the mailbox and try to FETCH the bad message, dovecot complains about the incorrect message size, attempts to fix

[Dovecot] Plugin help, number of messages in mailbox

2012-11-22 Thread Richard Platel
Hi, We use Dovecot for IMAP and POP (but not LDA), we want to do something when a user has an INBOX that becomes empty, or becomes not empty (set a flag in memcached, but that's not really important). I'm writing a plugin (for Dovecot 2.1.7). On mailbox_open() I can use

[Dovecot] Custom auth process in dovecot 2

2012-09-04 Thread Richard Platel
Hi, I'm trying to upgrade from dovecot-1.1.x to 2.1.7. We have our own custom auth server process (because we want to do our own password validation and for other reasons) that listens on a UNIX domain socket and speaks the dovecot auth protocol. In dovecot 1.1 we could configure this

[Dovecot] 1.1.5 abort with mal-formed address in header

2008-10-23 Thread Richard Platel
(ctx.parser); - if (ret == 0) { + if (ret = 0) { /* no addresses */ return NULL; } Richard Platel [EMAIL PROTECTED]

[Dovecot] maildir, zlib and mtime/internal date

2008-08-29 Thread Richard Platel
On the wiki: http://wiki.dovecot.org/Plugins/Zlib I think there should be a step 5.0. along the lines of get and remember the original message file's mtime And a step 5.4 like Using the touch command or some other method, set the now compressed message's mtime back to the mtime of the

Re: [Dovecot] Patch for zlib and maildir for 1.0.13

2008-04-30 Thread Richard Platel
There was a bug in this patch, causing a seg fault with 0 or 1 byte messages (which shouldn't really happen, but, hey). Patched patch attached. zlib-plugin.c.patch Description: Binary data On Apr 3, 2008, at 3:04 PM, Richard Platel wrote: When using the zlib plugin with maildir

[Dovecot] Patch for zlib and maildir for 1.0.13

2008-04-03 Thread Richard Platel
I changed how the zlib-plugin detects if a message is compressed. This patch peeks at the first two bytes of the message looking for the zlib header. -- Richard Platel Tucows zlib-plugin.c.patch Description: Binary data

[Dovecot] Patch for assertion failure in 1.0.10

2008-01-18 Thread Richard Platel
Hi FETCHing a largish (~30K) zlib compressed maildir message causes an assertion failure on an attempt to grow the stream buffer to smaller than its current size. I believe the attached patch fixes this. istream-zlib.c.patch Description: Binary data

[Dovecot] Patch for seg fault in 1.0.10

2008-01-17 Thread Richard Platel
Hi SELECTING a non-existent folder in 1.0.10 with maildir causes a seg fault and client disconnect. I believe this patch fixes the problem. zlib-plugin.c.patch Description: application/applefile zlib-plugin.c.patch Description: Binary data