aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-02-14 18:01:47 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-02-14 18:01:47 +0000
commit48731164d436f1dfec6e9acfa2a6bb09e98cfb81 (patch)
tree4378b64dd3700eade5234e5c1c5674036a14e006
parentecfd83a0fd58ac1790f031b82db1bc9e56f6f058 (diff)
downloadfetchmail-48731164d436f1dfec6e9acfa2a6bb09e98cfb81.tar.gz
fetchmail-48731164d436f1dfec6e9acfa2a6bb09e98cfb81.tar.bz2
fetchmail-48731164d436f1dfec6e9acfa2a6bb09e98cfb81.zip
Deprecate the old popclient syntax and produce a warning.
svn path=/trunk/; revision=881
-rw-r--r--fetchmail.man31
-rw-r--r--rcfile_y.y6
2 files changed, 25 insertions, 12 deletions
diff --git a/fetchmail.man b/fetchmail.man
index e128dc8a..fae705aa 100644
--- a/fetchmail.man
+++ b/fetchmail.man
@@ -792,9 +792,10 @@ by individual server descriptions. So, you could write:
It's possible to specify more than one user per server (this is only
likely to be useful when running fetchmail in daemon mode as root).
The `user' keyword leads off a user description, and every user
-description except optionally the first one must include it. (If the
-first description lacks the `user' keyword, the name of the
-invoking user is used.) Here's a contrived example:
+description except optionally the first one must include it. If the
+first description lacks the `user' keyword, the name of the invoking
+user is used (in a future version, the option to omit the `user'
+keyword may be removed). Here's a contrived example:
.nf
poll pop.provider.net proto pop3 port 3111
@@ -804,17 +805,18 @@ invoking user is used.) Here's a contrived example:
.fi
This says that the user invoking \fIfetchmail\fR has the same username
-on pop.provider.net, and password `gumshoe' there.
-It also associates the local username `smith' with the pop.provider.net
-username `jsmith' and the local username `jjones' with the pop.provider.net
-username `jones'.
+on pop.provider.net, and password `gumshoe' there. It also associates
+the local username `smith' with the pop.provider.net username `jsmith'
+and the local username `jjones' with the pop.provider.net username
+`jones'.
.PP
This example is contrived because, in practice, you are very unlikely
to be specifying multiple users per server unless running it as root
(thus the `pass gumshoe' would try to fetch root's mail on
-pop-provider.net, which is probably not what you want).
-In any case, we strongly recommend always having an explicit
-\&`user' clause when specifying multiple users per mailserver.
+pop-provider.net, which is probably not what you want). In any case,
+we strongly recommend always having an explicit \&`user' clause when
+specifying multiple users per mailserver. In a future version, the
+option not to explicitly declare the username may be removed.
.PP
Here's what a simple retrieval configuration for a multi-drop mailbox
looks like:
@@ -999,8 +1001,14 @@ use the removed `localfolder' option or `limit' (which now takes a
maximum byte size rather than a line count), this will often work.
(The new run control file syntax also has to be a little stricter
about the order of options than the old, in order to support multiple
-user desriptions per server; thus you may have to rearrange things a
+user descriptions per server; thus you may have to rearrange things a
bit.)
+.PP
+Run control files in the .poprc format will trigger a warning. To
+eliminate this warning, add the `username' keyword before your first user
+entry per server (it is already required before second and subsequent
+user entries per server. In some future version the `username' keyword
+will be required.
.SH FILES
.TP 5
@@ -1073,3 +1081,4 @@ RFC 1730, RFC 1731, RFC 1732, RFC 2060
.TP 5
ETRN:
RFC 1985
+
diff --git a/rcfile_y.y b/rcfile_y.y
index 7face2c3..84c0d000 100644
--- a/rcfile_y.y
+++ b/rcfile_y.y
@@ -133,7 +133,11 @@ serv_option : AKA alias_list
* to keep working.
*/
userspecs : user1opts {record_current(); user_reset();}
- | user1opts explicits {record_current(); user_reset();}
+ | user1opts explicits
+ {
+ record_current(); user_reset();
+ fprintf(stderr, "Warning: user entry with no `user' keyword\n");
+ }
| explicits
;