+ | SHOW_LAST_NAME
+ {
+ /* This probably won't work together very well with Middle
+ names and the like - thth */
+ if (msginfo->fromname) {
+ gchar *p;
+ gchar *str;
+
+ str = alloca(strlen(msginfo->fromname) + 1);
+ if (str != NULL) {
+ strcpy(str, msginfo->fromname);
+ p = str;
+ while (*p && !isspace(*p)) p++;
+ if (*p) {
+ /* We found a space. Get first none-space char and
+ insert rest of string from there. */
+ while (*p && isspace(*p)) p++;
+ if (*p) {
+ INSERT(p);
+ } else {
+ /* If there is no none-space char, just insert
+ whole fromname. */
+ INSERT(str);
+ }
+ } else {
+ /* If there is no space, just insert whole fromname. */
+ INSERT(str);
+ }
+ }
+ }
+ }