compose.c copy.c editmsg.c init.c keymap.c lib.c \
flags.c from.c handler.c headers.c help.c hook.c \
main.c muttlib.c mutt_idna.c pager.c pattern.c postpone.c recvattach.c recvcmd.c \
- score.c send.c sendlib.c sort.c state.c thread.c account.c
+ score.c send.c sendlib.c sort.c state.c thread.c account.c remailer.c
madmutt_LDADD = @MUTT_LIB_OBJECTS@ @LIBOBJS@ \
-Llib-lib -llib -Llib-mime -lmime -Llib-crypt -lcrypt -Llib-mx -lmx \
alias.h browser.h remailer.h state.h \
mutt_idna.h mutt_libesmtp.c state.h
-EXTRA_DIST = config.rpath COPYRIGHT GPL OPS OPS.MIX TODO \
+EXTRA_DIST = config.rpath COPYRIGHT GPL OPS TODO \
configure account.h alias.h attach.h recvattach.h handler.h thread.h \
buffy.h charset.h copy.h dotlock.h functions.def gen_defs \
recvattach.h handler.h thread.h globals.h init.h keymap.h \
LDADD = @LIBOBJS@ @LIBINTL@
-OPS=@OPS@
-
charset.gperf: charset.def
sh $< > $@
Makefile: $(BUILT_SOURCES)
-keymap_defs.h: $(OPS)
+keymap_defs.h: OPS
$(srcdir)/gen_defs $^ > keymap_defs.h
-keymap_alldefs.h: $(srcdir)/OPS $(srcdir)/OPS.MIX
- $(srcdir)/gen_defs $^ > keymap_alldefs.h
-
version.h:
echo "#define MUTT_REVISION \"git\"" > version.h
OP_DECRYPT_COPY "make decrypted copy"
OP_FORGET_PASSPHRASE "wipe passphrase(s) from memory"
OP_EXTRACT_KEYS "extract supported public keys"
+OP_MIX_USE "Accept the chain constructed"
+OP_MIX_APPEND "Append a remailer to the chain"
+OP_MIX_INSERT "Insert a remailer into the chain"
+OP_MIX_DELETE "Delete a remailer from the chain"
+OP_MIX_CHAIN_PREV "Select the previous element of the chain"
+OP_MIX_CHAIN_NEXT "Select the next element of the chain"
+OP_COMPOSE_MIX "send the message through a mixmaster remailer chain"
+++ /dev/null
-OP_MIX_USE "Accept the chain constructed"
-OP_MIX_APPEND "Append a remailer to the chain"
-OP_MIX_INSERT "Insert a remailer into the chain"
-OP_MIX_DELETE "Delete a remailer from the chain"
-OP_MIX_CHAIN_PREV "Select the previous element of the chain"
-OP_MIX_CHAIN_NEXT "Select the next element of the chain"
-OP_COMPOSE_MIX "send the message through a mixmaster remailer chain"
#include "sort.h"
#include "charset.h"
#include "buffy.h"
-
-#ifdef MIXMASTER
#include "remailer.h"
-#endif
#ifdef USE_NNTP
#include <nntp/nntp.h>
HDR_SUBJECT,
HDR_REPLYTO,
HDR_FCC,
-
-#ifdef MIXMASTER
HDR_MIX,
-#endif
HDR_CRYPT,
HDR_CRYPTINFO,
"Bcc: ",
"Subject: ",
"Reply-To: ",
- "Fcc: "
+ "Fcc: ",
#ifdef USE_NNTP
-#ifdef MIXMASTER
- , ""
-#endif
- , "", "", "Newsgroups: ", "Followup-To: ", "X-Comment-To: "
+ "",
+ "", "", "Newsgroups: ", "Followup-To: ", "X-Comment-To: "
#endif
};
}
}
-
-#ifdef MIXMASTER
-
static void redraw_mix_line (string_list_t * chain)
{
int c;
c += m_strlen(t) + 2;
}
}
-#endif /* MIXMASTER */
static int check_attachments (ATTACHPTR ** idx, short idxlen)
{
mutt_paddstr (W, fcc);
redraw_crypt_lines (msg);
-
-#ifdef MIXMASTER
redraw_mix_line (msg->chain);
-#endif
SETCOLOR (MT_COLOR_STATUS);
mvaddstr (HDR_ATTACH - 1, SW, _("-- Attachments"));
break;
}
-
-#ifdef MIXMASTER
if (msg->chain && mix_check_message (msg) != 0)
break;
-#endif
if (!fccSet && *fcc) {
if ((i = query_quadoption (OPT_COPY,
mutt_message_hook (NULL, msg, M_SEND2HOOK);
break;
-
-#ifdef MIXMASTER
case OP_COMPOSE_MIX:
-
mix_make_chain (&msg->chain, &menu->redraw);
mutt_message_hook (NULL, msg, M_SEND2HOOK);
break;
-#endif
-
}
/* Draw formated compose status line */
AC_PATH_PROG(SENDMAIL, sendmail, /usr/sbin/sendmail, $PATH:$ac_aux_path_sendmail)
AC_DEFINE_UNQUOTED(SENDMAIL,"$ac_cv_path_SENDMAIL",[ Where to find sendmail on your system. ])
-OPS="\$(srcdir)/OPS"
-
dnl ---------------- gpgme ----------------
AC_ARG_ENABLE(gpgme, AC_HELP_STRING([--enable-gpgme], [Enable GPGME support]),[
fi
])
-dnl ---------------- mixmaster ----------------
-
-AC_ARG_WITH(mixmaster, AC_HELP_STRING([--with-mixmaster[=PATH]], [Include Mixmaster support]), [
- MIXMASTER=${withval:-"mixmaster"}
- OPS="$OPS \$(srcdir)/OPS.MIX"
- MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o"
- AC_DEFINE_UNQUOTED(MIXMASTER,"$MIXMASTER",[Where to find mixmaster on your system.])
-])
-
-AC_SUBST([OPS])
+AC_PATH_PROG(MIXMASTER, mixmaster, mixmaster)
+AC_DEFINE_UNQUOTED(MIXMASTER,"$MIXMASTER",[Where to find mixmaster on your system.])
AC_PATH_PROG(ISPELL, ispell, no)
if test $ISPELL != no; then
./autogen.sh
./configure -C --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man \
--with-sharedir=/usr/share/mutt-ng --with-docdir=/usr/share/doc/mutt-ng \
- --with-mailpath=/var/mail --enable-fcntl --with-mixmaster --with-sasl2 \
+ --with-mailpath=/var/mail --enable-fcntl --with-sasl2 \
--with-idn --with-curses --enable-nntp --with-gss --with-gnutls \
--enable-gpgme --enable-hcache
WHERE char *Tunnel INITVAL (NULL);
WHERE short NetInc;
-#ifdef MIXMASTER
WHERE char *Mixmaster;
WHERE char *MixEntryFormat;
-#endif
WHERE char *OperatingSystem INITVAL (NULL);
/* build complete documentation */
#ifdef _MAKEDOC
-# ifndef MIXMASTER
-# define MIXMASTER "mixmaster"
-# endif
# ifndef USE_SSL
# define USE_SSL
# endif
*/
#endif
-#ifdef MIXMASTER
{"mix_entry_format", DT_STR, R_NONE, UL &MixEntryFormat, "%4n %c %-16s %a"},
/*
- ** .pp
- ** Availability: Mixmaster
- **
** .pp
** This variable describes the format of a remailer line on the mixmaster
** chain selection screen. The following \fTprintf(3)\fP-like sequences are
*/
{"mixmaster", DT_PATH, R_NONE, UL &Mixmaster, MIXMASTER},
/*
- ** .pp
- ** Availability: Mixmaster
- **
** .pp
** This variable contains the path to the Mixmaster binary on your
** system. It is used with various sets of parameters to gather the
** list of known remailers, and to finally send a message through the
** mixmaster chain.
*/
-#endif
{"move", DT_QUAD, R_NONE, OPT_MOVE, "ask-no" },
/*
** .pp
{"key_select_smime", MENU_KEY_SELECT_SMIME},
#endif
-#ifdef MIXMASTER
{"mix", MENU_MIX},
-#endif
-
{"query", MENU_QUERY},
{"generic", MENU_GENERIC},
{NULL, 0}
create_bindings (OpSmime, MENU_KEY_SELECT_SMIME);
#endif
-#ifdef MIXMASTER
create_bindings (OpMix, MENU_MIX);
km_bindkey ("<space>", MENU_MIX, OP_GENERIC_SELECT_ENTRY);
km_bindkey ("h", MENU_MIX, OP_MIX_CHAIN_PREV);
km_bindkey ("l", MENU_MIX, OP_MIX_CHAIN_NEXT);
-#endif
/* bindings for the line editor */
create_bindings (OpEditor, MENU_EDITOR);
return OpSmime;
#endif
-#ifdef MIXMASTER
case MENU_MIX:
return OpMix;
-#endif
-
}
return NULL;
}
MENU_KEY_SELECT_SMIME,
#endif
-#ifdef MIXMASTER
MENU_MIX,
-#endif
-
MENU_MAX
};
short attach_total;
-#ifdef MIXMASTER
string_list_t *chain;
-#endif
int refno; /* message number on server */
void *data; /* driver-specific data */
p_delete(&h->maildir_flags);
p_delete(&h->tree);
p_delete(&h->path);
-#ifdef MIXMASTER
string_list_wipe(&h->chain);
-#endif
p_delete(&h->data);
}
crc = crc32(crc, (unsigned char const *) "USE_POP", m_strlen("USE_POP"));
-#ifdef MIXMASTER
crc = crc32(crc, (unsigned char const *) "MIXMASTER",
m_strlen("MIXMASTER"));
-#endif
crc = crc32(crc, (unsigned char const *) "USE_IMAP", m_strlen("USE_IMAP"));
printf (" +PKGDATADIR=\"%s\"\n", PKGDATADIR);
printf (" +PKGDOCDIR=\"%s\"\n", PKGDOCDIR);
printf (" +SYSCONFDIR=\"%s\"\n", SYSCONFDIR);
-#ifdef MIXMASTER
printf (" +MIXMASTER=\"%s\"\n\n", MIXMASTER);
-#else
- puts (" -MIXMASTER\n");
-#endif
puts (_("MadMutt is based on Madmutt wich was based on Mutt before\n"));
string_list_wipe(&tmp);
tmp = next;
}
-
-#ifdef MIXMASTER
else if (m_strncmp("X-Mutt-Mix:", tmp->data, 11) == 0) {
char *t;
string_list_wipe(&tmp);
tmp = next;
}
-#endif
-
else {
last = tmp;
tmp = tmp->next;
#define SW (option(OPTMBOXPANE)?SidebarWidth:0)
-#ifdef MIXMASTER
-
#define MIX_CAP_COMPRESS (1 << 0)
#define MIX_CAP_MIDDLEMAN (1 << 1)
#define MIX_CAP_NEWSPOST (1 << 2)
return i;
}
-
-#endif
#ifndef _REMAILER_H
#define _REMAILER_H
-#ifdef MIXMASTER
-
int mix_send_message(string_list_t *, const char *);
int mix_check_message(HEADER * msg);
void mix_make_chain(string_list_t **, int *);
-#endif /* MIXMASTER */
-
#endif /* _REMAILER_H */
#include <nntp/nntp.h>
#endif
-#ifdef MIXMASTER
#include "remailer.h"
-#endif
-
static void append_signature (FILE * f)
{
if (!tempfp)
return -1;
-#ifdef MIXMASTER
mutt_write_rfc822_header (tempfp, msg->env, msg->content, 0,
msg->chain ? 1 : 0);
-#endif
-#ifndef MIXMASTER
- mutt_write_rfc822_header (tempfp, msg->env, msg->content, 0, 0);
-#endif
-
fputc ('\n', tempfp); /* tie off the header. */
if ((mutt_write_mime_body (msg->content, tempfp) == -1)) {
return (-1);
}
-#ifdef MIXMASTER
if (msg->chain)
return mix_send_message (msg->chain, tempfile);
-#endif
i = mutt_invoke_mta (msg->env->from, msg->env->to, msg->env->cc,
msg->env->bcc, tempfile,
fputc ('\n', msg->fp);
}
-#ifdef MIXMASTER
/* (postponement) if the mail is to be sent through a mixmaster
* chain, save that information
*/
-
if (post && hdr->chain && hdr->chain) {
string_list_t *p;
fputc ('\n', msg->fp);
}
-#endif
if (tempfp) {
char sasha[LONG_STRING];