Commit 9c0ae79f 9c0ae79f91519e50360bd8cc5ef6c683cb5501e1 by Alain Magloire

Stubs for Simple Message API (MS)

1 parent f983a03b
1 /* GNU mailutils - a suite of utilities for electronic mail
2 Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Library Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
7 any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17
18
19 #include <mailutils/mapi.h>
20
21 ULONG
22 MAPIAddress (LHANDLE lhSession, ULONG ulUIParam, LPTSTR lpszCaption,
23 ULONG nEditFields, LPTSTR lpszLabels, ULONG nRecips,
24 lpMapiRecipDesc lpRecips, FLAGS flFlags, ULONG ulReserved,
25 LPULONG lpnNewRecips, lpMapiRecipDesc * lppNewRecips)
26 {
27 return MAPI_E_NOT_SUPPORTED;
28 }
1 /* GNU mailutils - a suite of utilities for electronic mail
2 Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Library Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
7 any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17
18
19 #include <mailutils/mapi.h>
20
21 ULONG
22 MAPIDeleteMail (LHANDLE lhSession, ULONG ulUIParam, LPTSTR lpszMessageID,
23 FLAGS flFlags, ULONG ulReserved)
24 {
25 return MAPI_E_NOT_SUPPORTED;
26 }
1 /* GNU mailutils - a suite of utilities for electronic mail
2 Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Library Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
7 any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17
18
19 #include <mailutils/mapi.h>
20
21 ULONG
22 MAPIDetails (LHANDLE lhSession, ULONG ulUIParam, lpMapiRecipDesc lpRecip,
23 FLAGS flFlags, ULONG ulReserved)
24 {
25 return MAPI_E_NOT_SUPPORTED;
26 }
1 /* GNU mailutils - a suite of utilities for electronic mail
2 Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Library Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
7 any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17
18
19 #include <mailutils/mapi.h>
20
21 ULONG
22 MAPIFindNext (LHANDLE lhSession, ULONG ulUIParam, LPTSTR lpszMessageType,
23 LPTSTR lpszSeedMessageID, FLAGS flFlags, ULONG ulReserved,
24 LPTSTR lpszMessageID)
25 {
26 return MAPI_E_NOT_SUPPORTED;
27 }
28
1 /* GNU mailutils - a suite of utilities for electronic mail
2 Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Library Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
7 any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17
18
19 #include <mailutils/mapi.h>
20
21 ULONG
22 MAPIFreeBuffer (LPVOID lpBuffer)
23 {
24 return MAPI_E_NOT_SUPPORTED;
25 }
26
1 /* GNU mailutils - a suite of utilities for electronic mail
2 Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Library Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
7 any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17
18
19 #include <mailutils/mapi.h>
20
21 ULONG
22 MAPILogoff (LHANDLE lhSession, ULONG ulUIParam, FLAGS flFlags,
23 ULONG ulReserved)
24 {
25 return MAPI_E_NOT_SUPPORTED;
26 }
27
1 /* GNU mailutils - a suite of utilities for electronic mail
2 Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Library Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
7 any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17
18
19 #include <mailutils/mapi.h>
20
21 ULONG
22 MAPILogon (ULONG ulUIParam, LPTSTR lpszProfileName, LPTSTR lpszPassword,
23 FLAGS flFlags, ULONG ulReserved, LPLHANDLE lplhSession)
24 {
25 return MAPI_E_NOT_SUPPORTED;
26 }
27
1 /* GNU mailutils - a suite of utilities for electronic mail
2 Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Library Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
7 any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17
18
19 #include <mailutils/mapi.h>
20
21 ULONG
22 MAPIReadMail (LHANDLE lhSession, ULONG ulUIParam,
23 LPTSTR lpszMessageID, FLAGS flFlags, ULONG ulReserved,
24 lpMapiMessage * lppMessage)
25 {
26 return MAPI_E_NOT_SUPPORTED;
27 }
1 /* GNU mailutils - a suite of utilities for electronic mail
2 Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Library Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
7 any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17
18
19 #include <mailutils/mapi.h>
20
21 ULONG
22 MAPISaveMail (LHANDLE lhSession, ULONG ulUIParam, lpMapiMessage lpMessage,
23 FLAGS flFlags, ULONG ulReserved, LPTSTR lpszMessageID)
24 {
25 return MAPI_E_NOT_SUPPORTED;
26 }
1 /* GNU mailutils - a suite of utilities for electronic mail
2 Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Library Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
7 any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17
18
19 #include <mailutils/mapi.h>
20
21 ULONG
22 MAPISendDocuments (ULONG ulUIParam, LPTSTR lpszDelimChar,
23 LPTSTR lpszFullPaths, LPTSTR lpszFileNames,
24 ULONG ulReserved)
25 {
26 return MAPI_E_NOT_SUPPORTED;
27 }
28
1 /* GNU mailutils - a suite of utilities for electronic mail
2 Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Library Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
7 any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17
18
19 #include <mailutils/mapi.h>
20
21 ULONG
22 MAPISendMail (LHANDLE lhSession, ULONG ulUIParam, lpMapiMessage lpMessage,
23 FLAGS flFlags, ULONG ulReserved)
24 {
25 return MAPI_E_NOT_SUPPORTED;
26 }
27
1 # Use automake to process this file -*-Makefile-*-
2
3 AUTOMAKE_OPTIONS = ../lib/ansi2knr
4
5 INCLUDES = -I${top_srcdir}/include -I${top_srcdir}/mailbox/include
6
7 SUBDIRS = include
8
9 lib_LTLIBRARIES = libmapi.la
10
11 /* FIXME: This should be part of the default includes. */
12 EXTRA_DIST = mapi.h
13
14 libmapi_LDADD = ../mailbox/libmailbox.la ../lib/libmailutils.a
15
16 libmapi_la_SOURCES = \
17 MAPIAddress.c \
18 MAPIDeleteMail.c \
19 MAPIDetails.c \
20 MAPIFindNext.c \
21 MAPIFreeBuffer.c \
22 MAPILogoff.c \
23 MAPILogon.c \
24 MAPIReadMail.c \
25 MAPISaveMail.c \
26 MAPISendDocuments.c \
27 MAPISendMail.c
28
29 libmapi_la_LDFLAGS = -version-info 0:0:0
1 /* GNU mailutils - a suite of utilities for electronic mail
2 Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Library Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
7 any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17
18 #ifndef _MAPI_H
19 #define _MAPI_H
20
21 #ifdef __cplusplus
22 extern "C"
23 {
24 #endif
25
26 typedef char * LPTSTR;
27 typedef void * LPVOID;
28
29 typedef unsigned long ULONG;
30 typedef unsigned long * LPULONG;
31 typedef unsigned long FLAGS;
32 typedef unsigned long LHANDLE;
33 typedef unsigned long * LPLHANDLE;
34
35 #define MAPI_OLE 1
36 #define MAPI_OLE_STATIC 2
37
38 /* Constant values. */
39 #define MAPI_ORIG 0
40 #define MAPI_TO 1
41 #define MAPI_CC 2
42 #define MAPI_BCC 3
43
44 /* FIXME: What are the values ? */
45 #define MAPI_RECEIPT_REQUESTED
46 #define MAPI_SENT
47 #define MAPI_UNREAD
48
49 #define MAPI_FORCE_DOWNLOAD
50 #define MAPI_NEW_SESSION
51 #define MAPI_LOGON_UI
52 #define MAPI_PASSWORD_UI
53
54 #define MAPI_GUARANTEE_FIFO
55 #define MAPI_LONG_MSGID
56 #define MAPI_UNREAD_ONLY
57
58 #define MAPI_BODY_AS_FILE
59 #define MAPI_ENVELOPE_ONLY
60 #define MAPI_PEEK
61 #define MAPI_SUPPRESS_ATTACH
62
63 #define MAPI_AB_NOMODIFY
64 #define MAPI_LOGON_UI
65 #define MAPI_NEW_SESSION
66 #define MAPI_DIALOG
67
68 typedef struct
69 {
70 ULONG ulReserved;
71 ULONG flFlags;
72 ULONG nPosition;
73 LPTSTR lpszPathName;
74 LPTSTR lpszFileName;
75 LPVOID lpFileType;
76 } MapiFileDesc, *lpMapiFileDesc;
77
78 typedef struct
79 {
80 ULONG ulReserved;
81 ULONG ulRecipClass;
82 LPTSTR lpszName;
83 LPTSTR lpszAddress;
84 ULONG ulEIDSize;
85 LPVOID lpEntryID;
86 } MapiRecipDesc, *lpMapiRecipDesc;
87
88
89 typedef struct
90 {
91 ULONG ulReserved;
92 LPTSTR lpszSubject;
93 LPTSTR lpszNoteText;
94 LPTSTR lpszMessageType;
95 LPTSTR lpszDateReceived;
96 LPTSTR lpszConversationID;
97 FLAGS flFlags;
98 lpMapiRecipDesc lpOriginator;
99 ULONG nRecipCount;
100 lpMapiRecipDesc lpRecips;
101 ULONG nFileCount;
102 lpMapiFileDesc lpFiles;
103 } MapiMessage, *lpMapiMessage;
104
105 ULONG MAPILogon (ULONG ulUIParam, LPTSTR lpszProfileName,
106 LPTSTR lpszPassword, FLAGS flFlags, ULONG ulReserved,
107 LPLHANDLE lplhSession);
108
109
110 ULONG MAPILogoff (LHANDLE lhSession, ULONG ulUIParam, FLAGS flFlags,
111 ULONG ulReserved);
112
113 ULONG MAPIFreeBuffer (LPVOID lpBuffer);
114
115 ULONG MAPISendMail (LHANDLE lhSession, ULONG ulUIParam,
116 lpMapiMessage lpMessage, FLAGS flFlags,
117 ULONG ulReserved);
118
119 ULONG MAPISendDocuments (ULONG ulUIParam, LPTSTR lpszDelimChar,
120 LPTSTR lpszFullPaths, LPTSTR lpszFileNames,
121 ULONG ulReserved);
122
123 ULONG MAPIFindNext (LHANDLE lhSession, ULONG ulUIParam,
124 LPTSTR lpszMessageType, LPTSTR lpszSeedMessageID,
125 FLAGS flFlags, ULONG ulReserved, LPTSTR lpszMessageID);
126
127 ULONG MAPIReadMail (LHANDLE lhSession, ULONG ulUIParam,
128 LPTSTR lpszMessageID, FLAGS flFlags, ULONG ulReserved,
129 lpMapiMessage * lppMessage);
130
131
132 ULONG MAPISaveMail (LHANDLE lhSession, ULONG ulUIParam,
133 lpMapiMessage lpMessage, FLAGS flFlags,
134 ULONG ulReserved, LPTSTR lpszMessageID);
135
136 ULONG MAPIDeleteMail (LHANDLE lhSession, ULONG ulUIParam,
137 LPTSTR lpszMessageID, FLAGS flFlags,
138 ULONG ulReserved);
139
140 ULONG MAPIAddress (LHANDLE lhSession, ULONG ulUIParam, LPTSTR lpszCaption,
141 ULONG nEditFields, LPTSTR lpszLabels, ULONG nRecips,
142 lpMapiRecipDesc lpRecips, FLAGS flFlags,
143 ULONG ulReserved, LPULONG lpnNewRecips,
144 lpMapiRecipDesc * lppNewRecips);
145
146 ULONG MAPIDetails (LHANDLE lhSession, ULONG ulUIParam,
147 lpMapiRecipDesc lpRecip, FLAGS flFlags,
148 ULONG ulReserved);
149
150 ULONG MAPIResolveName (LHANDLE lhSession, ULONG ulUIParam, LPTSTR lpszName,
151 FLAGS flFlags, ULONG ulReserved,
152 lpMapiRecipDesc * lppRecip);
153
154 #define SUCCESS_SUCCESS 0
155 #define MAPI_USER_ABORT 1
156 #define MAPI_E_FAILURE 2
157 #define MAPI_E_LOGIN_FAILURE 3
158 #define MAPI_E_DISK_FULL 4
159 #define MAPI_E_INSUFFICIENT_MEMORY 5
160 #define MAPI_E_ACCESS_DENIED 6
161 #define MAPI_E_TOO_MANY_SESSIONS 8
162 #define MAPI_E_TOO_MANY_FILES 9
163 #define MAPI_E_TOO_MANY_RECIPIENTS 10
164 #define MAPI_E_ATTACHMENT_NOT_FOUND 11
165 #define MAPI_E_ATTACHMENT_OPEN_FAILURE 12
166 #define MAPI_E_ATTACHMENT_WRITE_FAILURE 13
167 #define MAPI_E_UNKNOWN_RECIPIENT 14
168 #define MAPI_E_BAD_RECIPTYPE 15
169 #define MAPI_E_NO_MESSAGES 16
170 #define MAPI_E_INVALID_MESSAGE 17
171 #define MAPI_E_TEXT_TOO_LARGE 18
172 #define MAPI_E_INVALID_SESSION 19
173 #define MAPI_E_TYPE_NOT_SUPPORTED 20
174 #define MAPI_E_AMBIGUOUS_RECIPIENT 21
175 #define MAPI_E_MESSAGE_IN_USE 22
176 #define MAPI_E_NETWORK_FAILURE 23
177 #define MAPI_E_INVALID_EDITFIELDS 24
178 #define MAPI_E_INVALID_RECIPS 25
179 #define MAPI_E_NOT_SUPPORTED 26
180
181 #ifdef __cplusplus
182 }
183 #endif
184
185 #endif /* _MAPI_H */