2 * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 2004-2014 Colin Leroy and the Claws Mail team
5 * Yerase's TNEF Stream Reader Library
6 * Copyright (C) 2003 Randall E. Hand
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 3 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
21 * You can contact me at randall.hand@gmail.com for questions or assistance
23 #ifndef _TNEF_TYPES_H_
24 #define _TNEF_TYPES_H_
26 #define BYTE unsigned char
27 #define WORD unsigned short int
28 #define DWORD unsigned int
29 #define ULONG unsigned int
30 #define DDWORD unsigned long long
40 /* ----------------------------------- */
41 /* TNEF Down-level Date/Time Structure */
42 /* ----------------------------------- */
67 variableLength *propnames;
71 typedef struct MAPIProps {
73 MAPIProperty *properties;
76 typedef struct Attachment
80 variableLength MetaFile;
83 variableLength TransportFilename;
86 struct Attachment *next;
87 variableLength FileData;
88 variableLength IconData;
91 typedef struct _TNEFIOStruct
93 int (*InitProc) (struct _TNEFIOStruct *IO);
94 int (*ReadProc) (struct _TNEFIOStruct *IO, int size, int count, void *dest);
95 int (*CloseProc) (struct _TNEFIOStruct *IO);
118 variableLength subject;
121 char messageStatus[10];
122 char messageClass[50];
125 char conversationID[50];
128 Attachment starting_attach;
130 MAPIProps MapiProperties;
131 variableLength CodePage;
132 variableLength OriginalMessageClass;
133 variableLength Owner;
134 variableLength SentFor;
135 variableLength Delegate;
138 variableLength AidOwner;