Re: [Dovecot] whoson plugin for 2.0

2012-11-22 Thread Timo Sirainen
On 18.11.2012, at 18.04, Chuck Cochems wrote: On 11/16/2012 4:43 PM, Pascal Volk wrote: On 11/16/2012 11:21 PM Chuck Cochems wrote: … I need to return both the IP and the email address as a string to drop it into the old code. … You could check the code of the `doveadm who` command

Re: [Dovecot] whoson plugin for 2.0

2012-11-19 Thread Chuck Cochems
On 11/16/2012 4:43 PM, Pascal Volk wrote: On 11/16/2012 11:21 PM Chuck Cochems wrote: … I need to return both the IP and the email address as a string to drop it into the old code. … You could check the code of the `doveadm who` command http://wiki2.dovecot.org/Tools/Doveadm/Who. It shows

Re: [Dovecot] whoson plugin for 2.0

2012-11-18 Thread Chuck Cochems
On 11/16/2012 4:43 PM, Pascal Volk wrote: On 11/16/2012 11:21 PM Chuck Cochems wrote: … I need to return both the IP and the email address as a string to drop it into the old code. … You could check the code of the `doveadm who` command http://wiki2.dovecot.org/Tools/Doveadm/Who. It shows

Re: [Dovecot] whoson plugin for 2.0

2012-11-16 Thread Pascal Volk
On 11/16/2012 04:27 AM Chuck Cochems wrote: … this is, of course, because getenv() no longer functions lie it used to in plugins. so i need a replacement for getenv(IP) and getenv(USER) to make this work. AFAIR: getenv was replaced by mail_user_plugin_getenv ,--[ lib-storage/mail-user.h

Re: [Dovecot] whoson plugin for 2.0

2012-11-16 Thread Chuck Cochems
On 11/16/2012 11:53 AM, Pascal Volk wrote: On 11/16/2012 04:27 AM Chuck Cochems wrote: … this is, of course, because getenv() no longer functions lie it used to in plugins. so i need a replacement for getenv(IP) and getenv(USER) to make this work. AFAIR: getenv was replaced by

Re: [Dovecot] whoson plugin for 2.0

2012-11-16 Thread Pascal Volk
On 11/16/2012 11:21 PM Chuck Cochems wrote: … I need to return both the IP and the email address as a string to drop it into the old code. … You could check the code of the `doveadm who` command http://wiki2.dovecot.org/Tools/Doveadm/Who. It shows both, the user name and the IP address.

[Dovecot] whoson plugin for 2.0

2012-11-15 Thread Chuck Cochems
I have found a plugin at ftp://ftp.ufanet.ru/pub/boco/dovecot/whoson-plugin/ I was able to make it function on a dovecot 1.2.8 server, by changing __attr_unused__ to ATTR_UNUSED and strlcpy to i_strocpy (since glibc doesn't HAVE strlcpy, on purpose). However, it doesn't work with 2.1 this