Update SMTP to send from provider messages, and attachments
* Change Sender definition (remove old Message from API) and update
any existing calls through that API
* Rewrite SMTPSender to use provider messages
* Add attachments to RFC822Output
* Minor bugfixes in RFC822Output
* Unit tests
diff --git a/src/com/android/exchange/EasOutboxService.java b/src/com/android/exchange/EasOutboxService.java
index a64d490..cb3ea67 100644
--- a/src/com/android/exchange/EasOutboxService.java
+++ b/src/com/android/exchange/EasOutboxService.java
@@ -17,6 +17,7 @@
package com.android.exchange;
+import com.android.email.mail.MessagingException;
import com.android.email.mail.transport.Rfc822Output;
import com.android.email.provider.EmailContent.Mailbox;
import com.android.email.provider.EmailContent.Message;
@@ -57,7 +58,7 @@
* @param msgId the _id of the message to send
* @throws IOException
*/
- void sendMessage(File cacheDir, long msgId) throws IOException {
+ void sendMessage(File cacheDir, long msgId) throws IOException, MessagingException {
File tmpFile = File.createTempFile("eas_", "tmp", cacheDir);
// Write the output to a temporary file
try {