aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-session-utils.h
blob: c59d27f335d41b4ee381b16dd4326cb29d19d61b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/*
 * e-mail-session-utils.h
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) version 3.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with the program; if not, see <http://www.gnu.org/licenses/>
 *
 */

#ifndef E_MAIL_SESSION_UTILS_H
#define E_MAIL_SESSION_UTILS_H

/* High-level operations with Evolution-specific policies. */

#include <mail/e-mail-session.h>

#define E_MAIL_ERROR (e_mail_error_quark ())

G_BEGIN_DECLS

typedef enum {
    E_MAIL_ERROR_POST_PROCESSING
} EMailError;

GQuark      e_mail_error_quark      (void) G_GNUC_CONST;
gboolean    e_mail_session_handle_draft_headers_sync
                        (EMailSession *session,
                         CamelMimeMessage *message,
                         GCancellable *cancellable,
                         GError **error);
void        e_mail_session_handle_draft_headers
                        (EMailSession *session,
                         CamelMimeMessage *message,
                         gint io_priority,
                         GCancellable *cancellable,
                         GAsyncReadyCallback callback,
                         gpointer user_data);
gboolean    e_mail_session_handle_draft_headers_finish
                        (EMailSession *session,
                         GAsyncResult *result,
                         GError **error);
gboolean    e_mail_session_handle_source_headers_sync
                        (EMailSession *session,
                         CamelMimeMessage *message,
                         GCancellable *cancellable,
                         GError **error);
void        e_mail_session_handle_source_headers
                        (EMailSession *session,
                         CamelMimeMessage *message,
                         gint io_priority,
                         GCancellable *cancellable,
                         GAsyncReadyCallback callback,
                         gpointer user_data);
gboolean    e_mail_session_handle_source_headers_finish
                        (EMailSession *session,
                         GAsyncResult *result,
                         GError **error);
void        e_mail_session_send_to      (EMailSession *session,
                         CamelMimeMessage *message,
                         const gchar *destination,
                         gint io_priority,
                         GCancellable *cancellable,
                         CamelFilterGetFolderFunc get_folder_func,
                         gpointer get_folder_data,
                         GAsyncReadyCallback callback,
                         gpointer user_data);
gboolean    e_mail_session_send_to_finish   (EMailSession *session,
                         GAsyncResult *result,
                         GError **error);
gboolean    e_mail_session_unsubscribe_folder_sync
                        (EMailSession *session,
                         const gchar *folder_uri,
                         GCancellable *cancellable,
                         GError **error);
void        e_mail_session_unsubscribe_folder
                        (EMailSession *session,
                         const gchar *folder_uri,
                         gint io_priority,
                         GCancellable *cancellable,
                         GAsyncReadyCallback callback,
                         gpointer user_data);
gboolean    e_mail_session_unsubscribe_folder_finish
                        (EMailSession *session,
                         GAsyncResult *result,
                         GError **error);

G_END_DECLS

#endif /* E_MAIL_SESSION_UTILS_H */
?id=9fbef2c45b9dda637fe075ec12b924521e028f42'>For perl@ owned ports:eadler2013-03-292-11/+3 * Convert a few remaining straglers from the unmaintined ports to pathfixeadler2013-03-293-6/+6 * Style: tab -> space.eadler2013-03-2926-26/+26 * Drop support for old versions of FreeBSD from unmaintained portseadler2013-03-281-4/+0 * Update to version 0.7.2pawel2013-03-286-39/+44 * - convert doc KNOB to optionsNGjgh2013-03-281-1/+3 * Mechanically convert unmaintained ports which use "gnomehack" to use "pathfix...eadler2013-03-2818-94/+49 * - Update to version 3.4.1pawel2013-03-284-39/+50 * Try to remove share/games since gnomehier doesn't own it anymore.kwm2013-03-272-0/+2 * Chase kdegames4 splitmakc2013-03-272-8/+6 * KDE/FreeBSD team presents KDE SC 4.10.1 ports!makc2013-03-27172-2130/+3303 * - Unbreak buildmiwi2013-03-271-1/+3 * - Fix plistmiwi2013-03-272-1/+2 * Reformat using 8-space wide tab in preparation for KDE SC 4.10 updatemakc2013-03-261-14/+14 * - Update to 0.8miwi2013-03-265-399/+15 * - Add global options (DOCS, NLS, etc) to the OPTIONS_DEFINE if it'smakc2013-03-251-1/+1 * - Update to version 112.2tijl2013-03-255-38/+59 * - remove empty OPTIONS_DEFAULTrene2013-03-251-1/+1 * Since the code which base gcc is unable to handle on i386 is in themadpilot2013-03-251-4/+3 * - fix build after shlib bump of xmlwrappdinoex2013-03-251-2/+2 * - Update to 0.4.0miwi2013-03-252-13/+22 * - Update to 0.20madpilot2013-03-255-5/+130 * LEGAL only indicates that the license is "restrictive" but does not make it c...eadler2013-03-25