char s[STRING];
_mutt_make_string (s, sizeof (s), MsgFmt, NULL, aptr->content->hdr,
- M_FORMAT_FORCESUBJ | M_FORMAT_MAKEPRINT |
- (option(OPTARROWCURSOR) ? M_FORMAT_ARROWCURSOR : 0));
+ M_FORMAT_FORCESUBJ | M_FORMAT_MAKEPRINT);
if (*s) {
mutt_format_s (dest, destlen, prefix, s);
break;
static void attach_entry(char *b, ssize_t blen, MUTTMENU * menu, int num)
{
m_strformat(b, blen, COLS - SW, AttachFormat, mutt_attach_fmt,
- ((ATTACHPTR **) menu->data)[num],
- option(OPTARROWCURSOR) ? M_FORMAT_ARROWCURSOR : 0);
+ ((ATTACHPTR **) menu->data)[num], 0);
}
int mutt_tag_attach (MUTTMENU * menu, int n, int m)
static int mutt_query_save_attachment (FILE * fp, BODY * body, HEADER * hdr,
char **directory)
{
- char *prompt;
+ const char *prompt;
char buf[_POSIX_PATH_MAX], tfile[_POSIX_PATH_MAX];
int is_message;
int append = 0;
CLEARLINE (LINES - 1);
return;
}
- tempfd = m_tempfd(tfile, sizeof(tfile), NONULL(MCore.tmpdir), NULL);
+ tempfd = m_tempfd(tfile, sizeof(tfile), NONULL(mod_core.tmpdir), NULL);
}
if (mutt_pipe_attachment(fp, body, command, tempfd)) {
FILE *ifp;
int newfile_fd;
- newfile_fd = m_tempfd(newfile, sizeof(newfile), NONULL(MCore.tmpdir), NULL);
+ newfile_fd = m_tempfd(newfile, sizeof(newfile), NONULL(mod_core.tmpdir), NULL);
if (mutt_decode_save_attachment (fp, top, newfile_fd, M_PRINTING) == 0) {
if ((ifp = fopen (newfile, "r")) != NULL) {
mutt_copy_stream (ifp, state->fpout);
need_secured = 1;
if (hdr->security & APPLICATION_SMIME) {
- if (hdr->env)
- crypt_smime_getkeys (hdr->env);
-
if (mutt_is_application_smime (hdr->content)) {
secured = !crypt_smime_decrypt_mime (msg->fp, &fp,
hdr->content, &cur);
op = OP_NULL;
}
+#undef CHECK_READONLY
+#undef CHECK_ATTACH
/* not reached */
}