return (v);
default:
- v = mutt_yesorno(prompt, (v == M_ASKYES));
- CLEARLINE(main_w, LINES - 1);
- return (v);
+ return mutt_yesorno(prompt, (v == M_ASKYES));
}
}
return (v);
default:
- v = mutt_yesorno (prompt, (v == M_ASKYES));
- CLEARLINE(main_w, LINES - 1);
- return (v);
+ return mutt_yesorno(prompt, (v == M_ASKYES));
}
-
- /* not reached */
}
/* always wise to do what someone else did before */
return;
mutt_option_value(ptr->option, buf, sizeof(buf));
- if (m_strlen(ptr->init) == 0 && buf && *buf)
+ if (m_strlen(ptr->init) == 0 && *buf)
ptr->init = m_strdup(buf);
}
Realname = m_strdup(rnbuf);
}
-#ifdef USE_NNTP
- {
- FILE *f;
- char *q;
-
- if ((f = safe_fopen (SYSCONFDIR "/nntpserver", "r"))) {
- buffer[0] = '\0';
- fgets (buffer, sizeof(buffer), f);
- p = vskipspaces(buffer);
- q = (char*)p;
- while (*q && !isspace(*q))
- q++;
- *q = '\0';
- NewsServer = m_strdup(p);
- m_fclose(&f);
- }
- }
- if ((p = getenv ("NNTPSERVER")))
- NewsServer = m_strdup(p);
-#endif
-
if ((p = getenv("MAIL") ?: getenv("MAILDIR"))) {
Spoolfile = m_strdup(p);
} else {
}
}
-int mutt_get_hook_type (const char *name)
-{
- struct command_t *c;
-
- for (c = Commands; c->name; c++)
- if (c->func == mutt_parse_hook && ascii_strcasecmp (c->name, name) == 0)
- return c->data;
- return 0;
-}
-