From f305df150b1d15ea3cbd0dae350fc90361d63e8f Mon Sep 17 00:00:00 2001 From: str4d Date: Sat, 1 Mar 2014 00:15:31 +0000 Subject: [PATCH] Stubbed out IMAP and SMTP --- botejars/custom_rules.xml | 31 +++++++++++++++++++++++++++--- project.properties | 1 - src/i2p/bote/imap/ImapService.java | 27 ++++++++++++++++++++++++++ src/i2p/bote/smtp/SmtpService.java | 25 ++++++++++++++++++++++++ 4 files changed, 80 insertions(+), 4 deletions(-) create mode 100644 src/i2p/bote/imap/ImapService.java create mode 100644 src/i2p/bote/smtp/SmtpService.java diff --git a/botejars/custom_rules.xml b/botejars/custom_rules.xml index e439a6b..3ec6b40 100644 --- a/botejars/custom_rules.xml +++ b/botejars/custom_rules.xml @@ -12,6 +12,7 @@ + @@ -66,7 +67,7 @@ - + @@ -77,9 +78,33 @@ + + + + + + + + + + + + + + + + + - - + + + + + + + + diff --git a/project.properties b/project.properties index 2987131..83a67be 100644 --- a/project.properties +++ b/project.properties @@ -10,7 +10,6 @@ # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt -dex.force.jumbo=true # Project target. target=android-19 # Bote libs diff --git a/src/i2p/bote/imap/ImapService.java b/src/i2p/bote/imap/ImapService.java new file mode 100644 index 0000000..49d0b8f --- /dev/null +++ b/src/i2p/bote/imap/ImapService.java @@ -0,0 +1,27 @@ +package i2p.bote.imap; + +import org.apache.commons.configuration.ConfigurationException; + +import i2p.bote.Configuration; +import i2p.bote.fileencryption.PasswordVerifier; +import i2p.bote.folder.EmailFolderManager; + +/** + * Stubbed-out ImapService + */ +public class ImapService { + public ImapService(Configuration configuration, final PasswordVerifier passwordVerifier, EmailFolderManager folderManager) throws ConfigurationException { + } + + public boolean isStarted() { + return false; + } + + public boolean start() { + return false; + } + + public boolean stop() { + return true; + } +} diff --git a/src/i2p/bote/smtp/SmtpService.java b/src/i2p/bote/smtp/SmtpService.java new file mode 100644 index 0000000..ba4e01f --- /dev/null +++ b/src/i2p/bote/smtp/SmtpService.java @@ -0,0 +1,25 @@ +package i2p.bote.smtp; + +import java.net.UnknownHostException; + +import i2p.bote.Configuration; +import i2p.bote.MailSender; +import i2p.bote.fileencryption.PasswordVerifier; + +/** + * Stubbed-out SmtpService + */ +public class SmtpService { + public SmtpService(Configuration configuration, PasswordVerifier passwordVerifier, MailSender mailSender) throws UnknownHostException { + } + + public boolean isRunning() { + return false; + } + + public void start() { + } + + public void stop() { + } +}