aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-01-05 04:40:25 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-01-05 04:40:25 +0000
commitb476ac337200fe5ed62494feb1280652eae57025 (patch)
tree7f2acaae88e7ce2ef38c04df89afa16a40ffdb8f /pop3.c
parentf06b1846a2580c3b19a89f5f5e76b7d509afb3c9 (diff)
downloadfetchmail-b476ac337200fe5ed62494feb1280652eae57025.tar.gz
fetchmail-b476ac337200fe5ed62494feb1280652eae57025.tar.bz2
fetchmail-b476ac337200fe5ed62494feb1280652eae57025.zip
Progress messages now go to stdout.
svn path=/trunk/; revision=2328
Diffstat (limited to 'pop3.c')
-rw-r--r--pop3.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/pop3.c b/pop3.c
index 9b0de48d..4eb1aa07 100644
--- a/pop3.c
+++ b/pop3.c
@@ -92,7 +92,7 @@ int pop3_ok (int sock, char *argbuf)
else
ok = PS_AUTHFAIL;
if (*bufp)
- error(0,0,bufp);
+ report(stderr, 0,0,bufp);
}
else
ok = PS_PROTOCOL;
@@ -205,7 +205,7 @@ int pop3_getauth(int sock, struct query *ctl, char *greeting)
for (start = greeting; *start != 0 && *start != '<'; start++)
continue;
if (*start == 0) {
- error(0, -1, _("Required APOP timestamp not found in greeting"));
+ report(stderr, -1, _("Required APOP timestamp not found in greeting"));
return(PS_AUTHFAIL);
}
@@ -213,7 +213,7 @@ int pop3_getauth(int sock, struct query *ctl, char *greeting)
for (end = start; *end != 0 && *end != '>'; end++)
continue;
if (*end == 0 || end == start + 1) {
- error(0, -1, _("Timestamp syntax error in greeting"));
+ report(stderr, -1, _("Timestamp syntax error in greeting"));
return(PS_AUTHFAIL);
}
else
@@ -235,7 +235,7 @@ int pop3_getauth(int sock, struct query *ctl, char *greeting)
break;
default:
- error(0, 0, _("Undefined protocol request in POP3_auth"));
+ report(stderr, 0, _("Undefined protocol request in POP3_auth"));
ok = PS_ERROR;
}
@@ -243,7 +243,7 @@ int pop3_getauth(int sock, struct query *ctl, char *greeting)
{
/* maybe we detected a lock-busy condition? */
if (ok == PS_LOCKBUSY)
- error(0, 0, _("lock busy! Is another session active?"));
+ report(stderr, 0, _("lock busy! Is another session active?"));
return(ok);
}
@@ -351,7 +351,7 @@ pop3_slowuidl( int sock, struct query *ctl, int *countp, int *newp)
try_id--;
}
} else {
- error(0,0,_("Messages inserted into list on server. "
+ report(stderr, 0,0,_("Messages inserted into list on server. "
"Cannot handle this."));
return -1;
}
@@ -425,7 +425,7 @@ static int pop3_getrange(int sock,
{
if (sscanf(buf, "%d", &last) == 0)
{
- error(0, 0, _("protocol error"));
+ report(stderr, 0, _("protocol error"));
return(PS_ERROR);
}
*newp = (*countp - last);
@@ -438,7 +438,7 @@ static int pop3_getrange(int sock,
/* don't worry, yet! do it the slow way */
if((ok = pop3_slowuidl( sock, ctl, countp, newp))!=0)
{
- error(0, 0, _("protocol error while fetching UIDLs"));
+ report(stderr, 0, _("protocol error while fetching UIDLs"));
return(PS_ERROR);
}
}