# HG changeset patch # User markus schnalke # Date 1291387258 10800 # Node ID 7b12d081b9395da32d7e6b624d9ac18045c4126b # Parent 8be687c06c20cea215f614f4e7659c5bfda1ef52 removed ACC_DEL_RCPTS because it's always used with ACC_RCPT_FROM_HEAD They are used for -t and always together. diff -r 8be687c06c20 -r 7b12d081b939 src/accept.c --- a/src/accept.c Fri Dec 03 11:37:01 2010 -0300 +++ b/src/accept.c Fri Dec 03 11:40:58 2010 -0300 @@ -59,9 +59,7 @@ The -t option: The ACC_RCPT_FROM_HEAD flag adds the recipients found in To/Cc/Bcc - headers to the recipients list. - The ACC_DEL_RCPTS flag makes only sense if the ACC_RCPT_FROM_HEAD - flag is given too. With ACC_DEL_RCPTS the recipients given on the + headers to the recipients list. The recipients given on the command line are removed from the ones given in headers. */ @@ -212,7 +210,7 @@ } /* -t option (see comment above) */ - if (flags & ACC_DEL_RCPTS) { + if (flags & ACC_RCPT_FROM_HEAD) { non_rcpt_list = msg->rcpt_list; msg->rcpt_list = NULL; } @@ -326,8 +324,9 @@ } } - if (flags & ACC_DEL_RCPTS) { - /* remove the recipients given on the command line from the ones given in headers + if (flags & ACC_RCPT_FROM_HEAD) { + /* remove the recipients given on the command line + from the ones given in headers -t option (see comment above) */ GList *rcpt_node; foreach(non_rcpt_list, rcpt_node) { diff -r 8be687c06c20 -r 7b12d081b939 src/masqmail.c --- a/src/masqmail.c Fri Dec 03 11:37:01 2010 -0300 +++ b/src/masqmail.c Fri Dec 03 11:40:58 2010 -0300 @@ -702,7 +702,7 @@ case MODE_ACCEPT: { - guint accept_flags = (opt_t ? ACC_DEL_RCPTS | ACC_RCPT_FROM_HEAD : 0) + guint accept_flags = (opt_t ? ACC_RCPT_FROM_HEAD : 0) | (opt_i ? ACC_DOT_IGNORE : ACC_NODOT_RELAX); mode_accept(return_path, full_sender_name, accept_flags, &(argv[arg]), argc - arg); exit(0); diff -r 8be687c06c20 -r 7b12d081b939 src/masqmail.h --- a/src/masqmail.h Fri Dec 03 11:37:01 2010 -0300 +++ b/src/masqmail.h Fri Dec 03 11:40:58 2010 -0300 @@ -282,7 +282,6 @@ } msgout_perhost; /* flags for accept() */ -#define ACC_DEL_RCPTS 0x02 /* -t option, delete rcpts that were given as cmd args */ #define ACC_RCPT_FROM_HEAD 0x08 /* -t option, get rcpts from headers */ #define ACC_DOT_IGNORE 0x10 /* a dot on a line itself does not end the message (-oi option) */ #define ACC_MAIL_FROM_HEAD 0x40 /* get return path from header */