[Dovecot] Search for (any of) multiple terms slow

2008-08-13 Thread Patrick Nagel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, this may be an obvious logical problem I'm not aware of, which cannot be solved any more efficiently... but maybe it's just a bug or there is potential for optimisation in Dovecot (or Thunderbird?). When searching for multiple terms at once

Re: [Dovecot] sieve - Sendmail process terminated abnormally, exit status 70

2008-08-13 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 12 Aug 2008, Thomas Harold wrote: Check out /usr/include/sysexits.h what exit code 70 means on your system - 70 is internal software error in Linux. Then check when /usr/lib/sendmail will exit with this code. Deliver will run

[Dovecot] RfE: use HOSTNAME environment variable in hostpid_init()

2008-08-13 Thread Heiko Schlichting
Hi, All parts of dovecot except deliver uses the result of hostpid_init() in src/lib/hostpid.c as a hostname which only asks gethostname(). deliver honours environment variable HOSTNAME in src/deliver/deliver.c: getenv(HOSTNAME); and uses the hostname of hostpid_init() as a fallback.

Re: [Dovecot] syslog with PID

2008-08-13 Thread Heiko Schlichting
Timo Sirainen wrote: On Jul 31, 2008, at 12:20 PM, Heiko Schlichting wrote: Without logging the pid, it is impossible to match 'Disconnected' log entries and the corresponding session start/login. You can use %p in mail_log_prefix to log imap/pop3 process PID. It can't be done with login

[Dovecot] Trying to Hide Namespace - new configuration options?

2008-08-13 Thread Daniel Watts
Using 1.1.2 We have: # default namespace namespace private { separator = / prefix = inbox = yes #location = maildir:/home/virtual/%h #Maildir } # for backwards compatibility: namespace private { separator = / prefix = mail/

Re: [Dovecot] How to do line breaks in sieve scripts?

2008-08-13 Thread Heiko Hund
CJ, Sephan, On Friday 08 August 2008 16:37:11 CJ Keist wrote: Thank you, didn't realize how buggy the libphp-sieve was. It does compile fine with sievec. Fixed the issue last night. If you find other bugs, please let me know through the bug-tracker in the future. I rely on feedback to get

Re: [Dovecot] Trying to Hide Namespace - new configuration options?

2008-08-13 Thread Charles Marcus
On 8/13/2008, Daniel Watts ([EMAIL PROTECTED]) wrote: If i set the prefix to blank I only see my Inbox and Deleted folders. Interestingly it shows 'Deleted' not 'Trash'. I guess Thunderbird renames 'Trash'. Maybe this is a TBird issue rather than dovecot? The Trash is a 'special folder' to

Re: [Dovecot] Cyrus vs Dovecot

2008-08-13 Thread kbajwa
Hello: I think you are missing a point which is most important, i.e., what type of support Cyrus vs Dovecot offers. In my experience: Cyrus = 0 Dovecot= 100 My personal experience. Kirt

Re: [Dovecot] Trying to Hide Namespace - new configuration options?

2008-08-13 Thread Daniel Watts
Charles Marcus wrote: On 8/13/2008, Daniel Watts ([EMAIL PROTECTED]) wrote: If i set the prefix to blank I only see my Inbox and Deleted folders. Interestingly it shows 'Deleted' not 'Trash'. I guess Thunderbird renames 'Trash'. Maybe this is a TBird issue rather than dovecot? The Trash is a

Re: [Dovecot] Cyrus vs Dovecot

2008-08-13 Thread Ed W
kbajwa wrote: Hello: I think you are missing a point which is most important, i.e., what type of support Cyrus vs Dovecot offers. In my experience: Cyrus = 0 Dovecot= 100 My personal experience. Don't forget that although for some reason he doesn't widely advertise it - Timo

Re: [Dovecot] Cyrus vs Dovecot

2008-08-13 Thread Mathieu Kretchner
kbajwa a écrit : Hello: I think you are missing a point which is most important, i.e., what type of support Cyrus vs Dovecot offers. In my experience: Cyrus = 0 Dovecot= 100 My personal experience. Kirt I guess you've right but I can't post this answer at Cyrus mailing list.

Re: [Dovecot] sieve - Sendmail process terminated abnormally, exit status 70

2008-08-13 Thread Christian Schmidt
Steffen Kaiser, 13.08.2008 (d.m.y): On Tue, 12 Aug 2008, Thomas Harold wrote: Check out /usr/include/sysexits.h what exit code 70 means on your system - 70 is internal software error in Linux. Then check when /usr/lib/sendmail will exit with this code. Deliver will run /usr/lib/sendmail

[Dovecot] Marking as Read causes Body.Peek on ALL messages - Reasonable?

2008-08-13 Thread Daniel Watts
I've noticed when I select a folder of messages (Thunderbird) and mark them all as read (or unread) it produces the following IMAP transcript: Source Destination Info c.c.c.c s.s.s.s Request: DONE s.s.s.s c.c.c.c Response: 20 OK Idle completed. c.c.c.c s.s.s.s Request: 21 uid store 1:20

Re: [Dovecot] Cyrus vs Dovecot

2008-08-13 Thread Ed W
Mathieu Kretchner wrote: kbajwa a écrit : Hello: I think you are missing a point which is most important, i.e., what type of support Cyrus vs Dovecot offers. In my experience: Cyrus = 0 Dovecot= 100 My personal experience. Kirt I guess you've right but I can't post this

Re: [Dovecot] Cyrus vs Dovecot

2008-08-13 Thread Timo Sirainen
On Aug 13, 2008, at 12:44 PM, Ed W wrote: On the cyrus list they mentioned email retention policies. Now some people are going to say that this is really a job for the MTA (postfix/sendmail/etc). However, you have some plugins which might get you partly towards solving that need, but

Re: [Dovecot] IMAP inbox: cannot delete tagged messages or change their tag

2008-08-13 Thread Timo Sirainen
On Aug 12, 2008, at 7:17 PM, Epimedia wrote: Hello, a bit of a problem with Dovecot. Version is 1.0.15 and is a default install (no changes to config) from FC8 repository... except that Dovecot is configured to use Maildir I have a user on the system who uses the tags in Thunderbird

Re: [Dovecot] Marking as Read causes Body.Peek on ALL messages - Reasonable?

2008-08-13 Thread Timo Sirainen
On Aug 13, 2008, at 12:12 PM, Daniel Watts wrote: I've noticed when I select a folder of messages (Thunderbird) and mark them all as read (or unread) it produces the following IMAP transcript: Source Destination Info c.c.c.c s.s.s.s Request: DONE s.s.s.s c.c.c.c Response: 20 OK Idle

Re: [Dovecot] sieve - Sendmail process terminated abnormally, exit status 70

2008-08-13 Thread Thomas Harold
Christian Schmidt wrote: Steffen Kaiser, 13.08.2008 (d.m.y): On Tue, 12 Aug 2008, Thomas Harold wrote: Check out /usr/include/sysexits.h what exit code 70 means on your system - 70 is internal software error in Linux. Then check when /usr/lib/sendmail will exit with this code. Deliver

Re: [Dovecot] syslog with PID

2008-08-13 Thread Timo Sirainen
On Aug 13, 2008, at 4:59 AM, Heiko Schlichting wrote: I've thought about this before too though. Maybe some kind of a unique cookie could be useful. Sounds good but complicated. The only reason why I try to match login and disconnect is that imap and pop3 does not log a starting message

Re: [Dovecot] RfE: use HOSTNAME environment variable in hostpid_init()

2008-08-13 Thread Timo Sirainen
On Aug 13, 2008, at 4:42 AM, Heiko Schlichting wrote: All parts of dovecot except deliver uses the result of hostpid_init() in src/lib/hostpid.c as a hostname which only asks gethostname(). deliver honours environment variable HOSTNAME in src/deliver/ deliver.c: getenv(HOSTNAME); and

Re: [Dovecot] Marking as Read causes Body.Peek on ALL messages - Reasonable?

2008-08-13 Thread Daniel Watts
I've noticed when I select a folder of messages (Thunderbird) and mark them all as read (or unread) it produces the following IMAP transcript: SourceDestinationInfo c.c.c.cs.s.s.sRequest: DONE s.s.s.sc.c.c.cResponse: 20 OK Idle completed. c.c.c.cs.s.s.s

Re: [Dovecot] Marking as Read causes Body.Peek on ALL messages - Reasonable?

2008-08-13 Thread Charles Marcus
On 8/13/2008, Daniel Watts ([EMAIL PROTECTED]) wrote: The more I use Thunderbird the more I find it totally insane. Did you file a bug report? I imagine this is something that could use some fixing, and there is a much higher chance that the TBird devs will listen than most other clients... I

Re: [Dovecot] [PATCH] Allow GSSAPI to work with multihomed hosts

2008-08-13 Thread Timo Sirainen
On Aug 12, 2008, at 2:28 AM, Jason Gunthorpe wrote: I choose to just use the magic configurable: auth_gssapi_hostname = $ALL rather than introduce more configurables Yes, the less different settings there are the better. :) Committed to v1.2 tree:

[Dovecot] 1.1.x problems

2008-08-13 Thread Andre Hübner
Hi, since upgrading to 1.1.x i still have this bugs Next message unexpectedly lost I read this Maillist some months ago and i believe that im not the only one... The Panics and crashes in 1.1.1 are gone by upgrading to 1.1.2 but these Next message unexpectedly lost bugs are really annoying

Re: [Dovecot] 1.1.x problems

2008-08-13 Thread Charles Marcus
On 8/13/2008 3:22 PM, Andre Hübner wrote: since upgrading to 1.1.x i still have this bugs Next message unexpectedly lost I read this Maillist some months ago and i believe that im not the only one... The Panics and crashes in 1.1.1 are gone by upgrading to 1.1.2 but these Next message

Re: [Dovecot] dovecot sieve sends vacation messages with null envelope sender

2008-08-13 Thread Scott Silva
on 8-12-2008 7:26 AM CJ Keist spake the following: Josef, This is exactly same situation in our environment as well. I had to make the same change as you stated. Our central virus/spam email gateway also cans any message with out a valid from address in the mail headers. I would think most

Re: [Dovecot] 1.1.x problems

2008-08-13 Thread Andre Hübner
Hi, On 8/13/2008 3:22 PM, Andre Hübner wrote: since upgrading to 1.1.x i still have this bugs Next message unexpectedly lost I read this Maillist some months ago and i believe that im not the only one... The Panics and crashes in 1.1.1 are gone by upgrading to 1.1.2 but these Next message

[Dovecot] Webmail app ... again.

2008-08-13 Thread Roderick A. Anderson
There was a thread several weeks (or months) ago on webmail applications. I didn't like any of the options and only found few that I did but they were either expensive or not maintained. So ... I raised the question on the Catalyst Framework list about Perl based webmail apps and got nothing

Re: [Dovecot] 1.1.x problems

2008-08-13 Thread Charles Marcus
On 8/13/2008 3:59 PM, Andre Hübner wrote: ok, i did this some times already and was in contact with timo. may be there are some news in this case. i looked in the archives for similiar problems and saw that some users have this problem with 1.1.x and did not get answers f.i.

Re: [Dovecot] [PATCH] Support GSS-SPNEGO natively

2008-08-13 Thread Timo Sirainen
Committed the patch to v1.2 tree with some changes: http://hg.dovecot.org/dovecot-1.2/rev/641d761219a6 PGP.sig Description: This is a digitally signed message part

Re: [Dovecot] [PATCH] Support GSS-SPNEGO natively

2008-08-13 Thread Jason Gunthorpe
On Wed, Aug 13, 2008 at 04:23:46PM -0400, Timo Sirainen wrote: Committed the patch to v1.2 tree with some changes: http://hg.dovecot.org/dovecot-1.2/rev/641d761219a6 What happens when the winbind_spnego and the gssapi_spnego are registered at once? I did not address this because I did not have

Re: [Dovecot] Webmail app ... again.

2008-08-13 Thread Timo Sirainen
On Aug 13, 2008, at 4:05 PM, Roderick A. Anderson wrote: What I'm looking for is a good reference, besides the RFC, on IMAP. Anything out there? Electronic or dead-tree is fine. (A book of Dovecot would be neat too.) I wrote this a while ago: http://imapwiki.org/ClientImplementation One

Re: [Dovecot] [PATCH] Allow GSSAPI to work with multihomed hosts

2008-08-13 Thread Jason Gunthorpe
On Wed, Aug 13, 2008 at 03:07:55PM -0400, Timo Sirainen wrote: + auth_request_log_info(request, gssapi, +Using all keytab entires); I'm beginning to wonder about the logging in the code though. To me it looks like all of these should rather be log_debug

Re: [Dovecot] [PATCH] Support GSS-SPNEGO natively

2008-08-13 Thread Timo Sirainen
On Aug 13, 2008, at 4:35 PM, Jason Gunthorpe wrote: Ideally though it would be nice if the config file could specify a mapping from SASL name to internal module and NTLM_USE_WINBIND could go away. Well, I renamed auth_ntlm_use_winbind to just auth_use_winbind:

Re: [Dovecot] Webmail app ... again.

2008-08-13 Thread Roderick A. Anderson
Timo Sirainen wrote: On Aug 13, 2008, at 4:05 PM, Roderick A. Anderson wrote: What I'm looking for is a good reference, besides the RFC, on IMAP. Anything out there? Electronic or dead-tree is fine. (A book of Dovecot would be neat too.) I wrote this a while ago:

Re: [Dovecot] 1.1.x problems

2008-08-13 Thread Timo Sirainen
On Aug 13, 2008, at 3:22 PM, Andre Hübner wrote: since upgrading to 1.1.x i still have this bugs Next message unexpectedly lost I read this Maillist some months ago and i believe that im not the only one... The Panics and crashes in 1.1.1 are gone by upgrading to 1.1.2 but these Next

Re: [Dovecot] Webmail app ... again.

2008-08-13 Thread Brian Hayden
On Aug 13 2008, Roderick A. Anderson wrote: I've seen several messages on the list that seem to indicate some clients don't maintain the connection. It will be interesting to see what the implications of this. Not sure if it can be done from a HTTP connection as it is suppose to be

Re: [Dovecot] Webmail app ... again.

2008-08-13 Thread Timo Sirainen
On Aug 13, 2008, at 4:59 PM, Roderick A. Anderson wrote: One thing that would be nice, that pretty much no webmail does, is to keep a stateful connection open all the time (or at least some of the time) instead of creating tons of short-lived connections that ask the same stuff over and

Re: [Dovecot] Webmail app ... again.

2008-08-13 Thread Chris Wakelin
Brian Hayden wrote: Have you investigated Prayer? That's what we use, in a modded version, because it maintains persistent IMAP connections (among other reasons). You could think of it as an IMAP client that happens to be using a web browser to draw back to your screen, as if it were X

Re: [Dovecot] Webmail app ... again.

2008-08-13 Thread Geert Hendrickx
On Wed, Aug 13, 2008 at 04:37:11PM -0400, Timo Sirainen wrote: One thing that would be nice, that pretty much no webmail does, is to keep a stateful connection open all the time (or at least some of the time) instead of creating tons of short-lived connections that ask the same stuff over and

[Dovecot] Migrating mbox to maildir

2008-08-13 Thread Kenneth Porter
On Wednesday, August 06, 2008 10:18 PM -0400 Timo Sirainen [EMAIL PROTECTED] wrote: So I guess you're using mbox? There it's safe to delete everything. If you're using maildir you should keep dovecot-uidlist and dovecot-keywords. I'm in the process of getting my head around the least painful

Re: [Dovecot] Procmail versus Dovecot LDA

2008-08-13 Thread Timo Sirainen
On Aug 13, 2008, at 12:02 AM, Gerhard Wiesinger wrote: BTW: Timo please fix the bugs regarding deliver and dovecot index bugs as already discussed. Scanning large mailbox folders takes a lot of time. If you need any help just let me know it. I was never able to reproduce the problem

[Dovecot] Yea[h]

2008-08-13 Thread Chris Wakelin
Timo Sirainen wrote: Yea, ... I've been meaning to tell you that should be Yeah for an informal version of Yes, otherwise it's a very archaic form of Yes or Indeed as in Yea, though I walk in the valley of the shadow of death! I think that's also true of American/Aussie etc. as well ...

Re: [Dovecot] Cyrus vs Dovecot

2008-08-13 Thread Pascal Gienger
Mathieu Kretchner [EMAIL PROTECTED] wrote: kbajwa a écrit : Cyrus = 0 Dovecot= 100 I guess you've right but I can't post this answer at Cyrus mailing list. I'm just trying to have my own opinion of imap server and I already have sarcastic answer on the cyrus mailing list !

Re: [Dovecot] Cyrus vs Dovecot

2008-08-13 Thread Wesley Craig
On 13 Aug 2008, at 10:31, kbajwa wrote: I think you are missing a point which is most important, i.e., what type of support Cyrus vs Dovecot offers. In my experience: Cyrus = 0 Dovecot= 100 As someone who answers many help requests for cyrus (and I'm very far from the only

Re: [Dovecot] Yea[h]

2008-08-13 Thread Timo Sirainen
On Aug 13, 2008, at 5:24 PM, Chris Wakelin wrote: Timo Sirainen wrote: Yea, ... I've been meaning to tell you that should be Yeah for an informal version of Yes, otherwise it's a very archaic form of Yes or Indeed as in Yea, though I walk in the valley of the shadow of death! Hmm.

Re: [Dovecot] Corrupted index cache files

2008-08-13 Thread Mike Abbott
One or more users? Many different users. Post your dovecot -n output? Here's some of it. Not very enlightening. # 1.1.2: /etc/dovecot/dovecot.conf base_dir: /var/run/dovecot/ verbose_proctitle: yes first_valid_uid: 6 last_valid_uid: 5 first_valid_gid: 6 last_valid_gid: 5

Re: [Dovecot] Corrupted index cache files

2008-08-13 Thread Timo Sirainen
On Aug 13, 2008, at 6:09 PM, Mike Abbott wrote: mail_access_groups: mail mail_privileged_group: mail You probably won't need either of these. And there's no point in setting them to the same value. Can you reproduce these easily with my imaptest tool? http://imapwiki.org/ImapTest Some

Re: [Dovecot] mbox empty messages in Sent folder

2008-08-13 Thread Diego Liziero
On Wed, Aug 6, 2008 at 4:26 PM, Timo Sirainen [EMAIL PROTECTED] wrote: On Aug 6, 2008, at 6:11 AM, Diego Liziero wrote: On Mon, Aug 4, 2008 at 4:17 PM, Timo Sirainen [EMAIL PROTECTED] wrote: Maybe this helps? http://hg.dovecot.org/dovecot-1.1/rev/8ab845d3c96d It seems so, thanks Timo.

Re: [Dovecot] mbox empty messages in Sent folder

2008-08-13 Thread Timo Sirainen
On Aug 13, 2008, at 6:19 PM, Diego Liziero wrote: Mmm.. I tried to comment out the cork part and added a 10% random sleep after sending the command if (!(rand()%9)) usleep(rand()%500); and I started getting the famous Error: IMAP(testdove): FETCH for mailbox INBOX UID xxx got too little

Re: [Dovecot] Corrupted index cache files

2008-08-13 Thread Timo Sirainen
On Aug 13, 2008, at 6:09 PM, Mike Abbott wrote: Can you reproduce these easily with my imaptest tool? http://imapwiki.org/ImapTest Some of them. When running imaptest I see these dovecot errors: Corrupted index cache file %s: record continues outside its allocated size Corrupted index

Re: [Dovecot] Webmail app ... again.

2008-08-13 Thread Daniel L. Miller
Geert Hendrickx wrote: On Wed, Aug 13, 2008 at 04:37:11PM -0400, Timo Sirainen wrote: One thing that would be nice, that pretty much no webmail does, is to keep a stateful connection open all the time (or at least some of the time) instead of creating tons of short-lived connections that ask

Re: [Dovecot] Webmail app ... again.

2008-08-13 Thread Timo Sirainen
On Aug 13, 2008, at 6:53 PM, Daniel L. Miller wrote: Geert Hendrickx wrote: On Wed, Aug 13, 2008 at 04:37:11PM -0400, Timo Sirainen wrote: One thing that would be nice, that pretty much no webmail does, is to keep a stateful connection open all the time (or at least some of the time)

Re: [Dovecot] Corrupted index cache files

2008-08-13 Thread Mike Abbott
How soon? With what kind of imaptest parameters? I can't reproduce this on my Macbook (OS X 10.5.4, HFS+). I ran imaptest for just a few minutes and saw all these errors in that time. Default imaptest parameters except for user/host names etc. Error: UIVALIDITY changed: %d - %d Did you

[Dovecot] migrating from specialized qpopper

2008-08-13 Thread Cruzio Research
I'm hoping to migrate to dovecot from qpopper, with the eventual goal of enabling IMAP. However, my qpopper installation is fairly specialized, so I thought I'd ask here to see if anyone could get me headed down the best path. Here's the situation. I'm running FreeBSD and have a virtual

Re: [Dovecot] Search for (any of) multiple terms slow

2008-08-13 Thread Patrick Nagel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, 13 Aug 2008 17:18:37 -0400, Timo Sirainen [EMAIL PROTECTED] wrote: On Aug 13, 2008, at 3:25 AM, Patrick Nagel wrote: When searching for multiple terms at once (any of) with Thunderbird/Dovecot (using FTS Squat indexes), it takes much

Re: [Dovecot] Corrupted index cache files

2008-08-13 Thread Timo Sirainen
On Aug 13, 2008, at 7:12 PM, Mike Abbott wrote: Error: UIVALIDITY changed: %d - %d Did you test with a single user or multiple users? imaptest's support for testing multiple users is currently a bit broken, but this shouldn't happen with a single user.. This error happens with

Re: [Dovecot] Can't purge folders in Trash with listescape loaded in 1.1.2

2008-08-13 Thread Adam McDougall
Timo Sirainen wrote: http://dovecot.org/patches/1.1/listescape-plugin.c should help. I also committed a couple of fixes to hg to fix the error message. Thanks, the new listescape seems to work.

Re: [Dovecot] Search for (any of) multiple terms slow

2008-08-13 Thread Timo Sirainen
On Aug 13, 2008, at 8:52 PM, Patrick Nagel wrote: Requires a lot more complexity to the code though.. Couldn't Dovecot just search the index with each single word (as it does now without OR), and then merge the results, filtering out double UIDs? This is probably not the most efficient

Re: [Dovecot] Cyrus vs Dovecot

2008-08-13 Thread Bron Gondwana
On Wed, Aug 13, 2008 at 01:07:34PM -0400, Wesley Craig wrote: On 13 Aug 2008, at 10:31, kbajwa wrote: I think you are missing a point which is most important, i.e., what type of support Cyrus vs Dovecot offers. In my experience: Cyrus = 0 Dovecot= 100 As someone who

Re: [Dovecot] Procmail versus Dovecot LDA

2008-08-13 Thread Gerhard Wiesinger
Hello Timo! A configuration issue as we had with the config discussed below can be definitly barred. locate only finds somehting in /home/gerhard/Mail/.imap/ which is correct. Config: ~/.imap 3 ls -l total 0 lrwxrwxrwx 1 gerhard users 30 Jun 13 22:30 INBOX - /home/gerhard/Mail/.imap/INBOX

Re: [Dovecot] Webmail app ... again.

2008-08-13 Thread Sean Kamath
On Aug 13, 2008, at 4:03 PM, Roderick A. Anderson wrote: Daniel L. Miller wrote: Geert Hendrickx wrote: On Wed, Aug 13, 2008 at 04:37:11PM -0400, Timo Sirainen wrote: One thing that would be nice, that pretty much no webmail does, is to keep a stateful connection open all the time (or at