[Dovecot] Antispam plugin, compile under osx

2010-04-11 Thread Bradley Giesbrecht
Any help with the below build failure would be greatly appreciated. If  
the information I am providing is deficient to diagnose the problem  
please tell me how to provide better information.


Trying to build dovecot-antispam plugin 1.3 from;
http://johannes.sipsolutions.net/download/dovecot-antispam/

Dovecot 1.2.11 installed and was configured with --enable-header- 
install. I also have dovecot compiled with sieve, managesieve and  
mysql support.


Dspam 3.9.0 installed.

I'm using the following .config file;
BACKEND=dspam-exec
DOVECOT=/opt/local/include/dovecot
INSTALLDIR=/opt/local/lib/dovecot/imap
USER=root
GROUP=root
PLUGINNAME=antispam

make fails with;
cc -DHAVE_CONFIG_H -I/opt/local/include/dovecot/ -I/opt/local/include/ 
dovecot/src/ -I/opt/local/include/dovecot/src/lib/ -I/opt/local/ 
include/dovecot/src/lib-storage/ -I/opt/local/include/dovecot/src/lib- 
mail/ -I/opt/local/include/dovecot/src/lib-imap/ -I/opt/local/include/ 
dovecot/src/lib-dict/ -I/opt/local/include/dovecot/src/lib-index/ -I/ 
opt/local/include/dovecot/src/imap/ -o dovecot-version dovecot-version.c

./dovecot-version  dovecot-version.h
./version.sh  antispam-version.h
cc -c  -fPIC -shared -Wall -Wextra -DPLUGINNAME=antispam - 
DHAVE_CONFIG_H -I/opt/local/include/dovecot/ -I/opt/local/include/ 
dovecot/src/ -I/opt/local/include/dovecot/src/lib/ -I/opt/local/ 
include/dovecot/src/lib-storage/ -I/opt/local/include/dovecot/src/lib- 
mail/ -I/opt/local/include/dovecot/src/lib-imap/ -I/opt/local/include/ 
dovecot/src/lib-dict/ -I/opt/local/include/dovecot/src/lib-index/ -I/ 
opt/local/include/dovecot/src/imap/ -o signature.o signature.c
cc -c  -fPIC -shared -Wall -Wextra -DPLUGINNAME=antispam - 
DHAVE_CONFIG_H -I/opt/local/include/dovecot/ -I/opt/local/include/ 
dovecot/src/ -I/opt/local/include/dovecot/src/lib/ -I/opt/local/ 
include/dovecot/src/lib-storage/ -I/opt/local/include/dovecot/src/lib- 
mail/ -I/opt/local/include/dovecot/src/lib-imap/ -I/opt/local/include/ 
dovecot/src/lib-dict/ -I/opt/local/include/dovecot/src/lib-index/ -I/ 
opt/local/include/dovecot/src/imap/ -o antispam-plugin.o antispam- 
plugin.c
cc -c  -fPIC -shared -Wall -Wextra -DPLUGINNAME=antispam - 
DHAVE_CONFIG_H -I/opt/local/include/dovecot/ -I/opt/local/include/ 
dovecot/src/ -I/opt/local/include/dovecot/src/lib/ -I/opt/local/ 
include/dovecot/src/lib-storage/ -I/opt/local/include/dovecot/src/lib- 
mail/ -I/opt/local/include/dovecot/src/lib-imap/ -I/opt/local/include/ 
dovecot/src/lib-dict/ -I/opt/local/include/dovecot/src/lib-index/ -I/ 
opt/local/include/dovecot/src/imap/ -o antispam-storage.o antispam- 
storage.c
cc -c  -fPIC -shared -Wall -Wextra -DPLUGINNAME=antispam - 
DHAVE_CONFIG_H -I/opt/local/include/dovecot/ -I/opt/local/include/ 
dovecot/src/ -I/opt/local/include/dovecot/src/lib/ -I/opt/local/ 
include/dovecot/src/lib-storage/ -I/opt/local/include/dovecot/src/lib- 
mail/ -I/opt/local/include/dovecot/src/lib-imap/ -I/opt/local/include/ 
dovecot/src/lib-dict/ -I/opt/local/include/dovecot/src/lib-index/ -I/ 
opt/local/include/dovecot/src/imap/ -o dspam-exec.o dspam-exec.c
cc  -fPIC -shared -Wall -Wextra -DPLUGINNAME=antispam -DHAVE_CONFIG_H - 
I/opt/local/include/dovecot/ -I/opt/local/include/dovecot/src/ -I/opt/ 
local/include/dovecot/src/lib/ -I/opt/local/include/dovecot/src/lib- 
storage/ -I/opt/local/include/dovecot/src/lib-mail/ -I/opt/local/ 
include/dovecot/src/lib-imap/ -I/opt/local/include/dovecot/src/lib- 
dict/ -I/opt/local/include/dovecot/src/lib-index/ -I/opt/local/include/ 
dovecot/src/imap/ signature.o antispam-plugin.o antispam-storage.o  
dspam-exec.o -o lib90_antispam_plugin.so

Undefined symbols:
  _mailbox_get_name, referenced from:
  _mailbox_patternmatch in antispam-plugin.o
  _mailbox_is_spam in antispam-plugin.o
  _mailbox_is_trash in antispam-plugin.o
  _mailbox_is_unsure in antispam-plugin.o
  _t_strconcat, referenced from:
  _get_setting in antispam-plugin.o
  _parse_folder_setting in antispam-plugin.o
  _call_dspam in dspam-exec.o
  _call_dspam in dspam-exec.o
  _call_dspam in dspam-exec.o
  _main, referenced from:
  start in crt1.10.5.o
  _mailbox_get_storage, referenced from:
  _mailbox_patternmatch in antispam-plugin.o
  _t_push, referenced from:
  _mailbox_patternmatch in antispam-plugin.o
  _get_setting in antispam-plugin.o
  _parse_folder_setting in antispam-plugin.o
  _i_panic, referenced from:
  _signature_list_free in signature.o
  _move_to_class in antispam-storage.o
  _antispam_copy in antispam-storage.o
  _antispam_transaction_begin in antispam-storage.o
  _antispam_mail_update_keywords in antispam-storage.o
  _antispam_mail_update_keywords in antispam-storage.o
  _antispam_mail_update_keywords in antispam-storage.o
  _i_malloc, referenced from:
  _call_dspam in dspam-exec.o
  _array_idx_set_i, referenced from:
  _antispam_mailbox_transaction_begin in antispam-storage.o
  _antispam_mailbox_mail_alloc in 

[Dovecot] Slightly OT: iPhone IMAP IDLE

2010-04-11 Thread Sabahattin Gucukoglu
Hi all,

Does anybody know whether iPhone is supposed to be able to do IMAP IDLE?  I 
know it does Push but that seems to be using Apple's Mobile Me and Exchange.

Cheers,
Sabahattin



smime.p7s
Description: S/MIME cryptographic signature


Re: [Dovecot] Slightly OT: iPhone IMAP IDLE

2010-04-11 Thread Renaud Allard
On 12/04/2010 02:49, Sabahattin Gucukoglu wrote:
 Hi all,
 
 Does anybody know whether iPhone is supposed to be able to do IMAP IDLE?  I 
 know it does Push but that seems to be using Apple's Mobile Me and Exchange.
 

Hi,

The iPhone doesn't seem to support imap-idle as it closes the connection
to the mailbox when you lock it. I just tested v4 beta with the
redesigned mail.app, but it does not seem to support that either, at
least in the bakground.
It seems there are some tweaks for jailbroken devices however.

Best Regards



smime.p7s
Description: S/MIME Cryptographic Signature


Re: [Dovecot] IMAP IDLE, Virtual mailboxes

2010-04-11 Thread Patrick Nagel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Nikolay,

(I changed my dovecot mailing list subscription from my work mail
account to my private mail account - I'm the guy who started this thread)

On 2010-04-10 15:22, Nikolay Shopik wrote:
 On 10.04.2010 11:13, Patrick Nagel wrote:
 The client can also request notifications on other mailboxes by name
   or by a limited mailbox pattern match.  Message-related notifications
   returned for the currently selected mailbox will be those specified
   by the SELECTED/SELECTED-DELAYED mailbox specifier, even if the
   selected mailbox also appears by name (or matches a pattern) in the
   command.

 I assume this only apply if all these mailboxes are on same server.

That's for sure - mailbox in IMAP always refers to the thing that most
people call folder.

But I think it's unlikely that you need push mail for more than a couple
of IMAP accounts on different servers. And in any case, there would be
no way to accomplish this, with any protocol, without having a
connection to all the IMAP servers.

Patrick.

- -- 
Key ID: 0x86E346D4http://patrick-nagel.net/key.asc
Fingerprint: 7745 E1BE FA8B FBAD 76AB 2BFC C981 E686 86E3 46D4
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iEYEARECAAYFAkvCtKgACgkQyYHmhobjRtT5cACgmHmfYBd995OIkIBiAdfuM77t
GtEAoLZBx0bxj356+Zau5PWDQs0yQol6
=J4B+
-END PGP SIGNATURE-