home *** CD-ROM | disk | FTP | other *** search
/ ftp.uv.es / 2014.11.ftp.uv.es.tar / ftp.uv.es / pub / unix / pine4.10.tar.gz / pine4.10.tar / pine4.10 / imap / src / osdep / amiga / news.h < prev    next >
Text File  |  1998-12-04  |  4KB  |  82 lines

  1. /*
  2.  * Program:    Netnews mail routines
  3.  *
  4.  * Author:    Mark Crispin
  5.  *        Networks and Distributed Computing
  6.  *        Computing & Communications
  7.  *        University of Washington
  8.  *        Administration Building, AG-44
  9.  *        Seattle, WA  98195
  10.  *        Internet: MRC@CAC.Washington.EDU
  11.  *
  12.  * Date:    4 September 1991
  13.  * Last Edited:    4 December 1998
  14.  *
  15.  * Copyright 1998 by the University of Washington
  16.  *
  17.  *  Permission to use, copy, modify, and distribute this software and its
  18.  * documentation for any purpose and without fee is hereby granted, provided
  19.  * that the above copyright notice appears in all copies and that both the
  20.  * above copyright notice and this permission notice appear in supporting
  21.  * documentation, and that the name of the University of Washington not be
  22.  * used in advertising or publicity pertaining to distribution of the software
  23.  * without specific, written prior permission.  This software is made
  24.  * available "as is", and
  25.  * THE UNIVERSITY OF WASHINGTON DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED,
  26.  * WITH REGARD TO THIS SOFTWARE, INCLUDING WITHOUT LIMITATION ALL IMPLIED
  27.  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, AND IN
  28.  * NO EVENT SHALL THE UNIVERSITY OF WASHINGTON BE LIABLE FOR ANY SPECIAL,
  29.  * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  30.  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, TORT
  31.  * (INCLUDING NEGLIGENCE) OR STRICT LIABILITY, ARISING OUT OF OR IN CONNECTION
  32.  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  33.  *
  34.  */
  35.  
  36. /* NEWS I/O stream local data */
  37.     
  38. typedef struct news_local {
  39.   unsigned int dirty : 1;    /* disk copy of .newsrc needs updating */
  40.   char *dir;            /* spool directory name */
  41.   char *name;            /* local mailbox name */
  42.   char *buf;            /* scratch buffer */
  43.   unsigned long buflen;        /* current size of scratch buffer */
  44. } NEWSLOCAL;
  45.  
  46.  
  47. /* Convenient access to local data */
  48.  
  49. #define LOCAL ((NEWSLOCAL *) stream->local)
  50.  
  51. /* Function prototypes */
  52.  
  53. DRIVER *news_valid (char *name);
  54. DRIVER *news_isvalid (char *name,char *mbx);
  55. void *news_parameters (long function,void *value);
  56. void news_scan (MAILSTREAM *stream,char *ref,char *pat,char *contents);
  57. void news_list (MAILSTREAM *stream,char *ref,char *pat);
  58. void news_lsub (MAILSTREAM *stream,char *ref,char *pat);
  59. long news_canonicalize (char *ref,char *pat,char *pattern);
  60. long news_subscribe (MAILSTREAM *stream,char *mailbox);
  61. long news_unsubscribe (MAILSTREAM *stream,char *mailbox);
  62. long news_create (MAILSTREAM *stream,char *mailbox);
  63. long news_delete (MAILSTREAM *stream,char *mailbox);
  64. long news_rename (MAILSTREAM *stream,char *old,char *newname);
  65. long news_status (MAILSTREAM *stream,char *mbx,long flags);
  66. MAILSTREAM *news_open (MAILSTREAM *stream);
  67. int news_select (struct direct *name);
  68. int news_numsort (const void *d1,const void *d2);
  69. void news_close (MAILSTREAM *stream,long options);
  70. void news_fast (MAILSTREAM *stream,char *sequence,long flags);
  71. void news_flags (MAILSTREAM *stream,char *sequence,long flags);
  72. char *news_header (MAILSTREAM *stream,unsigned long msgno,
  73.            unsigned long *length,long flags);
  74. long news_text (MAILSTREAM *stream,unsigned long msgno,STRING *bs,long flags);
  75. void news_flagmsg (MAILSTREAM *stream,MESSAGECACHE *elt);
  76. long news_ping (MAILSTREAM *stream);
  77. void news_check (MAILSTREAM *stream);
  78. void news_expunge (MAILSTREAM *stream);
  79. long news_copy (MAILSTREAM *stream,char *sequence,char *mailbox,long options);
  80. long news_append (MAILSTREAM *stream,char *mailbox,char *flags,char *date,
  81.           STRING *message);
  82.