CVS: tmda/bin ChangeLog,1.285,1.286 tmda-ofmipd,1.39,1.40

"Jason R. Mastaler" <[email protected]>
Newsgroups gmane.mail.spam.tmda.cvs
Message-ID <[email protected]>
Update of /cvsroot/tmda/tmda/bin
In directory sc8-pr-cvs1:/tmp/cvs-serv12800/bin

Modified Files:
	ChangeLog tmda-ofmipd 
Log Message:
Add the authenticated username to the environment (LOGIN).  This lets
you do things in your config files like look up per user information
if you are running tmda-ofmipd under a single uid for multiple users.

Suggested by Bernard Johnson.


Index: ChangeLog
===================================================================
RCS file: /cvsroot/tmda/tmda/bin/ChangeLog,v
retrieving revision 1.285
retrieving revision 1.286
diff -u -r1.285 -r1.286
--- ChangeLog	16 Oct 2003 23:52:12 -0000	1.285
+++ ChangeLog	30 Oct 2003 18:18:56 -0000	1.286
@@ -1,3 +1,8 @@
+2003-10-30  Jason R. Mastaler  <[email protected]>
+
+	* tmda-ofmipd (SMTPChannel.auth_notify_succeed): Add the
+	authenticated username to the environment (LOGIN).
+	
 2003-10-16  Jason R. Mastaler  <[email protected]>
 
 	* tmda-ofmipd (quote_rcpts): Remove.

Index: tmda-ofmipd
===================================================================
RCS file: /cvsroot/tmda/tmda/bin/tmda-ofmipd,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -r1.39 -r1.40
--- tmda-ofmipd	16 Oct 2003 23:52:12 -0000	1.39
+++ tmda-ofmipd	30 Oct 2003 18:18:56 -0000	1.40
@@ -744,6 +744,7 @@
         self.push('235 AUTH successful')
         print >> DEBUGSTREAM, 'Auth: ', 'succeeded for user', \
               "'%s'" % self.__auth_username
+        os.environ['LOGIN'] = self.__auth_username
         self.__smtpauth = 1
 
     def auth_verify(self, sasl=None):
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.