case OP_COMPOSE_TOGGLE_UNLINK:
CHECK_COUNT;
CURATTACH->content->unlink = !CURATTACH->content->unlink;
-
-#if 0
- /* OPTRESOLVE is otherwise ignored on this menu.
- * Where's the bug?
- */
-
- if (option (OPTRESOLVE) && menu->current + 1 < menu->max)
- menu->current++;
-# endif
menu->redraw = REDRAW_INDEX;
/* No send2hook since this doesn't change the message. */
break;
{
if (headers[x])
{
-#if 0
- if (flags & CH_DECODE)
- rfc2047_decode (&headers[x]);
-#endif
-
/* We couldn't do the prefixing when reading because RFC 2047
* decoding may have concatenated lines.
*/
if (key->disabled)
flags |= KEYFLAG_DISABLED;
-#if 0 /* DISABLED code */
- if (!flags)
- {
- /* Bug in gpg. Capabilities are not listed for secret
- keys. Try to deduce them from the algorithm. */
-
- switch (key->subkeys[0].pubkey_algo)
- {
- case GPGME_PK_RSA:
- flags |= KEYFLAG_CANENCRYPT;
- flags |= KEYFLAG_CANSIGN;
- break;
- case GPGME_PK_ELG_E:
- flags |= KEYFLAG_CANENCRYPT;
- break;
- case GPGME_PK_DSA:
- flags |= KEYFLAG_CANSIGN;
- break;
- }
- }
-#endif /* DISABLED code */
-
for (idx = 0, uid = key->uids; uid; idx++, uid = uid->next)
{
k = safe_calloc (1, sizeof *k);
int r;
int key_selected;
-#if 0
- *r_application = APPLICATION_PGP|APPLICATION_SMIME;
-#endif
-
for (p = adrlist; p ; p = p->next)
{
key_selected = 0;
}
else if (! oppenc_mode)
{
-#if 0
- k_info = crypt_getkeybystr (crypt_hook_val, KEYFLAG_CANENCRYPT,
- *r_application, &forced_valid);
-#else
k_info = crypt_getkeybystr (crypt_hook_val, KEYFLAG_CANENCRYPT,
app, &forced_valid);
-#endif
}
}
else if (r == MUTT_NO)
k_info = crypt_ask_for_key (buf, q->mailbox,
KEYFLAG_CANENCRYPT,
-#if 0
- *r_application,
-#else
app,
-#endif
&forced_valid);
}
keyID = crypt_fpr_or_lkeyid (k_info);
-#if 0
- if (k_info->flags & KEYFLAG_ISX509)
- *r_application &= ~APPLICATION_PGP;
- if (!(k_info->flags & KEYFLAG_ISX509))
- *r_application &= ~APPLICATION_SMIME;
-#endif
-
bypass_selection:
keylist_size += mutt_strlen (keyID) + 4 + 1;
safe_realloc (&keylist, keylist_size);
{
len++;
if (!ascii_strcasecmp ((t+len), "p7m"))
-#if 0
- return SMIMEENCRYPT;
-#else
/* Not sure if this is the correct thing to do, but
it's required for compatibility with Outlook */
return (SMIMESIGN|SMIMEOPAQUE);
-#endif
else if (!ascii_strcasecmp ((t+len), "p7s"))
return (SMIMESIGN|SMIMEOPAQUE);
}
mutt_read_histfile ();
-#if 0
- set_option (OPTWEED); /* turn weeding on by default */
-#endif
-
FREE (&err.data);
}
OPTPGPCHECKGPGDECRYPTSTATUSFD,
OPTPGPLONGIDS,
OPTPGPAUTODEC,
-#if 0
- OPTPGPENCRYPTSELF,
-#endif
OPTPGPRETAINABLESIG,
OPTPGPSELFENCRYPT,
OPTPGPSTRICTENC,
}
else if (mutt_strncmp ("\033[0m", raw, 4) == 0) /* a little hack... */
lineInfo[n].type = MT_COLOR_NORMAL;
-#if 0
- else if (mutt_strncmp ("[-- ", buf, 4) == 0)
- lineInfo[n].type = MT_COLOR_ATTACHMENT;
-#else
else if (check_attachment_marker ((char *) raw) == 0)
lineInfo[n].type = MT_COLOR_ATTACHMENT;
-#endif
else if (mutt_strcmp ("-- \n", buf) == 0 || mutt_strcmp ("-- \r\n", buf) == 0)
{
i = n + 1;
return (-1);
}
-#if 0
- /* If there are no RE metacharacters, use simple search anyway */
- if (!pat->stringmatch && !strpbrk (buf.data, "|[{.*+?^$"))
- pat->stringmatch = 1;
-#endif
-
if (pat->stringmatch)
{
pat->p.str = safe_strdup (buf.data);
b->filename = safe_strdup (pgpoutfile);
-#if 0
- /* The following is intended to give a clue to some completely brain-dead
- * "mail environments" which are typically used by large corporations.
- */
-
- b->d_filename = safe_strdup ("msg.pgp");
- b->use_disp = 1;
-
-#endif
-
b->disposition = DISPNONE;
b->unlink = 1;
}
while (op != OP_NULL);
-#if 0
- if (option (OPTWEED) != old_optweed)
- toggle_option (OPTWEED);
-#endif
return op;
}
else if (b->type == TYPEAPPLICATION && ascii_strcasecmp (b->subtype, "pgp-keys") == 0)
b->encoding = ENC7BIT;
else
-#if 0
- if (info->lobin || info->hibin || info->binary || info->linemax > 990
- || info->cr || (/* option (OPTENCODEFROM) && */ info->from))
-#endif
{
/* Determine which encoding is smaller */
if (1.33 * (float)(info->lobin+info->hibin+info->ascii) <
else
b->encoding = ENCQUOTEDPRINTABLE;
}
-#if 0
- else
- b->encoding = ENC7BIT;
-#endif
}
void mutt_stamp_attachment(BODY *a)