1 /*
2  * e-mail-formatter-utils.h
3  *
4  * This program is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
11  * for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program; if not, see <http://www.gnu.org/licenses/>.
15  *
16  */
17 
18 #ifndef E_MAIL_FORMATTER_UTILS_H_
19 #define E_MAIL_FORMATTER_UTILS_H_
20 
21 #include <camel/camel.h>
22 #include <em-format/e-mail-formatter.h>
23 
24 G_BEGIN_DECLS
25 
26 void		e_mail_formatter_format_header (EMailFormatter *formatter,
27 						GString *buffer,
28 						const gchar *header_name,
29 						const gchar *header_value,
30 						guint32 flags,
31 						const gchar *charset);
32 
33 void		e_mail_formatter_format_text_header
34 						(EMailFormatter *formatter,
35 						 GString *buffer,
36 						 const gchar *label,
37 						 const gchar *value,
38 						 guint32 flags);
39 
40 gchar *		e_mail_formatter_format_address (EMailFormatter *formatter,
41 						 GString *out,
42 						 struct _camel_header_address *a,
43 						 const gchar *field,
44 						 gboolean no_links,
45 						 gboolean elipsize);
46 
47 void		e_mail_formatter_canon_header_name
48 						(gchar *name);
49 
50 GList *		e_mail_formatter_find_rfc822_end_iter
51 						(GList *rfc822_start_iter);
52 
53 gchar *		e_mail_formatter_parse_html_mnemonics
54 						(const gchar *label,
55 						 gchar **out_access_key);
56 
57 void		e_mail_formatter_format_security_header
58 						(EMailFormatter *formatter,
59 						 EMailFormatterContext *context,
60 						 GString *buffer,
61 						 EMailPart *part,
62 						 guint32 flags);
63 
64 G_END_DECLS
65 
66 #endif /* E_MAIL_FORMATTER_UTILS_H_ */
67