TAILQ_INSERT_TAIL(&Aliases, new, entries);
- mutt_str_strfcpy(buf, NONULL(AliasFile), sizeof(buf));
+ mutt_str_strfcpy(buf, AliasFile, sizeof(buf));
if (mutt_get_field(_("Save to file: "), buf, sizeof(buf), MUTT_FILE) != 0)
return;
mutt_expand_path(buf, sizeof(buf));
case MUTT_MH:
case MUTT_MMDF:
if (Folder)
- mutt_str_strfcpy(LastDir, NONULL(Folder), sizeof(LastDir));
+ mutt_str_strfcpy(LastDir, Folder, sizeof(LastDir));
else if (Spoolfile)
mutt_browser_select_dir(Spoolfile);
break;
mutt_str_strfcpy(LastDir, OldLastDir, sizeof(LastDir));
if (examine_directory(menu, &state, LastDir, prefix) == -1)
{
- mutt_str_strfcpy(LastDir, NONULL(HomeDir), sizeof(LastDir));
+ mutt_str_strfcpy(LastDir, HomeDir, sizeof(LastDir));
goto bail;
}
}
case OP_ENTER_MASK:
{
- mutt_str_strfcpy(buf, NONULL(Mask ? Mask->pattern : NULL), sizeof(buf));
+ mutt_str_strfcpy(buf, Mask ? Mask->pattern : NULL, sizeof(buf));
if (mutt_get_field(_("File Mask: "), buf, sizeof(buf), 0) != 0)
break;
if (is_index)
{
char buf[LONG_STRING];
- mutt_str_strfcpy(buf, NONULL(s), sizeof(buf));
+ mutt_str_strfcpy(buf, s, sizeof(buf));
mutt_check_simple(buf, sizeof(buf), NONULL(SimpleSearch));
tmp->color_pattern = mutt_pattern_comp(buf, MUTT_FULL_MSG, err);
if (!tmp->color_pattern)
short structure_changed = 0;
char *cp = mutt_param_get(&b->parameter, "charset");
- mutt_str_strfcpy(charset, NONULL(cp), sizeof(charset));
+ mutt_str_strfcpy(charset, cp, sizeof(charset));
snprintf(buf, sizeof(buf), "%s/%s", TYPE(b), b->subtype);
mutt_str_strfcpy(obuf, buf, sizeof(obuf));
dirpart[0] = *buf;
dirpart[1] = '\0';
if (*buf == '!')
- mutt_str_strfcpy(exp_dirpart, NONULL(Spoolfile), sizeof(exp_dirpart));
+ mutt_str_strfcpy(exp_dirpart, Spoolfile, sizeof(exp_dirpart));
else
- mutt_str_strfcpy(exp_dirpart, NONULL(Folder), sizeof(exp_dirpart));
+ mutt_str_strfcpy(exp_dirpart, Folder, sizeof(exp_dirpart));
p = strrchr(buf, '/');
if (p)
{
if ((op == OP_COMPOSE_ATTACH_MESSAGE) ^ (Context->magic == MUTT_NNTP))
#endif
{
- mutt_str_strfcpy(fname, NONULL(Context->path), sizeof(fname));
+ mutt_str_strfcpy(fname, Context->path, sizeof(fname));
mutt_pretty_mailbox(fname, sizeof(fname));
}
fname[0] = '\0';
if (Context)
{
- mutt_str_strfcpy(fname, NONULL(Context->path), sizeof(fname));
+ mutt_str_strfcpy(fname, Context->path, sizeof(fname));
mutt_pretty_mailbox(fname, sizeof(fname));
}
if (actx->idxlen)
tmp[sizeof(tmp) - 1] = '\0';
if (prefix)
{
- mutt_str_strfcpy(tmp, NONULL(IndentString), sizeof(tmp));
+ mutt_str_strfcpy(tmp, IndentString, sizeof(tmp));
tmplen = mutt_str_strlen(tmp);
p = tmp + tmplen;
tmplen = sizeof(tmp) - tmplen;
break;
case 'P':
- mutt_str_strfcpy(buf, NONULL(hfi->pager_progress), buflen);
+ mutt_str_strfcpy(buf, hfi->pager_progress, buflen);
break;
#ifdef USE_NNTP
mutt_safe_path(buf, sizeof(buf), addr);
mutt_file_concat_path(path, NONULL(Folder), buf, pathlen);
if (!ForceName && mx_access(path, W_OK) != 0)
- mutt_str_strfcpy(path, NONULL(Record), pathlen);
+ mutt_str_strfcpy(path, Record, pathlen);
}
else
- mutt_str_strfcpy(path, NONULL(Record), pathlen);
+ mutt_str_strfcpy(path, Record, pathlen);
}
mutt_pretty_mailbox(path, pathlen);
}
goto fail;
}
- mutt_str_strfcpy(buf, NONULL(mx.mbox), sizeof(buf));
+ mutt_str_strfcpy(buf, mx.mbox, sizeof(buf));
/* append a delimiter if necessary */
n = mutt_str_strlen(buf);
imap_cmd_start(idata, tmp);
/* and see what the results are */
- mutt_str_strfcpy(completion, NONULL(mx.mbox), sizeof(completion));
+ mutt_str_strfcpy(completion, mx.mbox, sizeof(completion));
idata->cmdtype = IMAP_CT_LIST;
idata->cmddata = &listresp;
do
if (!folder[0])
{
if (Spoolfile)
- mutt_str_strfcpy(folder, NONULL(Spoolfile), sizeof(folder));
+ mutt_str_strfcpy(folder, Spoolfile, sizeof(folder));
else if (Folder)
- mutt_str_strfcpy(folder, NONULL(Folder), sizeof(folder));
+ mutt_str_strfcpy(folder, Folder, sizeof(folder));
/* else no folder */
}
char parent[PATH_MAX];
char *p = NULL;
- mutt_str_strfcpy(parent, NONULL(path), sizeof(parent));
+ mutt_str_strfcpy(parent, path, sizeof(parent));
p = strrchr(parent, '/');
if (p)
{
/* L10N: Example: Username at myhost.com */
snprintf(prompt, sizeof(prompt), _("Username at %s: "), account->host);
- mutt_str_strfcpy(account->user, NONULL(Username), sizeof(account->user));
+ mutt_str_strfcpy(account->user, Username, sizeof(account->user));
if (mutt_get_field_unbuffered(prompt, account->user, sizeof(account->user), 0))
return -1;
}
{
if (*(buf + 1) == '/' || *(buf + 1) == 0)
{
- mutt_str_strfcpy(p, NONULL(HomeDir), sizeof(p));
+ mutt_str_strfcpy(p, HomeDir, sizeof(p));
tail = buf + 1;
}
else
{
#ifdef USE_IMAP
/* if folder = {host} or imap[s]://host/: don't append slash */
- if (mx_is_imap(NONULL(Folder)) &&
+ if (mx_is_imap(Folder) &&
(Folder[strlen(Folder) - 1] == '}' || Folder[strlen(Folder) - 1] == '/'))
{
- mutt_str_strfcpy(p, NONULL(Folder), sizeof(p));
+ mutt_str_strfcpy(p, Folder, sizeof(p));
}
else
#endif
#ifdef USE_NOTMUCH
- if (mx_is_notmuch(NONULL(Folder)))
- mutt_str_strfcpy(p, NONULL(Folder), sizeof(p));
+ if (mx_is_notmuch(Folder))
+ mutt_str_strfcpy(p, Folder, sizeof(p));
else
#endif
if (Folder && *Folder && Folder[strlen(Folder) - 1] == '/')
- mutt_str_strfcpy(p, NONULL(Folder), sizeof(p));
+ mutt_str_strfcpy(p, Folder, sizeof(p));
else
snprintf(p, sizeof(p), "%s/", NONULL(Folder));
case '>':
{
- mutt_str_strfcpy(p, NONULL(Mbox), sizeof(p));
+ mutt_str_strfcpy(p, Mbox, sizeof(p));
tail = buf + 1;
}
break;
case '<':
{
- mutt_str_strfcpy(p, NONULL(Record), sizeof(p));
+ mutt_str_strfcpy(p, Record, sizeof(p));
tail = buf + 1;
}
break;
{
if (*(buf + 1) == '!')
{
- mutt_str_strfcpy(p, NONULL(LastFolder), sizeof(p));
+ mutt_str_strfcpy(p, LastFolder, sizeof(p));
tail = buf + 2;
}
else
{
- mutt_str_strfcpy(p, NONULL(Spoolfile), sizeof(p));
+ mutt_str_strfcpy(p, Spoolfile, sizeof(p));
tail = buf + 1;
}
}
case '-':
{
- mutt_str_strfcpy(p, NONULL(LastFolder), sizeof(p));
+ mutt_str_strfcpy(p, LastFolder, sizeof(p));
tail = buf + 1;
}
break;
case '^':
{
- mutt_str_strfcpy(p, NONULL(CurrentFolder), sizeof(p));
+ mutt_str_strfcpy(p, CurrentFolder, sizeof(p));
tail = buf + 1;
}
break;
char *p = mutt_str_strdup(src);
int rc = mutt_ch_convert_string(&p, Charset, "us-ascii", 0);
/* `src' may be NULL, such as when called from the pop3 driver. */
- size_t len = mutt_str_strfcpy(buf, (rc == 0) ? NONULL(p) : NONULL(src), buflen);
+ size_t len = mutt_str_strfcpy(buf, (rc == 0) ? p : src, buflen);
/* convert the path to POSIX "Portable Filename Character Set" */
for (size_t i = 0; i < len; ++i)
#endif
#ifdef USE_NOTMUCH
if (mx_is_notmuch(path))
- mutt_str_strfcpy(buf, NONULL(Folder), buflen);
+ mutt_str_strfcpy(buf, Folder, buflen);
else
#endif
{
}
else
{
- mutt_str_strfcpy(mbox, NONULL(Mbox), sizeof(mbox));
+ mutt_str_strfcpy(mbox, Mbox, sizeof(mbox));
is_spool = mutt_is_spool(ctx->path) && !mutt_is_spool(mbox);
}
{
if (mutt_str_strcasecmp(whatfor, l->what) == 0)
{
- mutt_str_strfcpy(resp, NONULL(l->dflt), sizeof(resp));
+ mutt_str_strfcpy(resp, l->dflt, sizeof(resp));
break;
}
}
{
if (mutt_str_strcasecmp(whatfor, l->what) == 0)
{
- mutt_str_strfcpy(resp, NONULL(l->dflt), sizeof(resp));
+ mutt_str_strfcpy(resp, l->dflt, sizeof(resp));
break;
}
}
char buf1[LONG_STRING], buf2[LONG_STRING];
struct stat sb;
- mutt_str_strfcpy(path, NONULL(SmimeCaLocation), sizeof(path));
+ mutt_str_strfcpy(path, SmimeCaLocation, sizeof(path));
mutt_expand_path(path, sizeof(path));
mutt_file_quote_filename(buf1, sizeof(buf1), path);
mutt_str_strfcpy(authenticators, NntpAuthenticators, sizeof(authenticators));
else if (nserv->hasCAPABILITIES)
{
- mutt_str_strfcpy(authenticators, NONULL(nserv->authenticators), sizeof(authenticators));
+ mutt_str_strfcpy(authenticators, nserv->authenticators, sizeof(authenticators));
p = authenticators;
while (*p)
{
int rc = -1;
struct Progress progress;
- mutt_str_strfcpy(buf, NONULL(Context->pattern), sizeof(buf));
+ mutt_str_strfcpy(buf, Context->pattern, sizeof(buf));
if (prompt || op != MUTT_LIMIT)
if (mutt_get_field(prompt, buf, sizeof(buf), MUTT_PATTERN | MUTT_CLEAR) != 0 || !buf[0])
return -1;
goto finish;
}
- if (mx_mbox_open(NONULL(Spoolfile), MUTT_APPEND, &ctx) == NULL)
+ if (mx_mbox_open(Spoolfile, MUTT_APPEND, &ctx) == NULL)
goto finish;
delanswer = query_quadoption(PopDelete, _("Delete messages from server?"));
param[z] = '\0';
pvalue2 = mutt_param_get(&a->parameter, param);
- mutt_str_strfcpy(pvalue, NONULL(pvalue2), sizeof(pvalue));
+ mutt_str_strfcpy(pvalue, pvalue2, sizeof(pvalue));
if (MailcapSanitize)
mutt_file_sanitize_filename(pvalue, false);
}
else
{
- addr->mailbox = mutt_str_strdup(NONULL(Username));
+ addr->mailbox = mutt_str_strdup(Username);
}
}
(mutt_str_strcasecmp("plain", msg->content->subtype) == 0))
{
char *p = mutt_param_get(&msg->content->parameter, "format");
- if (mutt_str_strcasecmp("flowed", NONULL(p)) != 0)
+ if (mutt_str_strcasecmp("flowed", p) != 0)
rfc3676_space_stuff(msg);
}