Re: [Dovecot] fts squat index file not appearing

2011-05-22 Thread Timo Sirainen
On 22.5.2011, at 5.59, Daniel L. Miller wrote:

 On 5/20/2011 1:37 PM, Timo Sirainen wrote:
 On 20.5.2011, at 23.33, Daniel L. Miller wrote:..
 protocol imap {
  mail_plugins =  fts fts_squat imap_zlib zlib
 }
 You've enabled fts for imap protocol, nothing else. Same with zlib, which 
 can cause trouble. Make them global:
 
 mail_plugins = fts fts_squat zlib
 protocol imap {
   mail_plugins = $mail_plugins imap_zlib
 }
 
 
 Amazing - that works!  Now...WHY does that work?!  I thought I was doing the 
 RIGHT thing by using the individual protocol plugin variables - not including 
 plugins in areas that I THOUGHT were unnecessary.

Sure it worked with imap. But you were trying to use doveadm. doveadm isn't 
imap..

 If there are plugins that need to be global (and there obviously are) - 
 please indicate so in the wiki.

Everything that isn't imap_* should probably be global. That is how all the 
examples are written. I don't know where/how I could say it better.

Re: [Dovecot] fts squat index file not appearing

2011-05-21 Thread Daniel L. Miller

On 5/20/2011 1:37 PM, Timo Sirainen wrote:

On 20.5.2011, at 23.33, Daniel L. Miller wrote:..

protocol imap {
  mail_plugins =  fts fts_squat imap_zlib zlib
}

You've enabled fts for imap protocol, nothing else. Same with zlib, which can 
cause trouble. Make them global:

mail_plugins = fts fts_squat zlib
protocol imap {
   mail_plugins = $mail_plugins imap_zlib
}



Amazing - that works!  Now...WHY does that work?!  I thought I was doing 
the RIGHT thing by using the individual protocol plugin variables - not 
including plugins in areas that I THOUGHT were unnecessary.


If there are plugins that need to be global (and there obviously are) - 
please indicate so in the wiki.

--
Daniel


Re: [Dovecot] fts squat index file not appearing

2011-05-20 Thread Cor Bosman

On May 20, 2011, at 12:46 AM, Timo Sirainen wrote:

 On 19.5.2011, at 18.40, Cor Bosman wrote:
 
 Hey all, im experimenting with squat for a small project but am not having 
 much luck. Debugging tells me squat is being loaded, but the index.search 
 files are not appearing after TEXT/BODY commands. Squat plugin was added to 
 config as well.
 
 plugin {
  fts = squat
 }

No, it was something wholly unexpected to me. OSX Mail refuses to do remote 
searches. I expected OSX Mail to issue a BODY/TEXT when doing an fts, but it 
only ever searches local copies. So I cant even set up a remote archive under 
OSX Mail without first copying all 1 million emails to a local copy. How 
stupid. 

When I issues the commands by hand everything worked as expected. 

Cor



Re: [Dovecot] fts squat index file not appearing

2011-05-20 Thread Daniel L. Miller

On 5/19/2011 3:46 PM, Timo Sirainen wrote:

On 19.5.2011, at 18.40, Cor Bosman wrote:


Hey all, im experimenting with squat for a small project but am not having much 
luck. Debugging tells me squat is being loaded, but the index.search files are 
not appearing after TEXT/BODY commands. Squat plugin was added to config as 
well.

plugin {
   fts = squat
}


I do have that - but after executing a command such as doveadm search 
text -u u...@domain.com something, and then following up with a find 
/var/mail -iname 'dovecot*' - the only files I see listed are:


dovecot.mailbox.log
dovecot.map.index.log
dovecot.index.log
dovecot.index.cache

Where are the squat indexes stored?
--
Daniel


Re: [Dovecot] fts squat index file not appearing

2011-05-20 Thread Timo Sirainen
On Fri, 2011-05-20 at 08:17 -0700, Daniel L. Miller wrote:
  plugin {
 fts = squat
  }
 
 I do have that - but after executing a command such as doveadm search 
 text -u u...@domain.com something, and then following up with a find 
 /var/mail -iname 'dovecot*' - the only files I see listed are:
 
 dovecot.mailbox.log
 dovecot.map.index.log
 dovecot.index.log
 dovecot.index.cache
 
 Where are the squat indexes stored?

dovecot -n?




Re: [Dovecot] fts squat index file not appearing

2011-05-20 Thread Daniel L. Miller

On 5/20/2011 12:02 PM, Timo Sirainen wrote:

On Fri, 2011-05-20 at 08:17 -0700, Daniel L. Miller wrote:

plugin {
fts = squat
}

I do have that - but after executing a command such as doveadm search
text -u u...@domain.com something, and then following up with a find
/var/mail -iname 'dovecot*' - the only files I see listed are:

dovecot.mailbox.log
dovecot.map.index.log
dovecot.index.log
dovecot.index.cache

Where are the squat indexes stored?

dovecot -n?

# 2.0.11: /usr/local/etc/dovecot/dovecot.conf
# OS: Linux 2.6.35-22-server x86_64 Ubuntu 10.10
auth_cache_size = 4 k
auth_mechanisms = plain login
default_login_user = nobody
disable_plaintext_auth = no
listen = *
mail_attachment_dir = /var/mail/attachments
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope 
encoded-character vacation subaddress comparator-i;ascii-numeric 
relational regex imap4flags copy include variables body enotify 
environment mailbox date

namespace {
  hidden = no
  inbox = yes
  list = yes
  location =
  prefix =
  separator = .
  subscriptions = yes
  type = private
}
passdb {
  args = /usr/local/etc/dovecot/dovecot-ldap.conf
  driver = ldap
}
plugin/fts = squat
plugin/fts_squat = partial=4 full=4
plugin/sieve = ~/.dovecot.sieve
plugin/sieve_dir = ~/sieve
plugin/zlib_save = gz
plugin/zlib_save_level = 9
protocols = imap lmtp sieve
service auth {
  unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
  }
  unix_listener auth-userdb {
group = mail
mode = 0600
user = vmail
  }
}
service lmtp {
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
group = mail
mode = 0666
user = vmail
  }
}
service managesieve-login {
  inet_listener sieve {
port = 4190
  }
  inet_listener sieve_deprecated {
port = 2000
  }
  process_min_avail = 0
  service_count = 1
}
ssl_cert = /usr/local/etc/dovecot/mail.amfes.com.crt
ssl_key = /usr/local/etc/dovecot/mail.amfes.com.key
userdb {
  driver = prefetch
}
userdb {
  args = /usr/local/etc/dovecot/dovecot-ldap.conf
  driver = ldap
}
verbose_proctitle = yes
protocol lmtp {
  mail_plugins =  sieve
}
protocol lda {
  mail_plugins =  sieve
}
protocol imap {
  mail_plugins =  fts fts_squat imap_zlib zlib
}

--
Daniel


Re: [Dovecot] fts squat index file not appearing

2011-05-20 Thread Timo Sirainen
On 20.5.2011, at 23.33, Daniel L. Miller wrote:

 # 2.0.11: /usr/local/etc/dovecot/dovecot.conf
 # OS: Linux 2.6.35-22-server x86_64 Ubuntu 10.10
..
 protocol imap {
  mail_plugins =  fts fts_squat imap_zlib zlib
 }

You've enabled fts for imap protocol, nothing else. Same with zlib, which can 
cause trouble. Make them global:

mail_plugins = fts fts_squat zlib
protocol imap {
  mail_plugins = $mail_plugins imap_zlib
}




[Dovecot] fts squat index file not appearing

2011-05-19 Thread Cor Bosman
Hey all, im experimenting with squat for a small project but am not having much 
luck. Debugging tells me squat is being loaded, but the index.search files are 
not appearing after TEXT/BODY commands. Squat plugin was added to config as 
well.

Anyone have an idea?

Cor



Re: [Dovecot] fts squat index file not appearing

2011-05-19 Thread Daniel L. Miller

On 5/19/2011 8:40 AM, Cor Bosman wrote:

Hey all, im experimenting with squat for a small project but am not having much 
luck. Debugging tells me squat is being loaded, but the index.search files are 
not appearing after TEXT/BODY commands. Squat plugin was added to config as 
well.

Anyone have an idea?

Cor


+1

--
Daniel


Re: [Dovecot] fts squat index file not appearing

2011-05-19 Thread Timo Sirainen
On 19.5.2011, at 18.40, Cor Bosman wrote:

 Hey all, im experimenting with squat for a small project but am not having 
 much luck. Debugging tells me squat is being loaded, but the index.search 
 files are not appearing after TEXT/BODY commands. Squat plugin was added to 
 config as well.

plugin {
  fts = squat
}

?