home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 024 / psi110g.zip / MAILCLI.H < prev    next >
C/C++ Source or Header  |  1994-04-17  |  1KB  |  44 lines

  1. #ifndef _MAILCLI_H
  2. #define _MAILCLI_H
  3. /* Mail Command Line Interface -- Clients
  4.  * Copyright 1992 William Allen Simpson
  5.  */
  6.   
  7. #ifndef _DAEMON_H
  8. #include "daemon.h"
  9. #endif
  10.   
  11. #ifndef _TIMER_H
  12. #include "timer.h"
  13. #endif
  14.   
  15. struct mailservers {
  16.     struct mailservers *next;
  17.     struct daemon *reader;
  18.     struct timer timer;
  19.     int lowtime, hightime;  /* for connect window */
  20.     char *hostname;
  21.     char *username;
  22.     char *password;
  23.     char *mailbox;
  24. };
  25. #define NULLMAIL    (struct mailservers *)NULL
  26.   
  27. extern struct daemon Mailreaders[];
  28. extern struct mailservers *Mailservers;
  29. extern unsigned short Mailtrace;
  30. extern int Mailquiet;
  31.   
  32. int domsread __ARGS((int argc,char *argv[],void *p));
  33.   
  34. int mailresponse __ARGS((int s, char *buf, char *comment));
  35. int mailbusy __ARGS((struct mailservers *np));
  36.   
  37. /* in pop2cli.c */
  38. void pop2_job __ARGS((int unused,void *v1,void *p2));
  39.   
  40. /* in pop3cli.c */
  41. void pop3_job __ARGS((int unused,void *v1,void *p2));
  42.   
  43. #endif /* _MAILCLI_H */
  44.