imapext-2007

view src/c-client/smtp.h @ 0:ada5e610ab86

imap-2007e
author yuuji@gentei.org
date Mon, 14 Sep 2009 15:17:45 +0900
parents
children
line source
1 /* ========================================================================
2 * Copyright 1988-2007 University of Washington
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 *
11 * ========================================================================
12 */
14 /*
15 * Program: Simple Mail Transfer Protocol (SMTP) routines
16 *
17 * Author: Mark Crispin
18 * Networks and Distributed Computing
19 * Computing & Communications
20 * University of Washington
21 * Administration Building, AG-44
22 * Seattle, WA 98195
23 * Internet: MRC@CAC.Washington.EDU
24 *
25 * Date: 27 July 1988
26 * Last Edited: 15 August 2007
27 *
28 * This original version of this file is
29 * Copyright 1988 Stanford University
30 * and was developed in the Symbolic Systems Resources Group of the Knowledge
31 * Systems Laboratory at Stanford University in 1987-88, and was funded by the
32 * Biomedical Research Technology Program of the NationalInstitutes of Health
33 * under grant number RR-00785.
34 */
36 /* Constants (should be in smtp.c) */
38 #define SMTPTCPPORT (long) 25 /* assigned TCP contact port */
39 #define SUBMITTCPPORT (long) 587/* assigned TCP contact port */
42 /* SMTP open options
43 * For compatibility with the past, SOP_DEBUG must always be 1.
44 */
46 #define SOP_DEBUG (long) 1 /* debug protocol negotiations */
47 #define SOP_DSN (long) 2 /* DSN requested */
48 /* DSN notification, none set mean NEVER */
49 #define SOP_DSN_NOTIFY_FAILURE (long) 4
50 #define SOP_DSN_NOTIFY_DELAY (long) 8
51 #define SOP_DSN_NOTIFY_SUCCESS (long) 16
52 /* DSN return full msg vs. header */
54 #define SOP_DSN_RETURN_FULL (long) 32
55 #define SOP_8BITMIME (long) 64 /* 8-bit MIME requested */
56 #define SOP_SECURE (long) 256 /* don't do non-secure authentication */
57 #define SOP_TRYSSL (long) 512 /* try SSL first */
58 #define SOP_TRYALT SOP_TRYSSL /* old name */
59 /* reserved for application use */
60 #define SOP_RESERVED (unsigned long) 0xff000000
63 /* Compatibility support names */
65 #define smtp_open(hostlist,options) \
66 smtp_open_full (NIL,hostlist,"smtp",NIL,options)
69 /* Function prototypes */
71 void *smtp_parameters (long function,void *value);
72 SENDSTREAM *smtp_open_full (NETDRIVER *dv,char **hostlist,char *service,
73 unsigned long port,long options);
74 SENDSTREAM *smtp_close (SENDSTREAM *stream);
75 long smtp_mail (SENDSTREAM *stream,char *type,ENVELOPE *msg,BODY *body);
76 long smtp_verbose (SENDSTREAM *stream);

UW-IMAP'd extensions by yuuji