comparison lib-src/movemail.c @ 49600:23a1cea22d13

Trailing whitespace deleted.
author Juanma Barranquero <lekktu@gmail.com>
date Tue, 04 Feb 2003 14:56:31 +0000
parents f6d89a1d0478
children b0811540692f d7ddb3e565de
comparison
equal deleted inserted replaced
49599:5ade352e8d1c 49600:23a1cea22d13
37 * Added POP (Post Office Protocol) service. When compiled -DMAIL_USE_POP 37 * Added POP (Post Office Protocol) service. When compiled -DMAIL_USE_POP
38 * movemail will accept input filename arguments of the form 38 * movemail will accept input filename arguments of the form
39 * "po:username". This will cause movemail to open a connection to 39 * "po:username". This will cause movemail to open a connection to
40 * a pop server running on $MAILHOST (environment variable). Movemail 40 * a pop server running on $MAILHOST (environment variable). Movemail
41 * must be setuid to root in order to work with POP. 41 * must be setuid to root in order to work with POP.
42 * 42 *
43 * New module: popmail.c 43 * New module: popmail.c
44 * Modified routines: 44 * Modified routines:
45 * main - added code within #ifdef MAIL_USE_POP; added setuid (getuid ()) 45 * main - added code within #ifdef MAIL_USE_POP; added setuid (getuid ())
46 * after POP code. 46 * after POP code.
47 * New routines in movemail.c: 47 * New routines in movemail.c:
48 * get_errmsg - return pointer to system error message 48 * get_errmsg - return pointer to system error message
49 * 49 *
50 * Modified August, 1993 by Jonathan Kamens (OpenVision Technologies) 50 * Modified August, 1993 by Jonathan Kamens (OpenVision Technologies)
51 * 51 *
456 #endif 456 #endif
457 } 457 }
458 458
459 pfatal_with_name (inname); 459 pfatal_with_name (inname);
460 } 460 }
461 461
462 { 462 {
463 char buf[1024]; 463 char buf[1024];
464 464
465 while (1) 465 while (1)
466 { 466 {
836 if (pop_quit (server)) 836 if (pop_quit (server))
837 { 837 {
838 error ("Error from POP server: %s", pop_error, 0); 838 error ("Error from POP server: %s", pop_error, 0);
839 return (1); 839 return (1);
840 } 840 }
841 841
842 return (0); 842 return (0);
843 } 843 }
844 844
845 int 845 int
846 pop_retr (server, msgno, arg) 846 pop_retr (server, msgno, arg)
911 if (fputs ("^_", mbf) == EOF) 911 if (fputs ("^_", mbf) == EOF)
912 return (NOTOK); 912 return (NOTOK);
913 line++; 913 line++;
914 len--; 914 len--;
915 } 915 }
916 if (fwrite (line, 1, len, mbf) != len) 916 if (fwrite (line, 1, len, mbf) != len)
917 return (NOTOK); 917 return (NOTOK);
918 if (fputc (0x0a, mbf) == EOF) 918 if (fputc (0x0a, mbf) == EOF)
919 return (NOTOK); 919 return (NOTOK);
920 return (OK); 920 return (OK);
921 } 921 }