b3894837243e73428214227bdb3f8e370998bdee
[modest] / src / modest-tny-msg-actions.h
1 /* modest-tny-msg-actions.h */
2 /* insert (c)/licensing information) */
3
4 #ifndef __MODEST_TNY_MSG_ACTIONS_H__
5 #define __MODEST_TNY_MSG_ACTIONS_H__
6
7 /* public */
8
9 /**
10  * modest_tny_msg_actions_quote:
11  * @self: the message to quote
12  * @from: the original sender of the message
13  * @sent_date: the date the original message was sent
14  * @limit: characters per line limit for the quoted message
15  * @to_quote: a string to quote instead of the message body
16  * 
17  * reply-quotes a message or @to_quote if it's not NULL.
18
19  * Note: @from and @sent_date may be eliminated from the API in future versions
20  * 
21  * Returns: a newly allocated string containing the quoted message
22  */
23
24 gchar *modest_tny_msg_actions_quote (const TnyMsgIface * self,
25                                      const gchar * from,
26                                      time_t sent_date,
27                                      gint limit, const gchar *to_quote);
28
29 /**
30  * modest_tny_msg_actions_find_body_part:
31  * @self: a message
32  * @want_html: prefer HTML-part when there are multiple body parts?
33  * 
34  * search a message for a body part 
35  * 
36  * Returns: the TnyMsgMimePartIface for the found part, or NULL if no matching part is found
37  */
38                                          
39 TnyMsgMimePartIface *modest_tny_msg_actions_find_body_part (TnyMsgIface * self,
40                                                             gboolean want_html);
41
42 #endif /* __MODEST_TNY_MSG_ACTIONS_H__ */