/** * @see EmailChecker#getLastMailCheckTime() */ public Date getLastMailCheckTime() { return I2PBote.getInstance().getLastMailCheckTime(); }
public static boolean tryPassword(String password) throws IOException, GeneralSecurityException { byte[] passwordBytes = password.getBytes(); try { I2PBote.getInstance().tryPassword(passwordBytes); return true; } catch (PasswordException e) { return false; } }
public static void clearPassword() { I2PBote.getInstance().clearPassword(); }
public static EmailFolder getMailFolder(String folderName) { if ("Inbox".equalsIgnoreCase(folderName)) return I2PBote.getInstance().getInbox(); else if ("Outbox".equalsIgnoreCase(folderName)) return I2PBote.getInstance().getOutbox(); else if ("Sent".equalsIgnoreCase(folderName)) return I2PBote.getInstance().getSentFolder(); else if ("Trash".equalsIgnoreCase(folderName)) return I2PBote.getInstance().getTrashFolder(); else return null; }
/** @see {@link I2PBote#getWordListLocales() */ public List<String> getWordListLocales() throws UnsupportedEncodingException, IOException, URISyntaxException { return I2PBote.getInstance().getWordListLocales(); }
public Exception getConnectError() { return I2PBote.getInstance().getConnectError(); }
public Configuration getConfiguration() { return I2PBote.getInstance().getConfiguration(); }
public List<File> getUndecryptableFiles() throws PasswordException, IOException, GeneralSecurityException { return I2PBote.getInstance().getUndecryptableFiles(); }
public NetworkStatus getNetworkStatus() { return I2PBote.getInstance().getNetworkStatus(); }
public AddressBook getAddressBook() throws PasswordException { return I2PBote.getInstance().getAddressBook(); }
public static boolean isCheckingForMail(EmailIdentity identity) { return I2PBote.getInstance().isCheckingForMail(identity); }
public boolean isNewMailReceived() { return I2PBote.getInstance().newMailReceived(); }
public int getNumIncompleteEmails() { return I2PBote.getInstance().getNumIncompleteEmails(); }
public void setSmtpEnabled(boolean enabled) { I2PBote.getInstance().setSmtpEnabled(enabled); }
public boolean isPasswordInCache() { return I2PBote.getInstance().isPasswordInCache(); }
/** * Moves an email from the folder denoted by <code>folderName</code> to * the trash folder. If <code>folderName</code> is the name of the trash * folder, the email is deleted. * @param folderName * @param messageId The message ID of the email to delete / move to the trash */ public static boolean deleteEmail(String folderName, String messageId) { EmailFolder folder = getMailFolder(folderName); return I2PBote.getInstance().deleteEmail(folder, messageId); }
public static EmailStatus getEmailStatus(Email email) { return I2PBote.getInstance().getOutbox().getStatus(email); }
public static String getFingerprint(Contact contact, String localeCode) throws GeneralSecurityException { String[] wordList = I2PBote.getInstance().getWordList(localeCode); Fingerprint fingerprint = contact.getFingerprint(); return fingerprint==null ? null : fingerprint.getWords(wordList); }
public static String getFingerprint(EmailIdentity identity, String localeCode) throws GeneralSecurityException { String[] wordList = I2PBote.getInstance().getWordList(localeCode); Fingerprint fingerprint = identity.getFingerprint(); return fingerprint==null ? null : fingerprint.getWords(wordList); }
private static AddressDisplayFilter getAddressDisplayFilter() throws PasswordException { Identities identities = I2PBote.getInstance().getIdentities(); if (ADDRESS_DISPLAY_FILTER == null) ADDRESS_DISPLAY_FILTER = new AddressDisplayFilter(identities, getInstance().getAddressBook()); return ADDRESS_DISPLAY_FILTER; }