1 /* 2 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com) 3 * Copyright (C) 2008 - Diego Escalante Urrelo 4 * Copyright (C) 2018 Red Hat, Inc. (www.redhat.com) 5 * 6 * This program is free software: you can redistribute it and/or modify it 7 * under the terms of the GNU General Public License as published by 8 * the Free Software Foundation. 9 * 10 * This program is distributed in the hope that it will be useful, but 11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 13 * for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * Authors: 19 * Diego Escalante Urrelo <diegoe@gnome.org> 20 * Bharath Acharya <abharath@novell.com> 21 */ 22 23 #ifndef E_MAIL_TEMPLATES_H 24 #define E_MAIL_TEMPLATES_H 25 26 #include <camel/camel.h> 27 28 G_BEGIN_DECLS 29 30 CamelMimeMessage * 31 e_mail_templates_apply_sync (CamelMimeMessage *source_message, 32 CamelFolder *source_folder, 33 const gchar *source_message_uid, 34 CamelFolder *templates_folder, 35 const gchar *templates_message_uid, 36 GCancellable *cancellable, 37 GError **error); 38 void e_mail_templates_apply (CamelMimeMessage *source_message, 39 CamelFolder *source_folder, 40 const gchar *source_message_uid, 41 CamelFolder *templates_folder, 42 const gchar *templates_message_uid, 43 GCancellable *cancellable, 44 GAsyncReadyCallback callback, 45 gpointer user_data); 46 CamelMimeMessage * 47 e_mail_templates_apply_finish (GObject *source_object, 48 GAsyncResult *result, 49 GError **error); 50 51 G_END_DECLS 52 53 #endif /* E_MAIL_TEMPLATES_H */ 54