* more private data for the editor window: identity and transport
[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, gchar *to_quote);
28
29 /**
30  * modest_tny_msg_actions_find_body_part:
31  * @self: a message
32  * @mime_type: the mime type to find
33  * 
34  * search a message for a body part of type @mime_type. @mime_type is a string
35  * like "text/plain".
36  * 
37  * Returns: the TnyMsgMimePartIface for the found part, or NULL if no matching part is found
38  */
39                                          
40 TnyMsgMimePartIface *modest_tny_msg_actions_find_body_part (TnyMsgIface * self,
41                                                             const gchar * mime_type);
42
43 #endif /* __MODEST_TNY_MSG_ACTIONS_H__ */