projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Call anno(1) instead of compiling annosbr.c into send(1).
[mmh]
/
uip
/
mark.c
diff --git
a/uip/mark.c
b/uip/mark.c
index
bdd02ad
..
79763ff
100644
(file)
--- a/
uip/mark.c
+++ b/
uip/mark.c
@@
-59,7
+59,7
@@
main(int argc, char **argv)
#ifdef LOCALE
setlocale(LC_ALL, "");
#endif
#ifdef LOCALE
setlocale(LC_ALL, "");
#endif
- invo_name = r1bindex(argv[0], '/');
+ invo_name = mhbasename(argv[0]);
/* read user profile/context */
context_read();
/* read user profile/context */
context_read();
@@
-134,9
+134,9
@@
main(int argc, char **argv)
if (folder)
adios(NULL, "only one folder at a time!");
else
if (folder)
adios(NULL, "only one folder at a time!");
else
- folder = pluspath(cp);
+ folder = getcpy(expandfol(cp));
} else
} else
- app_msgarg(&msgs, cp);
+ app_msgarg(&msgs, cp);
}
/*
}
/*
@@
-151,13
+151,11
@@
main(int argc, char **argv)
listsw++;
}
listsw++;
}
- if (!context_find("path"))
- free(path("./", TFOLDER));
if (!msgs.size)
if (!msgs.size)
- app_msgarg(&msgs, listsw ? "all" :"cur");
+ app_msgarg(&msgs, listsw ? seq_all : seq_cur);
if (!folder)
if (!folder)
- folder = getfolder(1);
- maildir = m_maildir(folder);
+ folder = getcurfol();
+ maildir = toabsdir(folder);
if (chdir(maildir) == NOTOK)
adios(maildir, "unable to change directory to");
if (chdir(maildir) == NOTOK)
adios(maildir, "unable to change directory to");
@@
-223,7
+221,7
@@
main(int argc, char **argv)
}
seq_save(mp); /* synchronize message sequences */
}
seq_save(mp); /* synchronize message sequences */
- context_replace(pfolder, folder); /* update current folder */
+ context_replace(curfolder, folder); /* update current folder */
context_save(); /* save the context file */
folder_free(mp); /* free folder/message structure */
done(0);
context_save(); /* save the context file */
folder_free(mp); /* free folder/message structure */
done(0);