Patch for email addresses with no comment

From: Paul Haldane <Paul.Haldane_at_newcastle.ac.uk_at_hypermail-project.org>
Date: Thu, 8 Apr 1999 14:38:27 +0100 (GMT)
Message-ID: <Pine.GSO.3.95-960729.990408143602.1918C-100000_at_carr6.ncl.ac.uk>

Messages with From: lines of the form
  From: <Paul.Haldane_at_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

    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)

    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)

Received on Thu 08 Apr 1999 03:41:12 PM GMT

This archive was generated by hypermail 2.2.0 : Thu 22 Feb 2007 07:33:50 PM GMT GMT