/[emacs]/emacs/lib-src/movemail.c
ViewVC logotype

Diff of /emacs/lib-src/movemail.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.74 by rms, Sat Nov 3 19:03:48 2001 UTC revision 1.74.4.1 by miles, Fri Apr 4 06:19:55 2003 UTC
# Line 39  Boston, MA 02111-1307, USA.  */ Line 39  Boston, MA 02111-1307, USA.  */
39   * "po:username".  This will cause movemail to open a connection to   * "po:username".  This will cause movemail to open a connection to
40   * a pop server running on $MAILHOST (environment variable).  Movemail   * a pop server running on $MAILHOST (environment variable).  Movemail
41   * must be setuid to root in order to work with POP.   * must be setuid to root in order to work with POP.
42   *   *
43   * New module: popmail.c   * New module: popmail.c
44   * Modified routines:   * Modified routines:
45   *      main - added code within #ifdef MAIL_USE_POP; added setuid (getuid ())   *      main - added code within #ifdef MAIL_USE_POP; added setuid (getuid ())
46   *              after POP code.   *              after POP code.
47   * New routines in movemail.c:   * New routines in movemail.c:
48   *      get_errmsg - return pointer to system error message   *      get_errmsg - return pointer to system error message
49   *   *
# Line 458  main (argc, argv) Line 458  main (argc, argv)
458    
459            pfatal_with_name (inname);            pfatal_with_name (inname);
460          }          }
461      
462        {        {
463          char buf[1024];          char buf[1024];
464    
# Line 838  popmail (mailbox, outfile, preserve, pas Line 838  popmail (mailbox, outfile, preserve, pas
838        error ("Error from POP server: %s", pop_error, 0);        error ("Error from POP server: %s", pop_error, 0);
839        return (1);        return (1);
840      }      }
841        
842    return (0);    return (0);
843  }  }
844    
845  int  int
846  pop_retr (server, msgno, arg)  pop_retr (server, msgno, arg)
847       popserver server;       popserver server;
848         int msgno;
849       FILE *arg;       FILE *arg;
850  {  {
851    extern char *strerror ();    extern char *strerror ();
# Line 912  mbx_write (line, len, mbf) Line 913  mbx_write (line, len, mbf)
913        line++;        line++;
914        len--;        len--;
915      }      }
916    if (fwrite (line, 1, len, mbf) != len)    if (fwrite (line, 1, len, mbf) != len)
917      return (NOTOK);      return (NOTOK);
918    if (fputc (0x0a, mbf) == EOF)    if (fputc (0x0a, mbf) == EOF)
919      return (NOTOK);      return (NOTOK);

Legend:
Removed from v.1.74  
changed lines
  Added in v.1.74.4.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26