masqmail

diff src/accept.c @ 268:7b12d081b939

removed ACC_DEL_RCPTS because it's always used with ACC_RCPT_FROM_HEAD They are used for -t and always together.
author markus schnalke <meillo@marmaro.de>
date Fri, 03 Dec 2010 11:40:58 -0300
parents 409552c5647f
children fd1d77e5a5da
line diff
     1.1 --- a/src/accept.c	Fri Dec 03 11:37:01 2010 -0300
     1.2 +++ b/src/accept.c	Fri Dec 03 11:40:58 2010 -0300
     1.3 @@ -59,9 +59,7 @@
     1.4  
     1.5     The -t option:
     1.6     The ACC_RCPT_FROM_HEAD flag adds the recipients found in To/Cc/Bcc
     1.7 -   headers to the recipients list.
     1.8 -   The ACC_DEL_RCPTS flag makes only sense if the ACC_RCPT_FROM_HEAD
     1.9 -   flag is given too. With ACC_DEL_RCPTS the recipients given on the
    1.10 +   headers to the recipients list. The recipients given on the
    1.11     command line are removed from the ones given in headers.
    1.12  */
    1.13  
    1.14 @@ -212,7 +210,7 @@
    1.15  	}
    1.16  
    1.17  	/* -t option (see comment above) */
    1.18 -	if (flags & ACC_DEL_RCPTS) {
    1.19 +	if (flags & ACC_RCPT_FROM_HEAD) {
    1.20  		non_rcpt_list = msg->rcpt_list;
    1.21  		msg->rcpt_list = NULL;
    1.22  	}
    1.23 @@ -326,8 +324,9 @@
    1.24  			}
    1.25  		}
    1.26  
    1.27 -		if (flags & ACC_DEL_RCPTS) {
    1.28 -			/* remove the recipients given on the command line from the ones given in headers
    1.29 +		if (flags & ACC_RCPT_FROM_HEAD) {
    1.30 +			/* remove the recipients given on the command line
    1.31 +			   from the ones given in headers
    1.32  			   -t option (see comment above) */
    1.33  			GList *rcpt_node;
    1.34  			foreach(non_rcpt_list, rcpt_node) {