From a03f480ed4f9fe276384e2105ffd4c1bde628c77 Mon Sep 17 00:00:00 2001 From: Sebastian Reichel Date: Fri, 10 May 2013 20:29:25 +0200 Subject: external mail interface should not depend on GMime --- src/mail/mailer-interface.vala | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/mail/mailer-interface.vala b/src/mail/mailer-interface.vala index 43ce244..54b4865 100644 --- a/src/mail/mailer-interface.vala +++ b/src/mail/mailer-interface.vala @@ -28,7 +28,7 @@ public interface Mail : Object { public abstract string reply_to { owned get; set; } public abstract MailDate date { owned get; set; } - public abstract void add_recipient(MailContact contact, GMime.RecipientType type = GMime.RecipientType.TO) throws IOError; + public abstract void add_recipient(MailContact contact, RecipientType type = RecipientType.TO) throws IOError; public abstract void set_main_part(string text, MessageType type = MessageType.PLAIN) throws IOError; public abstract void add_attachment(string filename, string content_type, uint8[] data) throws IOError; } @@ -58,3 +58,9 @@ public enum MessageType { PLAIN, HTML } + +public enum RecipientType { + TO, + CC, + BCC +} -- cgit v1.2.3