home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 31 / CDASC_31_1996_juillet_aout.iso / vrac / lsdoor09.zip / MAIL.H < prev    next >
C/C++ Source or Header  |  1996-04-26  |  2KB  |  52 lines

  1. #ifndef __MAIL_HEADER_FILE__
  2. #define __MAIL_HEADER_FILE__
  3.  
  4.  
  5. #define MAIL_LINES   150      // Maximum supported lines in mail editor
  6.    // If a value > MAIL_LINES is passed to maileditor(), it is replaced
  7.    // by MAIL_LINES.  Door authors shouldn't touch this value.
  8.  
  9.                       // Takes 12K of RAM at 150 Lines
  10. global uchar buffer[ MAIL_LINES ][ 80 ];  // Message buffer
  11.  
  12.  
  13. void clear_buffer( char );  // Sets all spaces in buffer to NULL
  14.  
  15. inline uchar mail_to( uchar *to, uchar *user=user.handle );
  16.  
  17. int find_lowest_mailarea( void ); // Find lowest mailarea user can access...
  18.  
  19. void mail_error( ushort errNum );  // Report bad message (from, to, etc)
  20.  
  21.   // Set type to the base, if a file is attached type will be changed
  22. int write_message( int lines=MAIL_LINES, char abort=1, char clearbuf=1,
  23.   char type=1, int area=find_lowest_mailarea(), long credits=0 );
  24.  
  25. int  maileditor( int lines, char abort, char clearbuf=1 );
  26.     // Lines, maximum lines in the message.
  27.     // (0/1) Abort allowed?
  28.     // Return (0) Aborted or (1) Save
  29.     // Does NOT save to disk, it edits the message and leaves it in
  30.     // the message buffer.
  31.  
  32.     // Serch = (0) Personal (1) To ALL (2) Public
  33. int  is_new_mail( int serch );   // Search and don't show new mail
  34. void find_new_mail( int serch ); // Search and show new mail
  35.  
  36.  
  37. void search_mail( int start, char *from, char *to, char *subject, char *body,
  38.   int area );
  39.  
  40.  
  41.   // User selected (0) eXit or (1) Continue
  42. int  show_message( int allowprevious=0 );     // Show message in the buffer
  43.  
  44. truth isMailPrivate(void);
  45. truth isMailPublic(void);
  46. truth isMailPost(void);
  47.  
  48. #endif
  49.  
  50. // End of Mail.H
  51.  
  52.