summaryrefslogtreecommitdiffstats
path: root/src/mail
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2013-05-10 20:29:25 +0200
committerSebastian Reichel <sre@ring0.de>2013-05-10 20:29:25 +0200
commita03f480ed4f9fe276384e2105ffd4c1bde628c77 (patch)
tree684d91f3ad3138b7fbc86339cad00e0b3b77932b /src/mail
parent7f97a0781ebd3309809f67a12bb64f8a3655bc7a (diff)
downloadserial-barcode-scanner-a03f480ed4f9fe276384e2105ffd4c1bde628c77.tar.bz2
external mail interface should not depend on GMime
Diffstat (limited to 'src/mail')
-rw-r--r--src/mail/mailer-interface.vala8
1 files changed, 7 insertions, 1 deletions
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
+}