📄 mail.h
字号:
/* * mail.h -- declarations for mail handling (prsing headers, etc.) * * Authors: Michael Jochum <e9725005@stud3.tuwien.ac.at> * * TODO: * * Fixes: * * For license terms, see the file COPYING in the project directory. */#ifndef MAIL__#define MAIL__#include <glib.h>typedef struct { /* some fileds of the parsed message header */ gchar *from; gchar *to; gchar *subject; /* message */ gchar *head; /* the whole header */ gchar *body; /* the body of the mail */ /* pop3 fields */ gchar *uid; /* RFC1939 for details */ guint msg_num; /* status bits */ gboolean new; /* set if message is new */ gboolean on_server; /* set if the mail is still on the pop3 server */} GSmsMail;gchar *mail_get_field(const gchar *header, const gchar *field_name);GSmsMail *mail_constructor( const gchar *from, const gchar *to, const gchar *subject, const gchar *body);void mail_destructor(GSmsMail *pm);/***** functions for accessing the mailbox (returned eg from pop3) *****//* GList *gsms_mail_get_first(GList *mb); */#define gsms_mail_get_first(mails) g_list_first(mails)GList *gsms_mail_get_first_new(GList *mails);/* GList *gsms_mail_get_last(GList *mails); */#define gsms_mail_get_last(mails) g_list_last(mails) /* GList *gsms_mail_get_next(GList *mails); */#define gsms_mail_get_next(mails) g_list_next(mails) GList *gsms_mail_get_next_new(GList *mails);/* GList *gsms_mail_get_prev(GList *mails); */#define gsms_mail_get_previous(mails) g_list_next_previous(mails)/* Mail *gsms_mail_get_mail(GList *mails); */#define gsms_mail_get_mail(mails) ((mails)->data)GList * gsms_mailbox_free(GList *mails);#endif /* MAIL__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -