diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-10-06 05:18:08 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-10-06 05:18:08 +0000 |
commit | f6f4275a05a9206cf5a1d48f6ffee13db310f4d8 (patch) | |
tree | e6ae394c9110e94a9855e8dc2f81ef98deba1734 /fetchmail.c | |
parent | 72925acd2e14bc2d0f67df235d405c24b9c11a51 (diff) | |
download | fetchmail-f6f4275a05a9206cf5a1d48f6ffee13db310f4d8.tar.gz fetchmail-f6f4275a05a9206cf5a1d48f6ffee13db310f4d8.tar.bz2 fetchmail-f6f4275a05a9206cf5a1d48f6ffee13db310f4d8.zip |
Popclient compatibility hack.
svn path=/trunk/; revision=236
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/fetchmail.c b/fetchmail.c index 19b08b01..cb9a1e89 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -113,11 +113,20 @@ char **argv; strcpy(def_opts.remotename, user); strcpy(def_opts.smtphost, "localhost"); - rcfile = - (char *) xmalloc(strlen(home)+strlen(RCFILE_NAME)+2); + /* + * Backward-compatibility hack. If we're called by the name of the + * ancestral popclient, look for .poprc. This will actually work + * for popclient files that don't use the removed keywords. + */ + if (strcmp("popclient", argv[0]) == 0) + tmpdir = ".poprc"; + else + tmpdir = ".fetchmailrc"; + + rcfile = (char *) xmalloc(strlen(home)+strlen(tmpdir)+2); strcpy(rcfile, home); strcat(rcfile, "/"); - strcat(rcfile, RCFILE_NAME); + strcat(rcfile, tmpdir); outlevel = O_NORMAL; |