diff options
| author | Matthias Andree <matthias.andree@gmx.de> | 2010-02-24 23:28:44 +0100 | 
|---|---|---|
| committer | Matthias Andree <matthias.andree@gmx.de> | 2010-02-24 23:28:44 +0100 | 
| commit | ddcc491837e5b2c1e741eac54dc4058e2f77e398 (patch) | |
| tree | fb359fc22c3e53370c9a5b5cbce7b4da882e8cb2 | |
| parent | ed2a64b0d27586f4e3ab8e42f535a97a220843d5 (diff) | |
| download | fetchmail-ddcc491837e5b2c1e741eac54dc4058e2f77e398.tar.gz fetchmail-ddcc491837e5b2c1e741eac54dc4058e2f77e398.tar.bz2 fetchmail-ddcc491837e5b2c1e741eac54dc4058e2f77e398.zip | |
Rename bad-header pass to bad-header accept, ...
to resolve an ambiguity found by Frédéric Marchal.
| -rw-r--r-- | NEWS | 5 | ||||
| -rw-r--r-- | conf.c | 2 | ||||
| -rw-r--r-- | fetchmail.c | 2 | ||||
| -rw-r--r-- | fetchmail.h | 2 | ||||
| -rw-r--r-- | fetchmail.man | 6 | ||||
| -rwxr-xr-x | fetchmailconf.py | 2 | ||||
| -rw-r--r-- | options.c | 6 | ||||
| -rw-r--r-- | po/de.po | 7 | ||||
| -rw-r--r-- | rcfile_l.l | 2 | ||||
| -rw-r--r-- | rcfile_y.y | 4 | ||||
| -rw-r--r-- | transact.c | 2 | 
11 files changed, 20 insertions, 20 deletions
| @@ -51,9 +51,8 @@ fetchmail 6.3.15 (not yet released):  # FEATURE  * Fetchmail now supports a bad-header command line or rcfile option that takes -  exactly one argument, pass or reject (default).  If set to pass, fetchmail -  will pass messages with bad headers on.  This has been rejected for a long -  time, and the right behaviour was disputed for too long. +  exactly one argument, accept or reject (default).  This specifies how messages +  with bad headers retrieved from the current server are to be treated.  # BUG FIXES  * In the rcfile, recognize "local" as abbreviation for "localdomains", as @@ -317,7 +317,7 @@ void dump_config(struct runctl *runp, struct query *querylist)  		/* this is a hack - we map this to a boolean option for  		 * fetchmailconf purposes */  		case BHREJECT: puts("'badheader': FALSE,"); break; -		case BHPASS:   puts("'badheader': TRUE,"); break; +		case BHACCEPT: puts("'badheader': TRUE,"); break;  	    }  	    indent(0); diff --git a/fetchmail.c b/fetchmail.c index b865d092..43c1e98c 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -1956,7 +1956,7 @@ static void dump_params (struct runctl *runp,  		if (outlevel >= O_VERBOSE)  		    printf(GT_("  Messages with bad headers will be rejected.\n"));  		break; -	    case BHPASS: +	    case BHACCEPT:  		printf(GT_("  Messages with bad headers will be passed on.\n"));  		break;  	} diff --git a/fetchmail.h b/fetchmail.h index 88f7dd33..b43999f9 100644 --- a/fetchmail.h +++ b/fetchmail.h @@ -245,7 +245,7 @@ struct method		/* describe methods for protocol state machine */      flag retry;			/* can getrange poll for new messages? */  }; -enum badheader { BHREJECT = 0, BHPASS }; +enum badheader { BHREJECT = 0, BHACCEPT };  struct hostdata		/* shared among all user connections to given server */  { diff --git a/fetchmail.man b/fetchmail.man index 30d46971..636e8b4b 100644 --- a/fetchmail.man +++ b/fetchmail.man @@ -700,12 +700,12 @@ reconstruction of MAIL FROM and RCPT TO lines is not guaranteed  correct; the caveats discussed under THE USE AND ABUSE OF MULTIDROP  MAILBOXES below apply.  .TP -.B \-\-bad\-header {reject|pass} +.B \-\-bad\-header {reject|accept}  (Keyword: bad\-header; since v6.3.15)  .br  Specify how fetchmail is supposed to treat messages with bad headers,  i. e. headers with bad syntax. Traditionally, fetchmail has rejected such -messages, but some distributors modified fetchmail to pass them. You can now +messages, but some distributors modified fetchmail to accept them. You can now  configure fetchmail's behaviour per server.  .SS Resource Limit Control Options @@ -1759,7 +1759,7 @@ esmtppassword	\&	\&	T{  Set password for RFC2554 authentication to the ESMTP server.  T}  bad-header	\&	\&	T{ -How to treat messages with a bad header. Can be reject (default) or pass. +How to treat messages with a bad header. Can be reject (default) or accept.  T}  .TE diff --git a/fetchmailconf.py b/fetchmailconf.py index 4aae48f8..9bfdda0d 100755 --- a/fetchmailconf.py +++ b/fetchmailconf.py @@ -200,7 +200,7 @@ class Server:  	    if folded:  		res = res + "\n"  	if self.badheader: -		res = res + "bad-header pass " +		res = res + "bad-header accept "  	if res[-1] == " ": res = res[0:-1] @@ -313,8 +313,8 @@ int parsecmdline (int argc /** argument count */,  	    run.softbounce = TRUE;  	    break;  	case LA_BADHEADER: -	    if (strcasecmp(optarg,"pass") == 0) { -		ctl->server.badheader = BHPASS; +	    if (strcasecmp(optarg,"accept") == 0) { +		ctl->server.badheader = BHACCEPT;  	    } else if (strcasecmp(optarg,"reject") == 0) {  		ctl->server.badheader = BHREJECT;  	    } else { @@ -648,7 +648,7 @@ int parsecmdline (int argc /** argument count */,  #endif  	P(GT_("      --plugin      specify external command to open connection\n"));  	P(GT_("      --plugout     specify external command to open smtp connection\n")); -	P(GT_("      --bad-header {reject|pass}\n" +	P(GT_("      --bad-header {reject|accept}\n"  	      "                    specify policy for handling messages with bad headers\n"));  	P(GT_("  -p, --protocol    specify retrieval protocol (see man page)\n")); @@ -8,7 +8,7 @@ msgid ""  msgstr ""  "Project-Id-Version: fetchmail 6.3.15-beta1\n"  "Report-Msgid-Bugs-To: fetchmail-devel@lists.berlios.de\n" -"POT-Creation-Date: 2010-02-24 01:55+0100\n" +"POT-Creation-Date: 2010-02-24 23:25+0100\n"  "PO-Revision-Date: 2010-02-24 01:58+0100\n"  "Last-Translator: Matthias Andree <matthias.andree@gmx.de>\n"  "Language-Team: Deutsch <de@li.org>\n" @@ -2230,11 +2230,12 @@ msgid "      --plugout     specify external command to open smtp connection\n"  msgstr "      --plugout     externes Kommando zum Öffnen der SMTP-Verbindung\n"  #: options.c:651 +#, fuzzy  msgid "" -"      --bad-header {reject|pass}\n" +"      --bad-header {reject|accept}\n"  "                    specify policy for handling messages with bad headers\n"  msgstr "" -"      --bad-header {reject|pass}\n" +"      --bad-header {reject|accept}\n"  "                   Umgang mit Nachrichten mit defekten Headern\n"  #: options.c:654 @@ -114,7 +114,7 @@ principal	{ return PRINCIPAL; }  esmtpname	{ return ESMTPNAME; }  esmtppassword	{ return ESMTPPASSWORD; }  bad-header	{ return BADHEADER; } -pass		{ return PASS; } +accept		{ return ACCEPT; }  reject		{ return REJECT_; }  user(name)?	{SETSTATE(NAME); return USERNAME; } @@ -70,7 +70,7 @@ extern char * yytext;  %token BATCHLIMIT FETCHLIMIT FETCHSIZELIMIT FASTUIDL EXPUNGE PROPERTIES  %token SET LOGFILE DAEMON SYSLOG IDFILE PIDFILE INVISIBLE POSTMASTER BOUNCEMAIL  %token SPAMBOUNCE SOFTBOUNCE SHOWDOTS -%token BADHEADER PASS REJECT_ +%token BADHEADER ACCEPT REJECT_  %token <proto> PROTO AUTHTYPE  %token <sval>  STRING  %token <number> NUMBER @@ -232,7 +232,7 @@ serv_option	: AKA alias_list  		| NO ENVELOPE		{current.server.envelope = STRING_DISABLED;}  		| TRACEPOLLS		{current.server.tracepolls = FLAG_TRUE;}  		| NO TRACEPOLLS		{current.server.tracepolls = FLAG_FALSE;} -		| BADHEADER PASS	{current.server.badheader = BHPASS;} +		| BADHEADER ACCEPT	{current.server.badheader = BHACCEPT;}  		| BADHEADER REJECT_	{current.server.badheader = BHREJECT;}  		; @@ -584,7 +584,7 @@ eoh:  	     * MacGregor)  	     */  	    if (!refuse_mail -		&& !ctl->server.badheader == BHPASS +		&& !ctl->server.badheader == BHACCEPT  		&& !isspace((unsigned char)line[0])  		&& !strchr(line, ':'))  	    { | 
