Mercurial > hg > xemacs-beta
comparison lib-src/movemail.c @ 213:78f53ef88e17 r20-4b5
Import from CVS: tag r20-4b5
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:06:47 +0200 |
parents | 2d532a89d707 |
children | 11cf20601dec |
comparison
equal
deleted
inserted
replaced
212:d8688acf4c5b | 213:78f53ef88e17 |
---|---|
137 static void error (char *, char *, char *); | 137 static void error (char *, char *, char *); |
138 static void pfatal_with_name (char *); | 138 static void pfatal_with_name (char *); |
139 static void pfatal_and_delete (char *); | 139 static void pfatal_and_delete (char *); |
140 static char *concat (char *, char *, char *); | 140 static char *concat (char *, char *, char *); |
141 static long *xmalloc (unsigned int); | 141 static long *xmalloc (unsigned int); |
142 #ifdef MAIL_USE_POP | |
142 static int popmail (char *, char *, char *); | 143 static int popmail (char *, char *, char *); |
143 #ifdef MAIL_USE_POP | 144 static int pop_retr (popserver server, int msgno, int (*action)(), void *arg); |
144 static int pop_retr (popserver server, int msgno, int (*action)(), int arg); | |
145 #endif | |
146 static int mbx_write (char *, FILE *); | 145 static int mbx_write (char *, FILE *); |
147 static int mbx_delimit_begin (FILE *); | 146 static int mbx_delimit_begin (FILE *); |
148 static int mbx_delimit_end (FILE *); | 147 static int mbx_delimit_end (FILE *); |
148 #endif | |
149 | 149 |
150 /* Nonzero means this is name of a lock file to delete on fatal error. */ | 150 /* Nonzero means this is name of a lock file to delete on fatal error. */ |
151 char *delete_lockname; | 151 char *delete_lockname; |
152 | 152 |
153 int | 153 int |
503 int nmsgs, nbytes; | 503 int nmsgs, nbytes; |
504 register int i; | 504 register int i; |
505 int mbfi; | 505 int mbfi; |
506 FILE *mbf; | 506 FILE *mbf; |
507 char *getenv (); | 507 char *getenv (); |
508 int mbx_write (); | |
509 popserver server; | 508 popserver server; |
510 extern char *strerror (); | 509 extern char *strerror (); |
511 | 510 |
512 server = pop_open (0, user, password, POP_NO_GETPASS); | 511 server = pop_open (0, user, password, POP_NO_GETPASS); |
513 if (! server) | 512 if (! server) |
604 | 603 |
605 return (0); | 604 return (0); |
606 } | 605 } |
607 | 606 |
608 static int | 607 static int |
609 pop_retr (popserver server, int msgno, int (*action)(), int arg) | 608 pop_retr (popserver server, int msgno, int (*action)(), void *arg) |
610 { | 609 { |
611 char *line; | 610 char *line; |
612 int ret; | 611 int ret; |
613 | 612 |
614 if (pop_retrieve_first (server, msgno, &line)) | 613 if (pop_retrieve_first (server, msgno, &line)) |