# include "config.h"
#endif
-#include <string.h>
#include <ctype.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <sys/wait.h>
#include <errno.h>
-#include <sys/stat.h>
#include <fcntl.h>
-#include <time.h>
+#include <grp.h>
+#include <pwd.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sys/stat.h>
#include <sys/types.h>
+#include <sys/wait.h>
+#include <time.h>
+#include <unistd.h>
#include <utime.h>
#include <lib-lib/mem.h>
#include <lib-lib/macros.h>
#include <lib-lib/buffer.h>
#include <lib-lib/file.h>
-#include <lib-lib/debug.h>
#include <lib-lib/url.h>
#include <lib-mime/mime.h>
#include <lib-ui/curses.h>
#include <lib-ui/enter.h>
+#include "alias.h"
#include "mutt.h"
#include "mx.h"
#include "attach.h"
if (b->parameter)
parameter_list_wipe(&b->parameter);
if (b->unlink && b->filename) {
- debug_print (1, ("unlinking %s.\n", b->filename));
unlink (b->filename);
}
- else if (b->filename)
- debug_print (1, ("not unlinking %s.\n", b->filename));
p_delete(&b->filename);
p_delete(&b->content);
snprintf (s, _POSIX_PATH_MAX, "%s/madmutt-%s-%d-%d-%d-%x%x", NONULL (Tempdir),
NONULL (Hostname), (int) getuid (), (int) getpid (), Counter++,
(unsigned int) rand(), (unsigned int) rand());
- debug_print (1, ("%s:%d: mutt_mktemp returns \"%s\".\n", src, line, s));
unlink (s);
}
/* Does this pattern match? */
if (regexec(l->rx->rx, s, l->nmatch, (regmatch_t *)pmatch, (int) 0) == 0)
{
- debug_print (5, ("%s matches %s\n%d subst", s, l->rx->pattern, l->rx->rx->re_nsub));
-
/* Copy template into text, with substitutions. */
for (p = l->template; *p;) {
if (*p == '%') {
}
}
text[tlen] = '\0';
- debug_print (5, ("\"%s\"\n", text));
return 1;
}
}