static char capabilities[MSGBUFSIZE+1];
static unsigned int *unseen_messages;
-int imap_ok(int sock, char *argbuf)
+static int imap_ok(int sock, char *argbuf)
/* parse command response */
{
char buf[MSGBUFSIZE+1];
}
#endif /* NTLM */
-int imap_canonicalize(char *result, char *raw, int maxlen)
+static int imap_canonicalize(char *result, char *raw, int maxlen)
/* encode an IMAP password as per RFC1730's quoting conventions */
{
int i, j;
return(i);
}
-int imap_getauth(int sock, struct query *ctl, char *greeting)
+static int imap_getauth(int sock, struct query *ctl, char *greeting)
/* apply for connection authorization */
{
int ok = 0;
static int pound_arg, equal_arg;
-int pop2_ok (int sock, char *argbuf)
+static int pop2_ok (int sock, char *argbuf)
/* parse POP2 command response */
{
int ok;
return(ok);
}
-int pop2_getauth(int sock, struct query *ctl, char *buf)
+static int pop2_getauth(int sock, struct query *ctl, char *buf)
/* apply for connection authorization */
{
return(gen_transact(sock,
#define DOTLINE(s) (s[0] == '.' && (s[1]=='\r'||s[1]=='\n'||s[1]=='\0'))
-int pop3_ok (int sock, char *argbuf)
+static int pop3_ok (int sock, char *argbuf)
/* parse command response */
{
int ok;
char *bufp;
if ((ok = gen_recv(sock, buf, sizeof(buf))) == 0)
- {
- bufp = buf;
+ { bufp = buf;
if (*bufp == '+' || *bufp == '-')
bufp++;
else
return(ok);
}
-int pop3_getauth(int sock, struct query *ctl, char *greeting)
+static int pop3_getauth(int sock, struct query *ctl, char *greeting)
/* apply for connection authorization */
{
int ok;
return(PS_SUCCESS);
}
-static int
-pop3_gettopid( int sock, int num , char *id)
+static int pop3_gettopid( int sock, int num , char *id)
{
int ok;
int got_it;
return 0;
}
-static int
-pop3_slowuidl( int sock, struct query *ctl, int *countp, int *newp)
+static int pop3_slowuidl( int sock, struct query *ctl, int *countp, int *newp)
{
/* This approach tries to get the message headers from the
* remote hosts and compares the message-id to the already known