aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-10-16 22:49:11 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-10-16 22:49:11 +0000
commitd687ff1687af4e866203f704543620f8c99c1965 (patch)
tree5be1b77df8f1201010e3ae10b6c419ad2dd2f726 /driver.c
parentfca33eda6ac259755e39ec2587c5bd9772bb4a04 (diff)
downloadfetchmail-d687ff1687af4e866203f704543620f8c99c1965.tar.gz
fetchmail-d687ff1687af4e866203f704543620f8c99c1965.tar.bz2
fetchmail-d687ff1687af4e866203f704543620f8c99c1965.zip
Change from Marc Jauvin.
svn path=/trunk/; revision=2099
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/driver.c b/driver.c
index f335cf8e..f7ffc197 100644
--- a/driver.c
+++ b/driver.c
@@ -1221,8 +1221,7 @@ static void clean_skipped_list(struct idlist **skipped_list)
*skipped_list = head;
}
-static void send_warning(struct query *ctl,
- struct idlist **skipped_list, const char *user)
+static void send_warning(struct query *ctl)
/* send warning mail with skipped msg; reset msg count when user notified */
{
int size, nbr;
@@ -1232,7 +1231,7 @@ static void send_warning(struct query *ctl,
int max_warning_poll_count, good, bad;
char buf[100];
- head = *skipped_list;
+ head = ctl->skipped;
if (!head)
return;
@@ -1295,19 +1294,12 @@ const struct method *proto; /* protocol method table */
{
int ok, js, sock = -1;
char *msg;
- char localuser[32];
void (*sigsave)();
struct idlist *current=NULL, *prev=NULL, *next=NULL, *head=NULL, *tmp=NULL;
protocol = (struct method *)proto;
ctl->server.base_protocol = protocol;
- strcpy(localuser, "root");
- if (ctl->localnames)
- {
- strcpy(localuser, ctl->localnames->id);
- }
-
#ifndef KERBEROS_V4
if (ctl->server.preauthenticate == A_KERBEROS_V4)
{
@@ -1920,7 +1912,7 @@ const struct method *proto; /* protocol method table */
if (!check_only && ctl->skipped)
{
clean_skipped_list(&ctl->skipped);
- send_warning(ctl, &ctl->skipped, localuser);
+ send_warning(ctl);
}
}
} while