CVS: tmda/TMDA ChangeLog,1.287,1.288 Util.py,1.106,1.107

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

Modified Files:
	ChangeLog Util.py 
Log Message:
Change default fallback value to an empty string instead of 'Jane Doe'
when no real fullname can be determined.  An empty string will result
in just the e-mail address being used in an auto-response, which is
better than a bogus fullname for environments where /etc/passwd isn't
relevant, or where the fullname isn't recorded in /etc/passwd.


Index: ChangeLog
===================================================================
RCS file: /cvsroot/tmda/tmda/TMDA/ChangeLog,v
retrieving revision 1.287
retrieving revision 1.288
diff -u -r1.287 -r1.288
--- ChangeLog	22 Sep 2003 23:00:21 -0000	1.287
+++ ChangeLog	1 Oct 2003 22:46:42 -0000	1.288
@@ -1,3 +1,8 @@
+2003-10-01  Jason R. Mastaler  <[email protected]>
+
+	* Util.py (getfullname): Change default fallback value to an empty
+	string instead of 'Jane Doe'.
+
 2003-09-22  Jason R. Mastaler  <[email protected]>
 
 	* Util.py (append_to_file): Strip inline comments before checking

Index: Util.py
===================================================================
RCS file: /cvsroot/tmda/tmda/TMDA/Util.py,v
retrieving revision 1.106
retrieving revision 1.107
diff -u -r1.106 -r1.107
--- Util.py	23 Sep 2003 00:22:49 -0000	1.106
+++ Util.py	1 Oct 2003 22:46:42 -0000	1.107
@@ -61,7 +61,7 @@
 
 
 def getfullname():
-    """The user's personal name"""
+    """The user's personal name.  Default is an empty value."""
     fullname = os.environ.get('TMDANAME') or \
                os.environ.get('QMAILNAME') or \
                os.environ.get('NAME') or \
@@ -70,8 +70,6 @@
         fullname = pwd.getpwuid(os.getuid())[4]
         if fullname:
             fullname = fullname.split(',')[0]
-    if not fullname:
-        fullname = 'Jane Doe'
     return fullname
 
 

_______________________________________
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.