From: SourceForge.net <no...@so...> - 2012-03-28 17:57:46
|
Bugs item #1007677, was opened at 2004-08-11 18:42 Message generated for change (Comment added) made by gizero You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=450019&aid=1007677&group_id=47611 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Elliot Schwartz (esatmitdotedu) Assigned to: Nobody/Anonymous (nobody) Summary: Remove commas from sender's name in e-mail Initial Comment: On my system there are multiple sections to the name field in /etc/passwd, separated by commas: elliot:x:1018:1018:Elliot Schwartz,,,:/home/elliot:/bin/bash When the e-mail is sent, it includes the commas: From: Elliot Schwartz,,, <el...@mi...> I fixed this by changing: name = pwinfo[4] to: name = pwinfo[4].split(",")[0] But maybe there's a better way to do this using the pwd library. ---------------------------------------------------------------------- Comment By: Gizero (gizero) Date: 2012-03-28 10:57 Message: I submitted the same solution as a patch here: https://sourceforge.net/tracker/?func=detail&aid=3512485&group_id=47611&atid=450021 ---------------------------------------------------------------------- Comment By: Enver Haase (ehaase) Date: 2005-02-15 15:20 Message: Logged In: YES user_id=157422 Same effect here, cvs-syncmail brags out the fields with phone number etc. otherwise. Patch works for me, would recommend adding it. Enver ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=450019&aid=1007677&group_id=47611 |