2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these libraries and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 /* $XConsortium: dmx.hh /main/5 1996/04/21 19:43:59 drk $ */
33 * RESTRICTED CONFIDENTIAL INFORMATION:
35 * The information in this document is subject to special
36 * restrictions in a confidential disclosure agreement between
37 * HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
38 * document outside HP, IBM, Sun, USL, SCO, or Univel without
39 * Sun's specific written approval. This document and all copies
40 * and derivative works thereof must be returned or destroyed at
43 * Copyright 1994 Sun Microsystems, Inc. All rights reserved.
54 #include <sys/types.h>
57 #if defined(sun) && defined(_XOPEN_SOURCE)
59 #define B_TRUE _B_TRUE
62 #define B_FALSE _B_FALSE
64 #endif /* sun && _XOPEN_SOURCE */
77 #include <DtMail/DtMail.hh>
78 #include <DtMail/DtMailError.hh>
79 #include <DtMail/DtMailValues.hh>
82 extern const char *const dmxversion;
84 enum DmxHeaderType { MSGLIST, MSGHEADER, NUMHDRTYPES };
98 // This is undoubtedly illegal, unethical, and immoral. So sue me.
99 #if !defined(SunOS) && !defined(_AIX)
101 typedef enum { B_FALSE, B_TRUE } boolean_t;
105 char *convertValueToString (DtMailValueSeq *value, int s);
106 boolean_t handleError (DtMailEnv &, char *);
107 char *formatHeader (DtMailHeaderLine &, enum DmxHeaderType);
114 char *printHeader (enum DmxHeaderType);
116 void setHandle (DtMailMessageHandle &);
117 void setHeader (DtMailHeaderLine &);
118 void setMessage (DtMail::Message *);
119 void setInfo (char *);
121 void getFlags (void);
124 DtMailMessageHandle msgHandle;
125 DtMailHeaderLine msgHeader;
126 DtMail::Message *message;
128 DtMail::BodyPart **bodyParts;
132 boolean_t cachedValues;
134 boolean_t hasAttachments;
136 // other flags for status (read, unopened, etc.)
145 DtMail::MailBox *mbox;
151 void loadMessages (void);
152 void createHeaderRequest (DtMailHeaderRequest &);
153 void printMailboxInfo (void);