diff options
| author | Eric S. Raymond <esr@thyrsus.com> | 1996-10-26 02:37:50 +0000 | 
|---|---|---|
| committer | Eric S. Raymond <esr@thyrsus.com> | 1996-10-26 02:37:50 +0000 | 
| commit | 74631396d18f4c5b025e9cbbb70d0103c783037e (patch) | |
| tree | e0fe83315284fa905cdecd51108a170815889cec /fetchmail.c | |
| parent | ad0c91eabd0349b5f1468b52a9b37a6bb028841b (diff) | |
| download | fetchmail-74631396d18f4c5b025e9cbbb70d0103c783037e.tar.gz fetchmail-74631396d18f4c5b025e9cbbb70d0103c783037e.tar.bz2 fetchmail-74631396d18f4c5b025e9cbbb70d0103c783037e.zip | |
Added filtering by length.  Ugh.
svn path=/trunk/; revision=390
Diffstat (limited to 'fetchmail.c')
| -rw-r--r-- | fetchmail.c | 15 | 
1 files changed, 15 insertions, 0 deletions
| diff --git a/fetchmail.c b/fetchmail.c index 369bc63f..e2a82e5e 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -188,9 +188,20 @@ char **argv;  	    /* merge in defaults */  	    optmerge(hostp, &def_opts); +	    /* keep lusers from shooting themselves in the foot :-) */ +	    if (poll_interval && hostp->limit) +	    { +		fprintf(stderr,"fetchmail: you'd never see large messages!\n"); +		exit(PS_SYNTAX); +	    } +  	    /* check that delivery is going to a real local user */  	    if ((pw = getpwnam(user)) == (struct passwd *)NULL) +	    { +		fprintf(stderr, +			"fetchmail: can't default delivery to %s\n", user);  		exit(PS_SYNTAX);	/* has to be from bad rc file */ +	    }  	    else  		hostp->uid = pw->pw_uid; @@ -607,6 +618,10 @@ struct hostrec *queryctl;	/* query parameter block */      printf("  Rewrite of server-local addresses is %sabled (--norewrite %s).\n",  	   queryctl->norewrite ? "dis" : "en",  	   queryctl->norewrite ? "on" : "off"); +    if (queryctl->limit) +	printf("  Message size limit is %d bytes\n", queryctl->limit); +    else if (outlevel == O_VERBOSE) +	printf("  No message size limit\n");      if (queryctl->mda[0])      {  	char **cp; | 
