c41c47fa07
* Create logic to detect upsyncable messages in Sent * Note: Drafts is now local only for IMAP - no sync, either way * Rewrite MessageController.processPendingAppend for Provider world * Write provider message -> legacy message converter * Fixed bug in IMAP APPEND (it was not picking the right UID for the uploaded message.) * Better handling of server internaldate * Add constants for new X-Android-Body-Quoted-Part header * Add EmailContent routines to get each of the 5 parts of the body * Remove "Load more" from unsynced message lists * Add toString to MimeHeader for debug support Bug # 2097471 TODO (next CL): Upload attachments records too Change-Id: I209182f5adc6b6696919f559e3cbbdd58b3eed3a
126 lines
2.6 KiB
Java
126 lines
2.6 KiB
Java
/*
|
|
* Copyright (C) 2009 The Android Open Source Project
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
package com.android.email.mail;
|
|
|
|
public class MockFolder extends Folder {
|
|
|
|
@Override
|
|
public void appendMessages(Message[] messages) {
|
|
}
|
|
|
|
@Override
|
|
public void close(boolean expunge) {
|
|
}
|
|
|
|
@Override
|
|
public void copyMessages(Message[] msgs, Folder folder,
|
|
MessageUpdateCallbacks callbacks) {
|
|
}
|
|
|
|
@Override
|
|
public boolean canCreate(FolderType type) {
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
public boolean create(FolderType type) {
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
public void delete(boolean recurse) {
|
|
}
|
|
|
|
@Override
|
|
public boolean exists() {
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
public Message[] expunge() {
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public void fetch(Message[] messages, FetchProfile fp, MessageRetrievalListener listener) {
|
|
}
|
|
|
|
@Override
|
|
public Message getMessage(String uid) {
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public int getMessageCount() {
|
|
return 0;
|
|
}
|
|
|
|
@Override
|
|
public Message[] getMessages(int start, int end, MessageRetrievalListener listener) {
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public Message[] getMessages(MessageRetrievalListener listener) {
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public Message[] getMessages(String[] uids, MessageRetrievalListener listener) {
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public OpenMode getMode() {
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public String getName() {
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public Flag[] getPermanentFlags() {
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public int getUnreadMessageCount() {
|
|
return 0;
|
|
}
|
|
|
|
@Override
|
|
public boolean isOpen() {
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
public void open(OpenMode mode, PersistentDataCallbacks callbacks) {
|
|
}
|
|
|
|
@Override
|
|
public void setFlags(Message[] messages, Flag[] flags, boolean value) {
|
|
}
|
|
|
|
@Override
|
|
public Message createMessage(String uid) {
|
|
return null;
|
|
}
|
|
|
|
}
|