![]()
From: Paul Haldane (Paul.Haldane@newcastle.ac.uk)
Date: Thu Apr 08 1999 - 08:38:27 CDT
Messages with From: lines of the form
From: <Paul.Haldane@ncl.ac.uk>
don't show up very nicely in the index pages as we always use the
comment part of the line. I suggest the following which uses the email
address if no comment is provided.
Paul
*** ../cvs/hypermail/src/struct.c Wed Apr 7 14:50:32 1999
--- ./struct.c Thu Apr 8 12:27:23 1999
***************
*** 90,97 ****
e = (struct emailinfo *) emalloc(sizeof(struct emailinfo));
e->msgnum = num;
- e->name = strsav(name);
e->emailaddr = strsav(email);
/* fromdate may be empty (zero length string rather than NULL)
** date will always have something in it - either a date or
--- 90,100 ----
e = (struct emailinfo *) emalloc(sizeof(struct emailinfo));
e->msgnum = num;
e->emailaddr = strsav(email);
+ if ((name == NULL) || (*name == '\0'))
+ e->name = strsav(email);
+ else
+ e->name = strsav(name);
/* fromdate may be empty (zero length string rather than NULL)
** date will always have something in it - either a date or
![]()