{
int i;
- if (!path || !*path)
+ if (m_strisempty(path))
return -1;
for (i = 0; i < Incoming.len; i++) {
void mutt_print_message (HEADER * h)
{
- if (quadoption (OPT_PRINT) && (!PrintCmd || !*PrintCmd)) {
+ if (quadoption (OPT_PRINT) && m_strisempty(PrintCmd)) {
mutt_message (_("No printing command has been defined."));
return;
}
num = strtol (val, &t, 0);
- if (!*val || *t || (short) num != num) {
+ if (m_strisempty(val) || *t || (short) num != num) {
if (errbuf) {
snprintf (errbuf, errlen, _("'%s' is invalid for $%s"),
val, dst->option);
if (!dst)
return (0);
- if (!val || !*val) {
+ if (m_strisempty(val)) {
p_delete((char**) dst->data);
return (1);
}
p = (rx_t*) dst->data;
/* something to do? */
- if (!val || !*val || (p->pattern && m_strcmp(p->pattern, val) == 0))
+ if (m_strisempty(val) || (p->pattern && m_strcmp(p->pattern, val) == 0))
return (1);
if (m_strcmp(dst->option, "mask") != 0)
char* errbuf __attribute__ ((unused)), ssize_t errlen __attribute__ ((unused))) {
int flag = -1;
- if (!dst || !val || !*val)
+ if (!dst || m_strisempty(val))
return (0);
if (ascii_strncasecmp (val, "mbox", 4) == 0)
flag = M_MBOX;
{
rx_t* rx;
- if (!s || !*s)
+ if (m_strisempty(s))
return 0;
if (rx_lookup(list, s))
{
rx_t **last, *rx;
- if (!pat || !*pat || !templ)
+ if (m_strisempty(pat) || !templ)
return 0;
if (!(rx = rx_compile (pat, REG_ICASE))) {
int flags = Notify_NOTSET;
smtp_recipient_t self = NULL;
- if (!DsnNotify || !*DsnNotify || !message || !from || !*from ||
+ if (m_strisempty(DsnNotify) || !message || m_strisempty(from) ||
strstr (DsnNotify, "never") != NULL)
return;
}
static void do_dsn_ret (smtp_message_t message) {
- if (!DsnReturn || !*DsnReturn || !message)
+ if (m_strisempty(DsnReturn) || !message)
return;
if (ascii_strncasecmp (DsnReturn, "hdrs", 4) == 0)
smtp_dsn_set_ret (message, Ret_HDRS);
int mutt_libesmtp_check_usetls (const char* option, unsigned long p,
char* errbuf, size_t errlen) {
char* val = (char*) p;
- if (!val || !*val)
+ if (m_strisempty(val))
return (1);
if (m_strncmp(val, "enabled", 7) != 0 &&
m_strncmp(val, "required", 8) != 0) {
mutt_FormatString (cmd, sizeof (cmd), NONULL (Inews), nntp_format_str, 0,
0);
- if (!*cmd) {
+ if (m_strisempty(cmd)) {
i = nntp_post (msg);
unlink (msg);
return i;