2 messages in net.sourceforge.lists.courier-usersRe: [courier-users] How to get $LOGNA...
FromSent OnAttachments
Moshe GurvichApr 13, 2004 4:51 am 
Chris PetersenApr 13, 2004 10:11 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] How to get $LOGNAME for virtual usersActions...
From:Chris Petersen (lis@forevermore.net)
Date:Apr 13, 2004 10:11:42 am
List:net.sourceforge.lists.courier-users

Hi, i need to find out localpart and domain for destination virtual user in maildroprc - $LOGNAME is empty..

this is what I use:

import USER if ($LOGNAME ne "") { xfilter "spamc -u $LOGNAME" } else { xfilter "spamc -u $USER" }

and yes, it's EXTREMELY annoying, and not well documented... I've also found that LOGNAME is occasionally unset when maildrop is called from something other than courier (in my case, fetchmail).

-Chris