mutt_wait_filter (filterpid);
m_fclose(&fpfilterout);
}
-#if 0
- /* this is maybe just plain wrong but it makes the pager display
- * what we have; i.e. for the crypto stuff we only get
- * 'Could not copy message' for invalid passphrases, no PGP output
- * not nothing; so just display what we have...
- * - pdmef
- */
- mutt_unlink (tempfile);
- return 0;
-#endif
}
if (fpfilterout != NULL && mutt_wait_filter (filterpid) != 0)
idx[menu->current]->content->unlink =
!idx[menu->current]->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;
/* Now output the headers in order */
for (x = 0; x < hdr_count; x++) {
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.
*/
return -1;
}
-#if 1
if (r == 1 && c != '\n')
fputc ('\r', fp);
}
else
r = 0;
-#endif
+
fputc (c, fp);
if (bar && !(pos % 1024))
mutt_progress_bar (bar, pos);
mutt_init_history ();
if (!Muttrc) {
-#if 0
- snprintf (buffer, sizeof(buffer), "%s/.madmuttrc-%s", NONULL (Homedir),
- MUTT_VERSION);
- if (access (buffer, F_OK) == -1)
-#endif
snprintf (buffer, sizeof(buffer), "%s/.madmuttrc", NONULL (Homedir));
if (access (buffer, F_OK) == -1)
-#if 0
- snprintf (buffer, sizeof(buffer), "%s/.madmutt/madmuttrc-%s",
- NONULL (Homedir), MUTT_VERSION);
- if (access (buffer, F_OK) == -1)
-#endif
snprintf (buffer, sizeof(buffer), "%s/.madmutt/madmuttrc",
NONULL (Homedir));
crypt_pgp_void_passphrase (); /* probably need a different passphrase */
}
-#if 0
- else {
- msg->security &= ~SIGN;
- }
-#endif
*redraw = REDRAW_FULL;
break;
}
}
-
-
-/* unused */
-
-#if 0
-
-static const char *hashalgbytype (unsigned char type)
-{
- switch (type) {
- case 1:
- return "MD5";
- case 2:
- return "SHA1";
- case 3:
- return "RIPE-MD/160";
- case 4:
- return "HAVAL";
- default:
- return "unknown";
- }
-}
-
-#endif
-
short pgp_canencrypt (unsigned char type)
{
switch (type) {
/* probably need a different passphrase */
crypt_smime_void_passphrase ();
}
-#if 0
- else
- msg->security &= ~SIGN;
-#endif
*redraw = REDRAW_FULL;
break;
return mhs->flags[i];
}
-#if 0
-
-/* unused */
-
-static short mhs_unset (struct mh_sequences *mhs, int i, short f)
-{
- mhs_alloc (mhs, i);
- mhs->flags[i] &= ~f;
- return mhs->flags[i];
-}
-
-#endif
-
static void mh_read_token (char *t, int *first, int *last)
{
char *p;
if (data) {
SSL_shutdown (data->ssl);
-#if 0
- X509_free (data->cert);
-#endif
SSL_free (data->ssl);
SSL_CTX_free (data->ctx);
p_delete(&conn->sockdata);
if (menu->menu == MENU_PAGER) {
menu->menu = MENU_MAIN;
menu->redraw = REDRAW_FULL;
-#if 0
- set_option (OPTWEED); /* turn header weeding back on. */
-#endif
}
if (done)
return add_s ("<");
case '>':
return add_s (">");
-#if 0
- case '$':
- return add_s ("$");
- case '_':
- return add_s ("_");
- case '%':
- return add_s ("%");
-#endif
case '&':
return add_s ("&");
-#if 0
- case '\\':
- return add_s ("\");
- case '"':
- return add_s (""");
- case '[':
- return add_s ("[");
- case ']':
- return add_s ("]");
- case '~':
- return add_s ("˜");
-#endif
default:
return add_c (c);
}
OPTPGPCHECKEXIT,
OPTPGPLONGIDS,
OPTPGPAUTODEC,
-#if 0
- OPTPGPENCRYPTSELF,
-#endif
OPTPGPRETAINABLESIG,
OPTPGPSTRICTENC,
OPTFORWDECRYPT,
len--;
}
-#if 0
- if (data->entries[x].first == data->entries[x].last)
- snprintf (line, len, "%d%n", data->entries[x].first, &i);
- else
- snprintf (line, len, "%d-%d%n",
- data->entries[x].first, data->entries[x].last, &i);
- len -= i;
- line += i;
-#else
i = puti (line, data->entries[x].first);
line += i;
len -= i;
line += i;
len -= i;
}
-#endif
}
*line++ = '\n';
*line = '\0';
}
else if (m_strncmp("\033[0m", rawbuf, 4) == 0) /* a little hack... */
lineInfo[n].type = MT_COLOR_NORMAL;
-#if 0
- else if (m_strncmp("[-- ", buf, 4) == 0)
- lineInfo[n].type = MT_COLOR_ATTACHMENT;
-#else
else if (check_attachment_marker ((char *) rawbuf) == 0)
lineInfo[n].type = MT_COLOR_ATTACHMENT;
-#endif
else if (m_strcmp("-- \n", buf) == 0
|| m_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->str = m_strdup(buf.data);
p_delete(&buf.data);
{
ATTACHPTR **idx = *idxp;
-#if 0
- int old_optweed = option (OPTWEED);
-
- set_option (OPTWEED);
-#endif
-
do {
switch (op) {
case OP_DISPLAY_HEADERS:
}
while (op != OP_NULL);
-#if 0
- if (option (OPTWEED) != old_optweed)
- toggle_option (OPTWEED);
-#endif
return op;
}