in angle brackets with no name outside the brackets.
$Log$
+ Revision 610.19 2003/10/07 15:56:17 ajc
+ * Better handling of incoming Internet addresses consisting of an address
+ in angle brackets with no name outside the brackets.
+
Revision 610.18 2003/09/21 04:10:56 ajc
* messages.c: don't crash when a message contains more than MAXURLS of
embedded URL's. Omit them instead.
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
+
striplt(user);
striplt(node);
striplt(name);
+
+ /* If we processed a string that had the address in angle brackets
+ * but no name outside the brackets, we now have an empty name. In
+ * this case, use the user portion of the address as the name.
+ */
+ if ((strlen(name) == 0) && (strlen(user) > 0)) {
+ strcpy(name, user);
+ }
}
strcpy(&str[lb - 1], &str[rb + 1]);
}
+ else if ( (lb == 0) && (rb > lb) ) {
+ strcpy(str, &str[rb + 1]);
+ }
+
}