CVS: tmda/bin tmda-ofmipd,1.36,1.37

"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-serv13621/bin

Modified Files:
	tmda-ofmipd 
Log Message:
Cosmetic bugfix.  Avoid redundant information when the 
peername is the same as the peer ip.  e.g,

Received: from davinci (216.38.197.145 [216.38.197.145]) by
	localhost.localdomain (tmda-ofmipd) with ESMTP;
	Thu, 29 May 2003 17:13:10 -0400 (EDT)



Index: tmda-ofmipd
===================================================================
RCS file: /cvsroot/tmda/tmda/bin/tmda-ofmipd,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- tmda-ofmipd	25 May 2003 02:11:13 -0000	1.36
+++ tmda-ofmipd	9 Jun 2003 22:10:52 -0000	1.37
@@ -868,7 +868,8 @@
         # to add later.
         rh = []
         rh.append('from %s' % (arg))
-        if arg.lower() != self.__peername.lower():
+        if ((arg.lower() != self.__peername.lower()) and
+            (self.__peername.lower() != self.__peerip)):
             rh.append('(%s [%s])' % (self.__peername, self.__peerip))
         else:
             rh.append('(%s)' % (self.__peerip))

_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs
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.