Remove giant commented out method - that's what we have version control history for
This commit is contained in:
parent
854da2664c
commit
9a40457a2a
1 changed files with 0 additions and 93 deletions
|
@ -2698,99 +2698,6 @@ public class MessagingController implements Runnable
|
|||
});
|
||||
}
|
||||
|
||||
// public void loadMessageForViewSynchronous(final Account account, final String folder, final String uid,
|
||||
// MessagingListener listener) {
|
||||
//
|
||||
// for (MessagingListener l : getListeners()) {
|
||||
// l.loadMessageForViewStarted(account, folder, uid);
|
||||
// }
|
||||
//
|
||||
// LocalFolder localFolder = null;
|
||||
// Folder remoteFolder = null;
|
||||
// try {
|
||||
// Store localStore = Store.getInstance(account.getLocalStoreUri(), mApplication);
|
||||
// localFolder = (LocalFolder) localStore.getFolder(folder);
|
||||
// localFolder.open(OpenMode.READ_WRITE);
|
||||
//
|
||||
// Message message = localFolder.getMessage(uid);
|
||||
//
|
||||
// for (MessagingListener l : getListeners()) {
|
||||
// l.loadMessageForViewHeadersAvailable(account, folder, uid, message);
|
||||
// }
|
||||
//
|
||||
// if (!message.isSet(Flag.X_DOWNLOADED_FULL)) {
|
||||
// Store remoteStore = Store.getInstance(account.getStoreUri(), mApplication);
|
||||
// remoteFolder = remoteStore.getFolder(folder);
|
||||
// remoteFolder.open(OpenMode.READ_WRITE);
|
||||
//
|
||||
// // Get the remote message and fully download it
|
||||
// Message remoteMessage = remoteFolder.getMessage(uid);
|
||||
// FetchProfile fp = new FetchProfile();
|
||||
// fp.add(FetchProfile.Item.BODY);
|
||||
// remoteFolder.fetch(new Message[]{remoteMessage}, fp, null);
|
||||
//
|
||||
// // Store the message locally and load the stored message into memory
|
||||
// localFolder.appendMessages(new Message[]{remoteMessage});
|
||||
// message = localFolder.getMessage(uid);
|
||||
// localFolder.fetch(new Message[]{message}, fp, null);
|
||||
//
|
||||
// // Mark that this message is now fully synched
|
||||
// message.setFlag(Flag.X_DOWNLOADED_FULL, true);
|
||||
// }
|
||||
// else {
|
||||
// FetchProfile fp = new FetchProfile();
|
||||
// fp.add(FetchProfile.Item.ENVELOPE);
|
||||
// fp.add(FetchProfile.Item.BODY);
|
||||
// localFolder.fetch(new Message[]{
|
||||
// message
|
||||
// }, fp, null);
|
||||
// }
|
||||
//
|
||||
// if (!message.isSet(Flag.SEEN)) {
|
||||
// markMessageRead(account, localFolder, message, true);
|
||||
// }
|
||||
//
|
||||
// for (MessagingListener l : getListeners()) {
|
||||
// l.loadMessageForViewBodyAvailable(account, folder, uid, message);
|
||||
// }
|
||||
// if (listener != null) {
|
||||
// listener.loadMessageForViewBodyAvailable(account, folder, uid, message);
|
||||
// }
|
||||
//
|
||||
// for (MessagingListener l : getListeners()) {
|
||||
// l.loadMessageForViewFinished(account, folder, uid, message);
|
||||
// }
|
||||
// if (listener != null) {
|
||||
// listener.loadMessageForViewFinished(account, folder, uid, message);
|
||||
// }
|
||||
// }
|
||||
// catch (Exception e) {
|
||||
// for (MessagingListener l : getListeners()) {
|
||||
// l.loadMessageForViewFailed(account, folder, uid, e.getMessage());
|
||||
// }
|
||||
// addErrorMessage(account, e);
|
||||
// }
|
||||
// finally {
|
||||
// if (localFolder!=null) {
|
||||
// try {
|
||||
// localFolder.close(false);
|
||||
// }
|
||||
// catch (MessagingException e) {
|
||||
// Log.w(K9.LOG_TAG, null, e);
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// if (remoteFolder!=null) {
|
||||
// try {
|
||||
// remoteFolder.close(false);
|
||||
// }
|
||||
// catch (MessagingException e) {
|
||||
// Log.w(K9.LOG_TAG, null, e);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }//loadMessageForViewSynchronous
|
||||
|
||||
/**
|
||||
* Attempts to load the attachment specified by part from the given account and message.
|
||||
* @param account
|
||||
|
|
Loading…
Reference in a new issue