1 /*
2  * This program is free software; you can redistribute it and/or modify it
3  * under the terms of the GNU Lesser General Public License as published by
4  * the Free Software Foundation.
5  *
6  * This program is distributed in the hope that it will be useful, but
7  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
8  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
9  * for more details.
10  *
11  * You should have received a copy of the GNU Lesser General Public License
12  * along with this program; if not, see <http://www.gnu.org/licenses/>.
13  *
14  *
15  * Authors:
16  *		Peter Williams <peterw@ximian.com>
17  *
18  * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
19  *
20  */
21 
22 #if !defined (__LIBEMAIL_ENGINE_H_INSIDE__) && !defined (LIBEMAIL_ENGINE_COMPILATION)
23 #error "Only <libemail-engine/libemail-engine.h> should be included directly."
24 #endif
25 
26 #ifndef MAIL_TOOLS_H
27 #define MAIL_TOOLS_H
28 
29 #include <camel/camel.h>
30 
31 /* Does a camel_movemail into the local movemail folder
32  * and returns the path to the new movemail folder that was created. which shoudl be freed later */
33 gchar *		mail_tool_do_movemail		(CamelStore *store,
34 						 GError **error);
35 
36 CamelNameValueArray *
37 		mail_tool_remove_xevolution_headers
38 						(CamelMimeMessage *message);
39 void		mail_tool_restore_xevolution_headers
40 						(CamelMimeMessage *message,
41 						 CamelNameValueArray *headers);
42 
43 /* Generates the subject for a message forwarding @msg */
44 gchar *		mail_tool_generate_forward_subject
45 						(CamelMimeMessage *msg);
46 
47 /* Make a message into an attachment */
48 CamelMimePart *	mail_tool_make_message_attachment
49 						(CamelMimeMessage *message);
50 
51 #endif
52