imap4r1.h   imap4r1.h 
skipping to change at line 13 skipping to change at line 13
* *
* Author: Mark Crispin * Author: Mark Crispin
* Networks and Distributed Computing * Networks and Distributed Computing
* Computing & Communications * Computing & Communications
* University of Washington * University of Washington
* Administration Building, AG-44 * Administration Building, AG-44
* Seattle, WA 98195 * Seattle, WA 98195
* Internet: MRC@CAC.Washington.EDU * Internet: MRC@CAC.Washington.EDU
* *
* Date: 14 October 1988 * Date: 14 October 1988
* Last Edited: 11 February 2003 * Last Edited: 25 June 2003
* *
* The IMAP toolkit provided in this Distribution is * The IMAP toolkit provided in this Distribution is
* Copyright 1988-2003 University of Washington. * Copyright 1988-2003 University of Washington.
* The full text of our legal notices is contained in the file called * The full text of our legal notices is contained in the file called
* CPYRIGHT, included with this Distribution. * CPYRIGHT, included with this Distribution.
* *
* This original version of this file is * This original version of this file is
* Copyright 1988 Stanford University * Copyright 1988 Stanford University
* and was developed in the Symbolic Systems Resources Group of the Knowled ge * and was developed in the Symbolic Systems Resources Group of the Knowled ge
* Systems Laboratory at Stanford University in 1987-88, and was funded by the * Systems Laboratory at Stanford University in 1987-88, and was funded by the
skipping to change at line 74 skipping to change at line 74
unsigned int authanon : 1; /* server has anonymous SASL (RFC 2245) */ unsigned int authanon : 1; /* server has anonymous SASL (RFC 2245) */
unsigned int namespace :1; /* server has NAMESPACE (RFC 2342) */ unsigned int namespace :1; /* server has NAMESPACE (RFC 2342) */
unsigned int uidplus : 1; /* server has UIDPLUS (RFC 2359) */ unsigned int uidplus : 1; /* server has UIDPLUS (RFC 2359) */
unsigned int starttls : 1; /* server has STARTTLS (RFC 2595) */ unsigned int starttls : 1; /* server has STARTTLS (RFC 2595) */
/* server disallows LOGIN command (RFC 2595) */ /* server disallows LOGIN command (RFC 2595) */
unsigned int logindisabled : 1; unsigned int logindisabled : 1;
unsigned int id : 1; /* server has ID (RFC 2971) */ unsigned int id : 1; /* server has ID (RFC 2971) */
unsigned int children : 1; /* server has CHILDREN (RFC 3398) */ unsigned int children : 1; /* server has CHILDREN (RFC 3398) */
/* server has multi-APPEND */ /* server has multi-APPEND */
unsigned int multiappend : 1; unsigned int multiappend : 1;
unsigned int scan : 1; /* server has SCAN */ unsigned int unselect : 1; /* server has UNSELECT */
unsigned int sort : 1; /* server has SORT */ unsigned int sort : 1; /* server has SORT */
unsigned int scan : 1; /* server has SCAN */
/* supported authenticators */ /* supported authenticators */
unsigned int auth : MAXAUTHENTICATORS; unsigned int auth : MAXAUTHENTICATORS;
THREADER *threader; /* list of threaders */ THREADER *threader; /* list of threaders */
} cap; } cap;
unsigned int uidsearch : 1; /* UID searching */ unsigned int uidsearch : 1; /* UID searching */
unsigned int byeseen : 1; /* saw a BYE response */ unsigned int byeseen : 1; /* saw a BYE response */
/* got implicit capabilities */ /* got implicit capabilities */
unsigned int gotcapability : 1; unsigned int gotcapability : 1;
unsigned int sensitive : 1; /* sensitive data in progress */ unsigned int sensitive : 1; /* sensitive data in progress */
unsigned int tlsflag : 1; /* TLS session */ unsigned int tlsflag : 1; /* TLS session */
skipping to change at line 327 skipping to change at line 328
long imap_getquota (MAILSTREAM *stream,char *qroot); long imap_getquota (MAILSTREAM *stream,char *qroot);
long imap_getquotaroot (MAILSTREAM *stream,char *mailbox); long imap_getquotaroot (MAILSTREAM *stream,char *mailbox);
IMAPPARSEDREPLY *imap_send (MAILSTREAM *stream,char *cmd,IMAPARG *args[]); IMAPPARSEDREPLY *imap_send (MAILSTREAM *stream,char *cmd,IMAPARG *args[]);
IMAPPARSEDREPLY *imap_sout (MAILSTREAM *stream,char *tag,char *base,char ** s); IMAPPARSEDREPLY *imap_sout (MAILSTREAM *stream,char *tag,char *base,char ** s);
long imap_soutr (MAILSTREAM *stream,char *string); long imap_soutr (MAILSTREAM *stream,char *string);
IMAPPARSEDREPLY *imap_send_astring (MAILSTREAM *stream,char *tag,char **s, IMAPPARSEDREPLY *imap_send_astring (MAILSTREAM *stream,char *tag,char **s,
SIZEDTEXT *as,long wildok,char *limit); SIZEDTEXT *as,long wildok,char *limit);
IMAPPARSEDREPLY *imap_send_literal (MAILSTREAM *stream,char *tag,char **s, IMAPPARSEDREPLY *imap_send_literal (MAILSTREAM *stream,char *tag,char **s,
STRING *st); STRING *st);
IMAPPARSEDREPLY *imap_send_spgm (MAILSTREAM *stream,char *tag,char **s, IMAPPARSEDREPLY *imap_send_spgm (MAILSTREAM *stream,char *tag,char *base,
SEARCHPGM *pgm,char *limit); char **s,SEARCHPGM *pgm,char *limit);
IMAPPARSEDREPLY *imap_send_sset (MAILSTREAM *stream,char *tag,char **s, char *imap_send_spgm_trim (char *base,char *s,char *text);
SEARCHSET *set,char *prefix,char *limit); IMAPPARSEDREPLY *imap_send_sset (MAILSTREAM *stream,char *tag,char *base,
IMAPPARSEDREPLY *imap_send_slist (MAILSTREAM *stream,char *tag,char **s, char **s,SEARCHSET *set,char *prefix,
char *name,STRINGLIST *list,char *limit); char *limit);
IMAPPARSEDREPLY *imap_send_slist (MAILSTREAM *stream,char *tag,char *base,
char **s,char *name,STRINGLIST *list,
char *limit);
void imap_send_sdate (char **s,char *name,unsigned short date); void imap_send_sdate (char **s,char *name,unsigned short date);
IMAPPARSEDREPLY *imap_reply (MAILSTREAM *stream,char *tag); IMAPPARSEDREPLY *imap_reply (MAILSTREAM *stream,char *tag);
IMAPPARSEDREPLY *imap_parse_reply (MAILSTREAM *stream,char *text); IMAPPARSEDREPLY *imap_parse_reply (MAILSTREAM *stream,char *text);
IMAPPARSEDREPLY *imap_fake (MAILSTREAM *stream,char *tag,char *text); IMAPPARSEDREPLY *imap_fake (MAILSTREAM *stream,char *tag,char *text);
long imap_OK (MAILSTREAM *stream,IMAPPARSEDREPLY *reply); long imap_OK (MAILSTREAM *stream,IMAPPARSEDREPLY *reply);
void imap_parse_unsolicited (MAILSTREAM *stream,IMAPPARSEDREPLY *reply); void imap_parse_unsolicited (MAILSTREAM *stream,IMAPPARSEDREPLY *reply);
void imap_parse_response (MAILSTREAM *stream,char *text,long errflg,long nt fy); void imap_parse_response (MAILSTREAM *stream,char *text,long errflg,long nt fy);
NAMESPACE *imap_parse_namespace (MAILSTREAM *stream,char **txtptr, NAMESPACE *imap_parse_namespace (MAILSTREAM *stream,char **txtptr,
IMAPPARSEDREPLY *reply); IMAPPARSEDREPLY *reply);
THREADNODE *imap_parse_thread (MAILSTREAM *stream,char **txtptr); THREADNODE *imap_parse_thread (MAILSTREAM *stream,char **txtptr);
 End of changes. 4 change blocks. 
8 lines changed or deleted 12 lines changed or added


 mail.h   mail.h 
skipping to change at line 13 skipping to change at line 13
* *
* Author: Mark Crispin * Author: Mark Crispin
* Networks and Distributed Computing * Networks and Distributed Computing
* Computing & Communications * Computing & Communications
* University of Washington * University of Washington
* Administration Building, AG-44 * Administration Building, AG-44
* Seattle, WA 98195 * Seattle, WA 98195
* Internet: MRC@CAC.Washington.EDU * Internet: MRC@CAC.Washington.EDU
* *
* Date: 22 November 1989 * Date: 22 November 1989
* Last Edited: 28 May 2003 * Last Edited: 19 August 2003
* *
* The IMAP toolkit provided in this Distribution is * The IMAP toolkit provided in this Distribution is
* Copyright 1988-2003 University of Washington. * Copyright 1988-2003 University of Washington.
* The full text of our legal notices is contained in the file called * The full text of our legal notices is contained in the file called
* CPYRIGHT, included with this Distribution. * CPYRIGHT, included with this Distribution.
*/ */
/* Build parameters */ /* Build parameters */
#define CACHEINCREMENT 250 /* cache growth increments */ #define CACHEINCREMENT 250 /* cache growth increments */
#define MAILTMPLEN 1024 /* size of a temporary buffer */ #define MAILTMPLEN 1024 /* size of a temporary buffer */
skipping to change at line 112 skipping to change at line 112
#define GET_FREEELTSPAREP (long) 143 #define GET_FREEELTSPAREP (long) 143
#define SET_FREEELTSPAREP (long) 144 #define SET_FREEELTSPAREP (long) 144
#define GET_SSLSTART (long) 145 #define GET_SSLSTART (long) 145
#define SET_SSLSTART (long) 146 #define SET_SSLSTART (long) 146
#define GET_DEBUGSENSITIVE (long) 147 #define GET_DEBUGSENSITIVE (long) 147
#define SET_DEBUGSENSITIVE (long) 148 #define SET_DEBUGSENSITIVE (long) 148
#define GET_TCPDEBUG (long) 149 #define GET_TCPDEBUG (long) 149
#define SET_TCPDEBUG (long) 150 #define SET_TCPDEBUG (long) 150
#define GET_FREESTREAMSPAREP (long) 151 #define GET_FREESTREAMSPAREP (long) 151
#define SET_FREESTREAMSPAREP (long) 152 #define SET_FREESTREAMSPAREP (long) 152
#define GET_FREEBODYSPAREP (long) 153
#define SET_FREEBODYSPAREP (long) 154
/* 2xx: environment */ /* 2xx: environment */
#define GET_USERNAME (long) 201 #define GET_USERNAME (long) 201
#define SET_USERNAME (long) 202 #define SET_USERNAME (long) 202
#define GET_HOMEDIR (long) 203 #define GET_HOMEDIR (long) 203
#define SET_HOMEDIR (long) 204 #define SET_HOMEDIR (long) 204
#define GET_LOCALHOST (long) 205 #define GET_LOCALHOST (long) 205
#define SET_LOCALHOST (long) 206 #define SET_LOCALHOST (long) 206
#define GET_SYSINBOX (long) 207 #define GET_SYSINBOX (long) 207
#define SET_SYSINBOX (long) 208 #define SET_SYSINBOX (long) 208
#define GET_USERPROMPT (long) 209 #define GET_USERPROMPT (long) 209
skipping to change at line 135 skipping to change at line 137
#define GET_CHROOTSERVER (long) 213 #define GET_CHROOTSERVER (long) 213
#define SET_CHROOTSERVER (long) 214 #define SET_CHROOTSERVER (long) 214
#define GET_ADVERTISETHEWORLD (long) 215 #define GET_ADVERTISETHEWORLD (long) 215
#define SET_ADVERTISETHEWORLD (long) 216 #define SET_ADVERTISETHEWORLD (long) 216
#define GET_DISABLEAUTOSHAREDNS (long) 217 #define GET_DISABLEAUTOSHAREDNS (long) 217
#define SET_DISABLEAUTOSHAREDNS (long) 218 #define SET_DISABLEAUTOSHAREDNS (long) 218
#define GET_MAILSUBDIR 219 #define GET_MAILSUBDIR 219
#define SET_MAILSUBDIR 220 #define SET_MAILSUBDIR 220
#define GET_DISABLE822TZTEXT 221 #define GET_DISABLE822TZTEXT 221
#define SET_DISABLE822TZTEXT 222 #define SET_DISABLE822TZTEXT 222
#define GET_LIMITEDADVERTISE (long) 223
#define SET_LIMITEDADVERTISE (long) 224
/* 3xx: TCP/IP */ /* 3xx: TCP/IP */
#define GET_OPENTIMEOUT (long) 300 #define GET_OPENTIMEOUT (long) 300
#define SET_OPENTIMEOUT (long) 301 #define SET_OPENTIMEOUT (long) 301
#define GET_READTIMEOUT (long) 302 #define GET_READTIMEOUT (long) 302
#define SET_READTIMEOUT (long) 303 #define SET_READTIMEOUT (long) 303
#define GET_WRITETIMEOUT (long) 304 #define GET_WRITETIMEOUT (long) 304
#define SET_WRITETIMEOUT (long) 305 #define SET_WRITETIMEOUT (long) 305
#define GET_CLOSETIMEOUT (long) 306 #define GET_CLOSETIMEOUT (long) 306
#define SET_CLOSETIMEOUT (long) 307 #define SET_CLOSETIMEOUT (long) 307
#define GET_TIMEOUT (long) 308 #define GET_TIMEOUT (long) 308
skipping to change at line 164 skipping to change at line 168
#define GET_SSHTIMEOUT (long) 318 #define GET_SSHTIMEOUT (long) 318
#define SET_SSHTIMEOUT (long) 319 #define SET_SSHTIMEOUT (long) 319
#define GET_SSHCOMMAND (long) 320 #define GET_SSHCOMMAND (long) 320
#define SET_SSHCOMMAND (long) 321 #define SET_SSHCOMMAND (long) 321
#define GET_SSHPATH (long) 322 #define GET_SSHPATH (long) 322
#define SET_SSHPATH (long) 323 #define SET_SSHPATH (long) 323
#define GET_SSLCERTIFICATEQUERY (long) 324 #define GET_SSLCERTIFICATEQUERY (long) 324
#define SET_SSLCERTIFICATEQUERY (long) 325 #define SET_SSLCERTIFICATEQUERY (long) 325
#define GET_SSLFAILURE (long) 326 #define GET_SSLFAILURE (long) 326
#define SET_SSLFAILURE (long) 327 #define SET_SSLFAILURE (long) 327
#define GET_NEWSRCCANONHOST (long) 328
#define SET_NEWSRCCANONHOST (long) 329
/* 4xx: network drivers */ /* 4xx: network drivers */
#define GET_MAXLOGINTRIALS (long) 400 #define GET_MAXLOGINTRIALS (long) 400
#define SET_MAXLOGINTRIALS (long) 401 #define SET_MAXLOGINTRIALS (long) 401
#define GET_LOOKAHEAD (long) 402 #define GET_LOOKAHEAD (long) 402
#define SET_LOOKAHEAD (long) 403 #define SET_LOOKAHEAD (long) 403
#define GET_IMAPPORT (long) 404 #define GET_IMAPPORT (long) 404
#define SET_IMAPPORT (long) 405 #define SET_IMAPPORT (long) 405
#define GET_PREFETCH (long) 406 #define GET_PREFETCH (long) 406
#define SET_PREFETCH (long) 407 #define SET_PREFETCH (long) 407
#define GET_CLOSEONERROR (long) 408 #define GET_CLOSEONERROR (long) 408
skipping to change at line 301 skipping to change at line 307
#define DR_CRLF (long) 0x200 /* driver internal form uses CRLF newlines * / #define DR_CRLF (long) 0x200 /* driver internal form uses CRLF newlines * /
#define DR_NOSTICKY (long) 0x400/* driver does not support sticky UIDs */ #define DR_NOSTICKY (long) 0x400/* driver does not support sticky UIDs */
#define DR_RECYCLE (long) 0x800 /* driver does stream recycling */ #define DR_RECYCLE (long) 0x800 /* driver does stream recycling */
#define DR_XPOINT (long) 0x1000 /* needs to be checkpointed when rec ycling */ #define DR_XPOINT (long) 0x1000 /* needs to be checkpointed when rec ycling */
/* driver has no real internal date */ /* driver has no real internal date */
#define DR_NOINTDATE (long) 0x2000 #define DR_NOINTDATE (long) 0x2000
/* driver does not announce new mail */ /* driver does not announce new mail */
#define DR_NONEWMAIL (long) 0x4000 #define DR_NONEWMAIL (long) 0x4000
/* driver does not announce new mail when RO */ /* driver does not announce new mail when RO */
#define DR_NONEWMAILRONLY (long) 0x8000 #define DR_NONEWMAILRONLY (long) 0x8000
/* driver can be halfopen */
#define DR_HALFOPEN (long) 0x10000
/* Cache management function codes */ /* Cache management function codes */
#define CH_INIT (long) 10 /* initialize cache */ #define CH_INIT (long) 10 /* initialize cache */
#define CH_SIZE (long) 11 /* (re-)size the cache */ #define CH_SIZE (long) 11 /* (re-)size the cache */
#define CH_MAKEELT (long) 30 /* return elt, make if needed */ #define CH_MAKEELT (long) 30 /* return elt, make if needed */
#define CH_ELT (long) 31 /* return elt if exists */ #define CH_ELT (long) 31 /* return elt if exists */
#define CH_SORTCACHE (long) 35 /* return sortcache entry, make if needed */ #define CH_SORTCACHE (long) 35 /* return sortcache entry, make if needed */
#define CH_FREE (long) 40 /* free space used by elt */ #define CH_FREE (long) 40 /* free space used by elt */
/* free space used by sortcache */ /* free space used by sortcache */
skipping to change at line 636 skipping to change at line 644
PARTTEXT contents; /* body part contents */ PARTTEXT contents; /* body part contents */
union { /* different ways of accessing contents */ union { /* different ways of accessing contents */
PART *part; /* body part list */ PART *part; /* body part list */
MESSAGE *msg; /* body encapsulated message */ MESSAGE *msg; /* body encapsulated message */
} nested; } nested;
struct { struct {
unsigned long lines; /* size of text in lines */ unsigned long lines; /* size of text in lines */
unsigned long bytes; /* size of text in octets */ unsigned long bytes; /* size of text in octets */
} size; } size;
char *md5; /* MD5 checksum */ char *md5; /* MD5 checksum */
void *sparep; /* spare pointer reserved for main p rogram */
}; };
/* Parameter list */ /* Parameter list */
PARAMETER { PARAMETER {
char *attribute; /* parameter attribute name */ char *attribute; /* parameter attribute name */
char *value; /* parameter value */ char *value; /* parameter value */
PARAMETER *next; /* next parameter in list */ PARAMETER *next; /* next parameter in list */
}; };
skipping to change at line 1142 skipping to change at line 1151
char *alwaysrights,STRINGLIST *possiblerights) ; char *alwaysrights,STRINGLIST *possiblerights) ;
typedef void (*myrights_t) (MAILSTREAM *stream,char *mailbox,char *rights); typedef void (*myrights_t) (MAILSTREAM *stream,char *mailbox,char *rights);
typedef void (*quota_t) (MAILSTREAM *stream,char *qroot,QUOTALIST *qlist); typedef void (*quota_t) (MAILSTREAM *stream,char *qroot,QUOTALIST *qlist);
typedef void (*quotaroot_t) (MAILSTREAM *stream,char *mbx,STRINGLIST *qroot ); typedef void (*quotaroot_t) (MAILSTREAM *stream,char *mbx,STRINGLIST *qroot );
typedef void (*sortresults_t) (MAILSTREAM *stream,unsigned long *list, typedef void (*sortresults_t) (MAILSTREAM *stream,unsigned long *list,
unsigned long size); unsigned long size);
typedef char *(*newsrcquery_t) (MAILSTREAM *stream,char *mulname,char *name ); typedef char *(*newsrcquery_t) (MAILSTREAM *stream,char *mulname,char *name );
typedef char *(*userprompt_t) (void); typedef char *(*userprompt_t) (void);
typedef long (*append_t) (MAILSTREAM *stream,void *data,char **flags, typedef long (*append_t) (MAILSTREAM *stream,void *data,char **flags,
char **date,STRING **message); char **date,STRING **message);
typedef void (*freeenvelopesparep_t) (void **sparep);
typedef void (*freeeltsparep_t) (void **sparep); typedef void (*freeeltsparep_t) (void **sparep);
typedef void (*freeenvelopesparep_t) (void **sparep);
typedef void (*freebodysparep_t) (void **sparep);
typedef void (*freestreamsparep_t) (void **sparep); typedef void (*freestreamsparep_t) (void **sparep);
typedef void *(*sslstart_t) (void *stream,char *host,unsigned long flags); typedef void *(*sslstart_t) (void *stream,char *host,unsigned long flags);
typedef long (*sslcertificatequery_t) (char *reason,char *host,char *cert); typedef long (*sslcertificatequery_t) (char *reason,char *host,char *cert);
typedef void (*sslfailure_t) (char *host,char *reason,unsigned long flags); typedef void (*sslfailure_t) (char *host,char *reason,unsigned long flags);
/* Globals */ /* Globals */
extern char *body_types[]; /* defined body type strings */ extern char *body_types[]; /* defined body type strings */
extern char *body_encodings[]; /* defined body encoding strings */ extern char *body_encodings[]; /* defined body encoding strings */
extern const char *days[]; /* day name strings */ extern const char *days[]; /* day name strings */
skipping to change at line 1475 skipping to change at line 1485
long flags); long flags);
long mail_search_msg (MAILSTREAM *stream,unsigned long msgno,char *section, long mail_search_msg (MAILSTREAM *stream,unsigned long msgno,char *section,
SEARCHPGM *pgm); SEARCHPGM *pgm);
long mail_search_header_text (char *s,STRINGLIST *st); long mail_search_header_text (char *s,STRINGLIST *st);
long mail_search_header (SIZEDTEXT *hdr,STRINGLIST *st); long mail_search_header (SIZEDTEXT *hdr,STRINGLIST *st);
long mail_search_text (MAILSTREAM *stream,unsigned long msgno,char *section , long mail_search_text (MAILSTREAM *stream,unsigned long msgno,char *section ,
STRINGLIST *st,long flags); STRINGLIST *st,long flags);
long mail_search_body (MAILSTREAM *stream,unsigned long msgno,BODY *body, long mail_search_body (MAILSTREAM *stream,unsigned long msgno,BODY *body,
char *prefix,unsigned long section,long flags); char *prefix,unsigned long section,long flags);
long mail_search_string (SIZEDTEXT *s,char *charset,STRINGLIST **st); long mail_search_string (SIZEDTEXT *s,char *charset,STRINGLIST **st);
long mail_search_keyword (MAILSTREAM *stream,MESSAGECACHE *elt,STRINGLIST * long mail_search_keyword (MAILSTREAM *stream,MESSAGECACHE *elt,STRINGLIST *
st); st,
long flag);
long mail_search_addr (ADDRESS *adr,STRINGLIST *st); long mail_search_addr (ADDRESS *adr,STRINGLIST *st);
char *mail_search_gets (readfn_t f,void *stream,unsigned long size, char *mail_search_gets (readfn_t f,void *stream,unsigned long size,
GETS_DATA *md); GETS_DATA *md);
SEARCHPGM *mail_criteria (char *criteria); SEARCHPGM *mail_criteria (char *criteria);
int mail_criteria_date (unsigned short *date); int mail_criteria_date (unsigned short *date);
int mail_criteria_string (STRINGLIST **s); int mail_criteria_string (STRINGLIST **s);
unsigned short mail_shortdate (unsigned int year,unsigned int month, unsigned short mail_shortdate (unsigned int year,unsigned int month,
unsigned int day); unsigned int day);
unsigned long *mail_sort (MAILSTREAM *stream,char *charset,SEARCHPGM *spg, unsigned long *mail_sort (MAILSTREAM *stream,char *charset,SEARCHPGM *spg,
SORTPGM *pgm,long flags); SORTPGM *pgm,long flags);
 End of changes. 9 change blocks. 
4 lines changed or deleted 15 lines changed or added


 nntp.h   nntp.h 
skipping to change at line 13 skipping to change at line 13
* *
* Author: Mark Crispin * Author: Mark Crispin
* Networks and Distributed Computing * Networks and Distributed Computing
* Computing & Communications * Computing & Communications
* University of Washington * University of Washington
* Administration Building, AG-44 * Administration Building, AG-44
* Seattle, WA 98195 * Seattle, WA 98195
* Internet: MRC@CAC.Washington.EDU * Internet: MRC@CAC.Washington.EDU
* *
* Date: 10 February 1992 * Date: 10 February 1992
* Last Edited: 2 May 2003 * Last Edited: 2 June 2003
* *
* The IMAP toolkit provided in this Distribution is * The IMAP toolkit provided in this Distribution is
* Copyright 1988-2003 University of Washington. * Copyright 1988-2003 University of Washington.
* The full text of our legal notices is contained in the file called * The full text of our legal notices is contained in the file called
* CPYRIGHT, included with this Distribution. * CPYRIGHT, included with this Distribution.
*/ */
/* Constants */ /* Constants */
#define MAXLOGINTRIALS 3 /* maximum number of login trials */ #define MAXLOGINTRIALS 3 /* maximum number of login trials */
#define NNTPTCPPORT (long) 119 /* assigned TCP contact port */ #define NNTPTCPPORT (long) 119 /* assigned TCP contact port */
skipping to change at line 56 skipping to change at line 56
/* NNTP I/O stream local data */ /* NNTP I/O stream local data */
typedef struct nntp_local { typedef struct nntp_local {
SENDSTREAM *nntpstream; /* NNTP stream for I/O */ SENDSTREAM *nntpstream; /* NNTP stream for I/O */
unsigned int dirty : 1; /* disk copy of .newsrc needs updating */ unsigned int dirty : 1; /* disk copy of .newsrc needs updating */
unsigned int tlsflag : 1; /* TLS session */ unsigned int tlsflag : 1; /* TLS session */
unsigned int notlsflag : 1; /* TLS not used in session */ unsigned int notlsflag : 1; /* TLS not used in session */
unsigned int sslflag : 1; /* SSL session */ unsigned int sslflag : 1; /* SSL session */
unsigned int novalidate : 1; /* certificate not validated */ unsigned int novalidate : 1; /* certificate not validated */
unsigned int xover : 1; /* supports XOVER */ unsigned int xover : 1; /* supports XOVER */
unsigned int xhdr : 1; /* supports XHDR */
char *name; /* remote newsgroup name */ char *name; /* remote newsgroup name */
char *user; /* mailbox user */ char *user; /* mailbox user */
char *newsrc; /* newsrc file */ char *newsrc; /* newsrc file */
char *over_fmt; /* overview format */ char *over_fmt; /* overview format */
unsigned long msgno; /* current text message number */ unsigned long msgno; /* current text message number */
FILE *txt; /* current text */ FILE *txt; /* current text */
unsigned long txtsize; /* current text size */ unsigned long txtsize; /* current text size */
} NNTPLOCAL; } NNTPLOCAL;
/* Convenient access to local data */ /* Convenient access to local data */
skipping to change at line 96 skipping to change at line 97
void nntp_scan (MAILSTREAM *stream,char *ref,char *pat,char *contents); void nntp_scan (MAILSTREAM *stream,char *ref,char *pat,char *contents);
void nntp_list (MAILSTREAM *stream,char *ref,char *pat); void nntp_list (MAILSTREAM *stream,char *ref,char *pat);
void nntp_lsub (MAILSTREAM *stream,char *ref,char *pat); void nntp_lsub (MAILSTREAM *stream,char *ref,char *pat);
long nntp_canonicalize (char *ref,char *pat,char *pattern,char *wildmat); long nntp_canonicalize (char *ref,char *pat,char *pattern,char *wildmat);
long nntp_subscribe (MAILSTREAM *stream,char *mailbox); long nntp_subscribe (MAILSTREAM *stream,char *mailbox);
long nntp_unsubscribe (MAILSTREAM *stream,char *mailbox); long nntp_unsubscribe (MAILSTREAM *stream,char *mailbox);
long nntp_create (MAILSTREAM *stream,char *mailbox); long nntp_create (MAILSTREAM *stream,char *mailbox);
long nntp_delete (MAILSTREAM *stream,char *mailbox); long nntp_delete (MAILSTREAM *stream,char *mailbox);
long nntp_rename (MAILSTREAM *stream,char *old,char *newname); long nntp_rename (MAILSTREAM *stream,char *old,char *newname);
long nntp_status (MAILSTREAM *stream,char *mbx,long flags); long nntp_status (MAILSTREAM *stream,char *mbx,long flags);
long nntp_getmap (MAILSTREAM *stream,char *name,
unsigned long first,unsigned long last,
unsigned long rnmsgs,unsigned long nmsgs,char *tmp);
MAILSTREAM *nntp_mopen (MAILSTREAM *stream); MAILSTREAM *nntp_mopen (MAILSTREAM *stream);
void nntp_mclose (MAILSTREAM *stream,long options); void nntp_mclose (MAILSTREAM *stream,long options);
void nntp_fetchfast (MAILSTREAM *stream,char *sequence,long flags); void nntp_fetchfast (MAILSTREAM *stream,char *sequence,long flags);
void nntp_flags (MAILSTREAM *stream,char *sequence,long flags); void nntp_flags (MAILSTREAM *stream,char *sequence,long flags);
long nntp_overview (MAILSTREAM *stream,overview_t ofn); long nntp_overview (MAILSTREAM *stream,overview_t ofn);
long nntp_parse_overview (OVERVIEW *ov,char *text,MESSAGECACHE *elt); long nntp_parse_overview (OVERVIEW *ov,char *text,MESSAGECACHE *elt);
long nntp_over (MAILSTREAM *stream,char *sequence); long nntp_over (MAILSTREAM *stream,char *sequence);
char *nntp_header (MAILSTREAM *stream,unsigned long msgno,unsigned long *si ze, char *nntp_header (MAILSTREAM *stream,unsigned long msgno,unsigned long *si ze,
long flags); long flags);
long nntp_text (MAILSTREAM *stream,unsigned long msgno,STRING *bs,long flag s); long nntp_text (MAILSTREAM *stream,unsigned long msgno,STRING *bs,long flag s);
 End of changes. 3 change blocks. 
1 lines changed or deleted 5 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/