1 /* $XConsortium: dmx.hh /main/5 1996/04/21 19:43:59 drk $ */
11 * RESTRICTED CONFIDENTIAL INFORMATION:
13 * The information in this document is subject to special
14 * restrictions in a confidential disclosure agreement between
15 * HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
16 * document outside HP, IBM, Sun, USL, SCO, or Univel without
17 * Sun's specific written approval. This document and all copies
18 * and derivative works thereof must be returned or destroyed at
21 * Copyright 1994 Sun Microsystems, Inc. All rights reserved.
32 #include <sys/types.h>
35 #if defined(sun) && defined(_XOPEN_SOURCE)
37 #define B_TRUE _B_TRUE
40 #define B_FALSE _B_FALSE
42 #endif /* sun && _XOPEN_SOURCE */
55 #include <DtMail/DtMail.hh>
56 #include <DtMail/DtMailError.hh>
57 #include <DtMail/DtMailValues.hh>
60 extern const char *const dmxversion;
62 enum DmxHeaderType { MSGLIST, MSGHEADER, NUMHDRTYPES };
76 // This is undoubtedly illegal, unethical, and immoral. So sue me.
77 #if !defined(SunOS) && !defined(USL) && !defined(_AIX) && !defined(__uxp__)
79 typedef enum { B_FALSE, B_TRUE } boolean_t;
83 char *convertValueToString (DtMailValueSeq *value, int s);
84 boolean_t handleError (DtMailEnv &, char *);
85 char *formatHeader (DtMailHeaderLine &, enum DmxHeaderType);
92 char *printHeader (enum DmxHeaderType);
94 void setHandle (DtMailMessageHandle &);
95 void setHeader (DtMailHeaderLine &);
96 void setMessage (DtMail::Message *);
97 void setInfo (char *);
102 DtMailMessageHandle msgHandle;
103 DtMailHeaderLine msgHeader;
104 DtMail::Message *message;
106 DtMail::BodyPart **bodyParts;
110 boolean_t cachedValues;
112 boolean_t hasAttachments;
114 // other flags for status (read, unopened, etc.)
123 DtMail::MailBox *mbox;
129 void loadMessages (void);
130 void createHeaderRequest (DtMailHeaderRequest &);
131 void printMailboxInfo (void);