Hi list, hi Johannes, I'm trying to use the dovecot-dspam plugin ( http://johannes.sipsolutions.net/Projects/dovecot-dspam-integration ) with vpopmail's virtual users. All seems well, except for the fact that dspam should be called with '--user currentuser at currentdomain.com' at line 157 here: http://johannes.sipsolutions.net/Projects/dovecot-dspam-integration/beta7-code For my needs, 'currentuser at currentdomain' could be taken as the login name I use for logging in to Dovecot. As I'm not a C-programmer by a long shot, I was wondering if one of you could help me use the bincimap-API to import the login name into a variable so I can use that variable to construct a suitable dspam-command. Hope this is possible! Regards, Wicher Minnaard
Hi Wicher, [now I know who it was on jabber. heh]> I'm trying to use the dovecot-dspam plugin ( > http://johannes.sipsolutions.net/Projects/dovecot-dspam-integration ) > with vpopmail's virtual users. > All seems well, except for the fact that dspam should be called with > '--user currentuser at currentdomain.com' at line 157 here: > http://johannes.sipsolutions.net/Projects/dovecot-dspam-integration/beta7-code > > For my needs, 'currentuser at currentdomain' could be taken as the login > name I use for logging in to Dovecot. As I'm not a C-programmer by a > long shot, I was wondering if one of you could help me use the > bincimap-API to import the login name into a variable so I can use > that variable to construct a suitable dspam-command. Hope this is > possible!Why the bincimap API? The login name from dovecot should already be available in the USER variable or such. johannes -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 190 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20070712/47ca41c6/attachment-0002.bin>
On Wed, 2007-07-11 at 20:14 +0200, Wicher Minnaard wrote:> For my needs, 'currentuser at currentdomain' could be taken as the login > name I use for logging in to Dovecot. As I'm not a C-programmer by a > long shot, I was wondering if one of you could help me use the > bincimap-API to import the login name into a variable so I can use > that variable to construct a suitable dspam-command. Hope this is > possible!I have now implemented options to set arbitrary dspam arguments in my latest version (see http://johannes.sipsolutions.net/Projects/dovecot-antispam) so that should help if dovecot has the right username available via some %-expansion. johannes -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 828 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20070930/fea97517/attachment-0002.bin>