summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
cadeb41)
Hence, removed the obscure ``free(path("./", TFOLDER));'' calls.
Still I don't see the sense in these lines, but they won't get executed,
as the condition is checked before (and the program aborts then).
Probably that's obsolete stuff that remained through several reworks.
26 files changed:
datesw = 0;
#endif /* UCI */
datesw = 0;
#endif /* UCI */
- if (!context_find("path"))
- free(path("./", TFOLDER));
if (!msgs.size)
app_msgarg(&msgs, "cur");
if (!folder)
if (!msgs.size)
app_msgarg(&msgs, "cur");
if (!folder)
- if (!context_find("path"))
- free(path("./", TFOLDER));
if (!msgp)
msgs[msgp++] = "cur";
if (!folder)
if (!msgp)
msgs[msgp++] = "cur";
if (!folder)
- if (!context_find("path"))
- free(path("./", TFOLDER));
-
if (form && (folder || msg))
adios(NULL, "can't mix forms and folders/msgs");
if (form && (folder || msg))
adios(NULL, "can't mix forms and folders/msgs");
- if (!context_find("path"))
- free(path("./", TFOLDER));
if (file && (msg || folder))
adios(NULL, "can't mix files and folders/msgs");
if (file && (msg || folder))
adios(NULL, "can't mix files and folders/msgs");
- if (!context_find("path"))
- free(path("./", TFOLDER));
-
/* get current folder */
strncpy(curfolder, getfolder(FCUR), sizeof(curfolder));
/* get current folder */
strncpy(curfolder, getfolder(FCUR), sizeof(curfolder));
- if (!context_find("path"))
- free(path("./", TFOLDER));
nmhdir = concat(m_maildir(""), "/", NULL);
/*
nmhdir = concat(m_maildir(""), "/", NULL);
/*
- if (!context_find("path"))
- free(path("./", TFOLDER));
if (file && (msgp || folder))
adios(NULL, "can't mix files and folders/msgs");
if (file && (msgp || folder))
adios(NULL, "can't mix files and folders/msgs");
- if (!context_find("path"))
- free(path("./", TFOLDER));
if (!folder)
folder = getfolder(FDEF);
maildir = m_maildir(folder);
if (!folder)
folder = getfolder(FDEF);
maildir = m_maildir(folder);
- if (!context_find("path"))
- free(path("./", TFOLDER));
if (!msgs.size)
app_msgarg(&msgs, listsw ? "all" :"cur");
if (!folder)
if (!msgs.size)
app_msgarg(&msgs, listsw ? "all" :"cur");
if (!folder)
else
tmp = add(m_maildir(invo_name), NULL);
else
tmp = add(m_maildir(invo_name), NULL);
- if (!context_find("path"))
- free(path("./", TFOLDER));
-
/* Check if we have a file to process */
if (!compfile)
adios(NULL, "need to specify a %s composition file",
/* Check if we have a file to process */
if (!compfile)
adios(NULL, "need to specify a %s composition file",
else
tmp = add(m_maildir(invo_name), NULL);
else
tmp = add(m_maildir(invo_name), NULL);
- if (!context_find("path"))
- free(path("./", TFOLDER));
-
if (file && msgs.size)
adios(NULL, "cannot specify msg and file at same time!");
if (file && msgs.size)
adios(NULL, "cannot specify msg and file at same time!");
- if (!context_find("path"))
- free(path("./", TFOLDER));
-
if (!folder)
folder = getfolder(FCUR);
maildir = m_maildir(folder);
if (!folder)
folder = getfolder(FCUR);
maildir = m_maildir(folder);
else
tmp = add(m_maildir(invo_name), NULL);
else
tmp = add(m_maildir(invo_name), NULL);
- if (!context_find("path"))
- free(path("./", TFOLDER));
-
if (file && msgs.size)
adios(NULL, "cannot specify msg and file at same time!");
if (file && msgs.size)
adios(NULL, "cannot specify msg and file at same time!");
else
tmp = add(m_maildir(invo_name), NULL);
else
tmp = add(m_maildir(invo_name), NULL);
- if (!context_find("path"))
- free(path("./", TFOLDER));
-
if (file && msgs.size)
adios(NULL, "cannot specify msg and file at same time!");
if (file && msgs.size)
adios(NULL, "cannot specify msg and file at same time!");
else
tmp = add(m_maildir(invo_name), NULL);
else
tmp = add(m_maildir(invo_name), NULL);
- if (!context_find("path"))
- free(path("./", TFOLDER));
-
if (file && msgs.size)
adios(NULL, "cannot specify msg and file at same time!");
if (file && msgs.size)
adios(NULL, "cannot specify msg and file at same time!");
- if (!context_find("path"))
- free(path("./", TFOLDER));
-
/* default is to pack whole folder */
if (!msgs.size)
app_msgarg(&msgs, "all");
/* default is to pack whole folder */
if (!msgs.size)
app_msgarg(&msgs, "all");
- if (!context_find("path"))
- free(path("./", TFOLDER));
-
/*
** If we didn't specify which messages to search,
** then search the whole folder.
/*
** If we didn't specify which messages to search,
** then search the whole folder.
seqs[seqp] = NULL; /* NULL terminate list of sequences */
seqs[seqp] = NULL; /* NULL terminate list of sequences */
- if (!context_find("path"))
- free(path("./", TFOLDER));
-
/* if no folder is given, use default folder */
if (!folder)
folder = getfolder(FDEF);
/* if no folder is given, use default folder */
if (!folder)
folder = getfolder(FDEF);
- if (!context_find("path"))
- free(path("./", TFOLDER));
if (foldp == 0)
adios(NULL, "no folder specified");
if (foldp == 0)
adios(NULL, "no folder specified");
- if (!context_find("path"))
- free(path("./", TFOLDER));
if (file && (msg || folder))
adios(NULL, "can't mix files and folders/msgs");
if (file && (msg || folder))
adios(NULL, "can't mix files and folders/msgs");
- if (!context_find("path"))
- free(path("./", TFOLDER));
if (!folder) {
folder = getfolder(FCUR);
defolder++;
if (!folder) {
folder = getfolder(FCUR);
defolder++;
- if (!context_find("path"))
- free(path("./", TFOLDER));
if (!msgs.size)
app_msgarg(&msgs, "cur");
if (!folder)
if (!msgs.size)
app_msgarg(&msgs, "cur");
if (!folder)
- if (!context_find("path"))
- free(path("./", TFOLDER));
-
/*
** Get new format string. Must be before chdir().
*/
/*
** Get new format string. Must be before chdir().
*/
- if (!context_find("path"))
- free(path("./", TFOLDER));
-
if (!msgp)
msgs[msgp++] = "cur";
maildir = m_maildir(draftfolder);
if (!msgp)
msgs[msgp++] = "cur";
maildir = m_maildir(draftfolder);
- if (!context_find("path"))
- free(path("./", TFOLDER));
-
if (file) {
if (msgp)
adios(NULL, "only one file at a time!");
if (file) {
if (msgp)
adios(NULL, "only one file at a time!");
- if (!context_find("path"))
- free(path("./", TFOLDER));
if (!msgs.size)
app_msgarg(&msgs, "all");
if (!datesw)
if (!msgs.size)
app_msgarg(&msgs, "all");
if (!datesw)