mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-30 05:02:26 -05:00
Grand insane rename, step 3
This commit is contained in:
parent
7051cf8cc0
commit
c00ec35921
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email;
|
package com.fsck.k9;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email;
|
package com.fsck.k9;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|
||||||
@ -10,11 +10,11 @@ import android.content.pm.PackageManager;
|
|||||||
import android.util.Config;
|
import android.util.Config;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
import com.android.email.activity.MessageCompose;
|
import com.fsck.k9.activity.MessageCompose;
|
||||||
import com.android.email.mail.internet.BinaryTempFileBody;
|
import com.fsck.k9.mail.internet.BinaryTempFileBody;
|
||||||
import com.android.email.mail.internet.MimeMessage;
|
import com.fsck.k9.mail.internet.MimeMessage;
|
||||||
import com.android.email.service.BootReceiver;
|
import com.fsck.k9.service.BootReceiver;
|
||||||
import com.android.email.service.MailService;
|
import com.fsck.k9.service.MailService;
|
||||||
|
|
||||||
public class Email extends Application {
|
public class Email extends Application {
|
||||||
public static final String LOG_TAG = "Email";
|
public static final String LOG_TAG = "Email";
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.email;
|
package com.fsck.k9;
|
||||||
|
|
||||||
import static android.provider.Contacts.ContactMethods.CONTENT_EMAIL_URI;
|
import static android.provider.Contacts.ContactMethods.CONTENT_EMAIL_URI;
|
||||||
import android.content.ContentResolver;
|
import android.content.ContentResolver;
|
||||||
@ -27,7 +27,7 @@ import android.view.View;
|
|||||||
import android.widget.ResourceCursorAdapter;
|
import android.widget.ResourceCursorAdapter;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
import com.android.email.mail.Address;
|
import com.fsck.k9.mail.Address;
|
||||||
|
|
||||||
public class EmailAddressAdapter extends ResourceCursorAdapter {
|
public class EmailAddressAdapter extends ResourceCursorAdapter {
|
||||||
public static final int NAME_INDEX = 1;
|
public static final int NAME_INDEX = 1;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
package com.android.email;
|
package com.fsck.k9;
|
||||||
|
|
||||||
import com.android.email.mail.Address;
|
import com.fsck.k9.mail.Address;
|
||||||
|
|
||||||
import android.util.Config;
|
import android.util.Config;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email;
|
package com.fsck.k9;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
* should not be modified by hand.
|
* should not be modified by hand.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.email;
|
package com.fsck.k9;
|
||||||
|
|
||||||
public final class Manifest {
|
public final class Manifest {
|
||||||
public static final class permission {
|
public static final class permission {
|
||||||
public static final String READ_ATTACHMENT="com.android.email.permission.READ_ATTACHMENT";
|
public static final String READ_ATTACHMENT="com.fsck.k9.permission.READ_ATTACHMENT";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email;
|
package com.fsck.k9;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
@ -15,23 +15,23 @@ import android.os.Process;
|
|||||||
import android.util.Config;
|
import android.util.Config;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
import com.android.email.mail.FetchProfile;
|
import com.fsck.k9.mail.FetchProfile;
|
||||||
import com.android.email.mail.Flag;
|
import com.fsck.k9.mail.Flag;
|
||||||
import com.android.email.mail.Folder;
|
import com.fsck.k9.mail.Folder;
|
||||||
import com.android.email.mail.Message;
|
import com.fsck.k9.mail.Message;
|
||||||
import com.android.email.mail.MessageRetrievalListener;
|
import com.fsck.k9.mail.MessageRetrievalListener;
|
||||||
import com.android.email.mail.MessagingException;
|
import com.fsck.k9.mail.MessagingException;
|
||||||
import com.android.email.mail.Part;
|
import com.fsck.k9.mail.Part;
|
||||||
import com.android.email.mail.Store;
|
import com.fsck.k9.mail.Store;
|
||||||
import com.android.email.mail.Transport;
|
import com.fsck.k9.mail.Transport;
|
||||||
import com.android.email.mail.Folder.FolderType;
|
import com.fsck.k9.mail.Folder.FolderType;
|
||||||
import com.android.email.mail.Folder.OpenMode;
|
import com.fsck.k9.mail.Folder.OpenMode;
|
||||||
import com.android.email.mail.internet.MimeHeader;
|
import com.fsck.k9.mail.internet.MimeHeader;
|
||||||
import com.android.email.mail.internet.MimeUtility;
|
import com.fsck.k9.mail.internet.MimeUtility;
|
||||||
import com.android.email.mail.store.LocalStore;
|
import com.fsck.k9.mail.store.LocalStore;
|
||||||
import com.android.email.mail.store.LocalStore.LocalFolder;
|
import com.fsck.k9.mail.store.LocalStore.LocalFolder;
|
||||||
import com.android.email.mail.store.LocalStore.LocalMessage;
|
import com.fsck.k9.mail.store.LocalStore.LocalMessage;
|
||||||
import com.android.email.mail.store.LocalStore.PendingCommand;
|
import com.fsck.k9.mail.store.LocalStore.PendingCommand;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Starts a long running (application) Thread that will run through commands
|
* Starts a long running (application) Thread that will run through commands
|
||||||
@ -67,11 +67,11 @@ public class MessagingController implements Runnable {
|
|||||||
private static final int MAX_SMALL_MESSAGE_SIZE = (25 * 1024);
|
private static final int MAX_SMALL_MESSAGE_SIZE = (25 * 1024);
|
||||||
|
|
||||||
private static final String PENDING_COMMAND_TRASH =
|
private static final String PENDING_COMMAND_TRASH =
|
||||||
"com.android.email.MessagingController.trash";
|
"com.fsck.k9.MessagingController.trash";
|
||||||
private static final String PENDING_COMMAND_MARK_READ =
|
private static final String PENDING_COMMAND_MARK_READ =
|
||||||
"com.android.email.MessagingController.markRead";
|
"com.fsck.k9.MessagingController.markRead";
|
||||||
private static final String PENDING_COMMAND_APPEND =
|
private static final String PENDING_COMMAND_APPEND =
|
||||||
"com.android.email.MessagingController.append";
|
"com.fsck.k9.MessagingController.append";
|
||||||
|
|
||||||
private static MessagingController inst = null;
|
private static MessagingController inst = null;
|
||||||
private BlockingQueue<Command> mCommands = new LinkedBlockingQueue<Command>();
|
private BlockingQueue<Command> mCommands = new LinkedBlockingQueue<Command>();
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
|
|
||||||
package com.android.email;
|
package com.fsck.k9;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
|
||||||
import com.android.email.mail.Folder;
|
import com.fsck.k9.mail.Folder;
|
||||||
import com.android.email.mail.Message;
|
import com.fsck.k9.mail.Message;
|
||||||
import com.android.email.mail.Part;
|
import com.fsck.k9.mail.Part;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the interface that MessagingController will use to callback to requesters. This class
|
* Defines the interface that MessagingController will use to callback to requesters. This class
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email;
|
package com.fsck.k9;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email;
|
package com.fsck.k9;
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* should not be modified by hand.
|
* should not be modified by hand.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.email;
|
package com.fsck.k9;
|
||||||
|
|
||||||
public final class R {
|
public final class R {
|
||||||
public static final class array {
|
public static final class array {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email;
|
package com.fsck.k9;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
@ -7,7 +7,7 @@ import java.io.InputStreamReader;
|
|||||||
import java.io.UnsupportedEncodingException;
|
import java.io.UnsupportedEncodingException;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
import com.android.email.codec.binary.Base64;
|
import com.fsck.k9.codec.binary.Base64;
|
||||||
|
|
||||||
import android.text.Editable;
|
import android.text.Editable;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.activity;
|
package com.fsck.k9.activity;
|
||||||
|
|
||||||
import android.app.AlertDialog;
|
import android.app.AlertDialog;
|
||||||
import android.app.Dialog;
|
import android.app.Dialog;
|
||||||
@ -24,17 +24,17 @@ import android.widget.TextView;
|
|||||||
import android.widget.AdapterView.AdapterContextMenuInfo;
|
import android.widget.AdapterView.AdapterContextMenuInfo;
|
||||||
import android.widget.AdapterView.OnItemClickListener;
|
import android.widget.AdapterView.OnItemClickListener;
|
||||||
|
|
||||||
import com.android.email.Account;
|
import com.fsck.k9.Account;
|
||||||
import com.android.email.Email;
|
import com.fsck.k9.Email;
|
||||||
import com.android.email.MessagingController;
|
import com.fsck.k9.MessagingController;
|
||||||
import com.android.email.Preferences;
|
import com.fsck.k9.Preferences;
|
||||||
import com.android.email.R;
|
import com.fsck.k9.R;
|
||||||
import com.android.email.activity.setup.AccountSettings;
|
import com.fsck.k9.activity.setup.AccountSettings;
|
||||||
import com.android.email.activity.setup.AccountSetupBasics;
|
import com.fsck.k9.activity.setup.AccountSetupBasics;
|
||||||
import com.android.email.mail.MessagingException;
|
import com.fsck.k9.mail.MessagingException;
|
||||||
import com.android.email.mail.Store;
|
import com.fsck.k9.mail.Store;
|
||||||
import com.android.email.mail.store.LocalStore;
|
import com.fsck.k9.mail.store.LocalStore;
|
||||||
import com.android.email.mail.store.LocalStore.LocalFolder;
|
import com.fsck.k9.mail.store.LocalStore.LocalFolder;
|
||||||
|
|
||||||
public class Accounts extends ListActivity implements OnItemClickListener, OnClickListener {
|
public class Accounts extends ListActivity implements OnItemClickListener, OnClickListener {
|
||||||
private static final int DIALOG_REMOVE_ACCOUNT = 1;
|
private static final int DIALOG_REMOVE_ACCOUNT = 1;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.activity;
|
package com.fsck.k9.activity;
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
@ -10,9 +10,9 @@ import android.widget.CompoundButton;
|
|||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
import android.widget.CompoundButton.OnCheckedChangeListener;
|
import android.widget.CompoundButton.OnCheckedChangeListener;
|
||||||
|
|
||||||
import com.android.email.Email;
|
import com.fsck.k9.Email;
|
||||||
import com.android.email.Preferences;
|
import com.fsck.k9.Preferences;
|
||||||
import com.android.email.R;
|
import com.fsck.k9.R;
|
||||||
|
|
||||||
public class Debug extends Activity implements OnCheckedChangeListener {
|
public class Debug extends Activity implements OnCheckedChangeListener {
|
||||||
private TextView mVersionView;
|
private TextView mVersionView;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package com.android.email.activity;
|
package com.fsck.k9.activity;
|
||||||
|
|
||||||
import java.text.DateFormat;
|
import java.text.DateFormat;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
@ -32,24 +32,24 @@ import android.widget.TextView;
|
|||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
import android.widget.ExpandableListView.ExpandableListContextMenuInfo;
|
import android.widget.ExpandableListView.ExpandableListContextMenuInfo;
|
||||||
|
|
||||||
import com.android.email.Account;
|
import com.fsck.k9.Account;
|
||||||
import com.android.email.Email;
|
import com.fsck.k9.Email;
|
||||||
import com.android.email.MessagingController;
|
import com.fsck.k9.MessagingController;
|
||||||
import com.android.email.MessagingListener;
|
import com.fsck.k9.MessagingListener;
|
||||||
import com.android.email.R;
|
import com.fsck.k9.R;
|
||||||
import com.android.email.Utility;
|
import com.fsck.k9.Utility;
|
||||||
import com.android.email.Preferences;
|
import com.fsck.k9.Preferences;
|
||||||
import com.android.email.activity.FolderMessageList.FolderMessageListAdapter.FolderInfoHolder;
|
import com.fsck.k9.activity.FolderMessageList.FolderMessageListAdapter.FolderInfoHolder;
|
||||||
import com.android.email.activity.FolderMessageList.FolderMessageListAdapter.MessageInfoHolder;
|
import com.fsck.k9.activity.FolderMessageList.FolderMessageListAdapter.MessageInfoHolder;
|
||||||
import com.android.email.activity.setup.AccountSettings;
|
import com.fsck.k9.activity.setup.AccountSettings;
|
||||||
import com.android.email.mail.Address;
|
import com.fsck.k9.mail.Address;
|
||||||
import com.android.email.mail.Flag;
|
import com.fsck.k9.mail.Flag;
|
||||||
import com.android.email.mail.Folder;
|
import com.fsck.k9.mail.Folder;
|
||||||
import com.android.email.mail.Message;
|
import com.fsck.k9.mail.Message;
|
||||||
import com.android.email.mail.MessagingException;
|
import com.fsck.k9.mail.MessagingException;
|
||||||
import com.android.email.mail.Message.RecipientType;
|
import com.fsck.k9.mail.Message.RecipientType;
|
||||||
import com.android.email.mail.store.LocalStore.LocalMessage;
|
import com.fsck.k9.mail.store.LocalStore.LocalMessage;
|
||||||
import com.android.email.mail.store.LocalStore;
|
import com.fsck.k9.mail.store.LocalStore;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FolderMessageList is the primary user interface for the program. This Activity shows
|
* FolderMessageList is the primary user interface for the program. This Activity shows
|
||||||
@ -76,11 +76,11 @@ public class FolderMessageList extends ExpandableListActivity {
|
|||||||
private static final String EXTRA_INITIAL_FOLDER = "initialFolder";
|
private static final String EXTRA_INITIAL_FOLDER = "initialFolder";
|
||||||
|
|
||||||
private static final String STATE_KEY_LIST =
|
private static final String STATE_KEY_LIST =
|
||||||
"com.android.email.activity.folderlist_expandableListState";
|
"com.fsck.k9.activity.folderlist_expandableListState";
|
||||||
private static final String STATE_KEY_EXPANDED_GROUP =
|
private static final String STATE_KEY_EXPANDED_GROUP =
|
||||||
"com.android.email.activity.folderlist_expandedGroup";
|
"com.fsck.k9.activity.folderlist_expandedGroup";
|
||||||
private static final String STATE_KEY_EXPANDED_GROUP_SELECTION =
|
private static final String STATE_KEY_EXPANDED_GROUP_SELECTION =
|
||||||
"com.android.email.activity.folderlist_expandedGroupSelection";
|
"com.fsck.k9.activity.folderlist_expandedGroupSelection";
|
||||||
|
|
||||||
private static final int UPDATE_FOLDER_ON_EXPAND_INTERVAL_MS = (1000 * 60 * 3);
|
private static final int UPDATE_FOLDER_ON_EXPAND_INTERVAL_MS = (1000 * 60 * 3);
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.activity;
|
package com.fsck.k9.activity;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
@ -36,53 +36,53 @@ import android.widget.TextView;
|
|||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
import android.widget.AutoCompleteTextView.Validator;
|
import android.widget.AutoCompleteTextView.Validator;
|
||||||
|
|
||||||
import com.android.email.Account;
|
import com.fsck.k9.Account;
|
||||||
import com.android.email.Email;
|
import com.fsck.k9.Email;
|
||||||
import com.android.email.EmailAddressAdapter;
|
import com.fsck.k9.EmailAddressAdapter;
|
||||||
import com.android.email.EmailAddressValidator;
|
import com.fsck.k9.EmailAddressValidator;
|
||||||
import com.android.email.MessagingController;
|
import com.fsck.k9.MessagingController;
|
||||||
import com.android.email.MessagingListener;
|
import com.fsck.k9.MessagingListener;
|
||||||
import com.android.email.Preferences;
|
import com.fsck.k9.Preferences;
|
||||||
import com.android.email.R;
|
import com.fsck.k9.R;
|
||||||
import com.android.email.Utility;
|
import com.fsck.k9.Utility;
|
||||||
import com.android.email.mail.Address;
|
import com.fsck.k9.mail.Address;
|
||||||
import com.android.email.mail.Body;
|
import com.fsck.k9.mail.Body;
|
||||||
import com.android.email.mail.Message;
|
import com.fsck.k9.mail.Message;
|
||||||
import com.android.email.mail.MessagingException;
|
import com.fsck.k9.mail.MessagingException;
|
||||||
import com.android.email.mail.Multipart;
|
import com.fsck.k9.mail.Multipart;
|
||||||
import com.android.email.mail.Part;
|
import com.fsck.k9.mail.Part;
|
||||||
import com.android.email.mail.Message.RecipientType;
|
import com.fsck.k9.mail.Message.RecipientType;
|
||||||
import com.android.email.mail.internet.MimeBodyPart;
|
import com.fsck.k9.mail.internet.MimeBodyPart;
|
||||||
import com.android.email.mail.internet.MimeHeader;
|
import com.fsck.k9.mail.internet.MimeHeader;
|
||||||
import com.android.email.mail.internet.MimeMessage;
|
import com.fsck.k9.mail.internet.MimeMessage;
|
||||||
import com.android.email.mail.internet.MimeMultipart;
|
import com.fsck.k9.mail.internet.MimeMultipart;
|
||||||
import com.android.email.mail.internet.MimeUtility;
|
import com.fsck.k9.mail.internet.MimeUtility;
|
||||||
import com.android.email.mail.internet.TextBody;
|
import com.fsck.k9.mail.internet.TextBody;
|
||||||
import com.android.email.mail.store.LocalStore;
|
import com.fsck.k9.mail.store.LocalStore;
|
||||||
import com.android.email.mail.store.LocalStore.LocalAttachmentBody;
|
import com.fsck.k9.mail.store.LocalStore.LocalAttachmentBody;
|
||||||
|
|
||||||
public class MessageCompose extends Activity implements OnClickListener, OnFocusChangeListener {
|
public class MessageCompose extends Activity implements OnClickListener, OnFocusChangeListener {
|
||||||
private static final String ACTION_REPLY = "com.android.email.intent.action.REPLY";
|
private static final String ACTION_REPLY = "com.fsck.k9.intent.action.REPLY";
|
||||||
private static final String ACTION_REPLY_ALL = "com.android.email.intent.action.REPLY_ALL";
|
private static final String ACTION_REPLY_ALL = "com.fsck.k9.intent.action.REPLY_ALL";
|
||||||
private static final String ACTION_FORWARD = "com.android.email.intent.action.FORWARD";
|
private static final String ACTION_FORWARD = "com.fsck.k9.intent.action.FORWARD";
|
||||||
private static final String ACTION_EDIT_DRAFT = "com.android.email.intent.action.EDIT_DRAFT";
|
private static final String ACTION_EDIT_DRAFT = "com.fsck.k9.intent.action.EDIT_DRAFT";
|
||||||
|
|
||||||
private static final String EXTRA_ACCOUNT = "account";
|
private static final String EXTRA_ACCOUNT = "account";
|
||||||
private static final String EXTRA_FOLDER = "folder";
|
private static final String EXTRA_FOLDER = "folder";
|
||||||
private static final String EXTRA_MESSAGE = "message";
|
private static final String EXTRA_MESSAGE = "message";
|
||||||
|
|
||||||
private static final String STATE_KEY_ATTACHMENTS =
|
private static final String STATE_KEY_ATTACHMENTS =
|
||||||
"com.android.email.activity.MessageCompose.attachments";
|
"com.fsck.k9.activity.MessageCompose.attachments";
|
||||||
private static final String STATE_KEY_CC_SHOWN =
|
private static final String STATE_KEY_CC_SHOWN =
|
||||||
"com.android.email.activity.MessageCompose.ccShown";
|
"com.fsck.k9.activity.MessageCompose.ccShown";
|
||||||
private static final String STATE_KEY_BCC_SHOWN =
|
private static final String STATE_KEY_BCC_SHOWN =
|
||||||
"com.android.email.activity.MessageCompose.bccShown";
|
"com.fsck.k9.activity.MessageCompose.bccShown";
|
||||||
private static final String STATE_KEY_QUOTED_TEXT_SHOWN =
|
private static final String STATE_KEY_QUOTED_TEXT_SHOWN =
|
||||||
"com.android.email.activity.MessageCompose.quotedTextShown";
|
"com.fsck.k9.activity.MessageCompose.quotedTextShown";
|
||||||
private static final String STATE_KEY_SOURCE_MESSAGE_PROCED =
|
private static final String STATE_KEY_SOURCE_MESSAGE_PROCED =
|
||||||
"com.android.email.activity.MessageCompose.stateKeySourceMessageProced";
|
"com.fsck.k9.activity.MessageCompose.stateKeySourceMessageProced";
|
||||||
private static final String STATE_KEY_DRAFT_UID =
|
private static final String STATE_KEY_DRAFT_UID =
|
||||||
"com.android.email.activity.MessageCompose.draftUid";
|
"com.fsck.k9.activity.MessageCompose.draftUid";
|
||||||
|
|
||||||
private static final int MSG_PROGRESS_ON = 1;
|
private static final int MSG_PROGRESS_ON = 1;
|
||||||
private static final int MSG_PROGRESS_OFF = 2;
|
private static final int MSG_PROGRESS_OFF = 2;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.activity;
|
package com.fsck.k9.activity;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileOutputStream;
|
import java.io.FileOutputStream;
|
||||||
@ -44,32 +44,32 @@ import android.widget.LinearLayout;
|
|||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
|
|
||||||
import com.android.email.Account;
|
import com.fsck.k9.Account;
|
||||||
import com.android.email.Email;
|
import com.fsck.k9.Email;
|
||||||
import com.android.email.MessagingController;
|
import com.fsck.k9.MessagingController;
|
||||||
import com.android.email.MessagingListener;
|
import com.fsck.k9.MessagingListener;
|
||||||
import com.android.email.R;
|
import com.fsck.k9.R;
|
||||||
import com.android.email.Utility;
|
import com.fsck.k9.Utility;
|
||||||
import com.android.email.mail.Address;
|
import com.fsck.k9.mail.Address;
|
||||||
import com.android.email.mail.Message;
|
import com.fsck.k9.mail.Message;
|
||||||
import com.android.email.mail.MessagingException;
|
import com.fsck.k9.mail.MessagingException;
|
||||||
import com.android.email.mail.Multipart;
|
import com.fsck.k9.mail.Multipart;
|
||||||
import com.android.email.mail.Part;
|
import com.fsck.k9.mail.Part;
|
||||||
import com.android.email.mail.Message.RecipientType;
|
import com.fsck.k9.mail.Message.RecipientType;
|
||||||
import com.android.email.mail.internet.MimeHeader;
|
import com.fsck.k9.mail.internet.MimeHeader;
|
||||||
import com.android.email.mail.internet.MimeUtility;
|
import com.fsck.k9.mail.internet.MimeUtility;
|
||||||
import com.android.email.mail.store.LocalStore.LocalAttachmentBody;
|
import com.fsck.k9.mail.store.LocalStore.LocalAttachmentBody;
|
||||||
import com.android.email.mail.store.LocalStore.LocalAttachmentBodyPart;
|
import com.fsck.k9.mail.store.LocalStore.LocalAttachmentBodyPart;
|
||||||
import com.android.email.mail.store.LocalStore.LocalMessage;
|
import com.fsck.k9.mail.store.LocalStore.LocalMessage;
|
||||||
import com.android.email.provider.AttachmentProvider;
|
import com.fsck.k9.provider.AttachmentProvider;
|
||||||
|
|
||||||
public class MessageView extends Activity
|
public class MessageView extends Activity
|
||||||
implements UrlInterceptHandler, OnClickListener {
|
implements UrlInterceptHandler, OnClickListener {
|
||||||
private static final String EXTRA_ACCOUNT = "com.android.email.MessageView_account";
|
private static final String EXTRA_ACCOUNT = "com.fsck.k9.MessageView_account";
|
||||||
private static final String EXTRA_FOLDER = "com.android.email.MessageView_folder";
|
private static final String EXTRA_FOLDER = "com.fsck.k9.MessageView_folder";
|
||||||
private static final String EXTRA_MESSAGE = "com.android.email.MessageView_message";
|
private static final String EXTRA_MESSAGE = "com.fsck.k9.MessageView_message";
|
||||||
private static final String EXTRA_FOLDER_UIDS = "com.android.email.MessageView_folderUids";
|
private static final String EXTRA_FOLDER_UIDS = "com.fsck.k9.MessageView_folderUids";
|
||||||
private static final String EXTRA_NEXT = "com.android.email.MessageView_next";
|
private static final String EXTRA_NEXT = "com.fsck.k9.MessageView_next";
|
||||||
|
|
||||||
private TextView mFromView;
|
private TextView mFromView;
|
||||||
private TextView mDateView;
|
private TextView mDateView;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.activity;
|
package com.fsck.k9.activity;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
|
|
||||||
package com.android.email.activity;
|
package com.fsck.k9.activity;
|
||||||
|
|
||||||
import com.android.email.Account;
|
import com.fsck.k9.Account;
|
||||||
import com.android.email.Email;
|
import com.fsck.k9.Email;
|
||||||
import com.android.email.Preferences;
|
import com.fsck.k9.Preferences;
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.activity.setup;
|
package com.fsck.k9.activity.setup;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
@ -13,10 +13,10 @@ import android.preference.CheckBoxPreference;
|
|||||||
import android.preference.Preference;
|
import android.preference.Preference;
|
||||||
import android.preference.RingtonePreference;
|
import android.preference.RingtonePreference;
|
||||||
|
|
||||||
import com.android.email.Account;
|
import com.fsck.k9.Account;
|
||||||
import com.android.email.Email;
|
import com.fsck.k9.Email;
|
||||||
import com.android.email.Preferences;
|
import com.fsck.k9.Preferences;
|
||||||
import com.android.email.R;
|
import com.fsck.k9.R;
|
||||||
|
|
||||||
public class AccountSettings extends PreferenceActivity {
|
public class AccountSettings extends PreferenceActivity {
|
||||||
private static final String EXTRA_ACCOUNT = "account";
|
private static final String EXTRA_ACCOUNT = "account";
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.activity.setup;
|
package com.fsck.k9.activity.setup;
|
||||||
|
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
import java.net.URISyntaxException;
|
import java.net.URISyntaxException;
|
||||||
@ -12,8 +12,8 @@ import android.view.View;
|
|||||||
import android.view.View.OnClickListener;
|
import android.view.View.OnClickListener;
|
||||||
import android.widget.Button;
|
import android.widget.Button;
|
||||||
|
|
||||||
import com.android.email.Account;
|
import com.fsck.k9.Account;
|
||||||
import com.android.email.R;
|
import com.fsck.k9.R;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prompts the user to select an account type. The account type, along with the
|
* Prompts the user to select an account type. The account type, along with the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.activity.setup;
|
package com.fsck.k9.activity.setup;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
@ -26,12 +26,12 @@ import android.widget.Button;
|
|||||||
import android.widget.CheckBox;
|
import android.widget.CheckBox;
|
||||||
import android.widget.EditText;
|
import android.widget.EditText;
|
||||||
|
|
||||||
import com.android.email.Account;
|
import com.fsck.k9.Account;
|
||||||
import com.android.email.Email;
|
import com.fsck.k9.Email;
|
||||||
import com.android.email.EmailAddressValidator;
|
import com.fsck.k9.EmailAddressValidator;
|
||||||
import com.android.email.Preferences;
|
import com.fsck.k9.Preferences;
|
||||||
import com.android.email.R;
|
import com.fsck.k9.R;
|
||||||
import com.android.email.Utility;
|
import com.fsck.k9.Utility;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prompts the user for the email address and password. Also prompts for
|
* Prompts the user for the email address and password. Also prompts for
|
||||||
@ -43,10 +43,10 @@ import com.android.email.Utility;
|
|||||||
*/
|
*/
|
||||||
public class AccountSetupBasics extends Activity
|
public class AccountSetupBasics extends Activity
|
||||||
implements OnClickListener, TextWatcher {
|
implements OnClickListener, TextWatcher {
|
||||||
private final static String EXTRA_ACCOUNT = "com.android.email.AccountSetupBasics.account";
|
private final static String EXTRA_ACCOUNT = "com.fsck.k9.AccountSetupBasics.account";
|
||||||
private final static int DIALOG_NOTE = 1;
|
private final static int DIALOG_NOTE = 1;
|
||||||
private final static String STATE_KEY_PROVIDER =
|
private final static String STATE_KEY_PROVIDER =
|
||||||
"com.android.email.AccountSetupBasics.provider";
|
"com.fsck.k9.AccountSetupBasics.provider";
|
||||||
|
|
||||||
private Preferences mPrefs;
|
private Preferences mPrefs;
|
||||||
private EditText mEmailView;
|
private EditText mEmailView;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.activity.setup;
|
package com.fsck.k9.activity.setup;
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.app.AlertDialog;
|
import android.app.AlertDialog;
|
||||||
@ -14,13 +14,13 @@ import android.widget.Button;
|
|||||||
import android.widget.ProgressBar;
|
import android.widget.ProgressBar;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
import com.android.email.Account;
|
import com.fsck.k9.Account;
|
||||||
import com.android.email.R;
|
import com.fsck.k9.R;
|
||||||
import com.android.email.mail.AuthenticationFailedException;
|
import com.fsck.k9.mail.AuthenticationFailedException;
|
||||||
import com.android.email.mail.MessagingException;
|
import com.fsck.k9.mail.MessagingException;
|
||||||
import com.android.email.mail.Store;
|
import com.fsck.k9.mail.Store;
|
||||||
import com.android.email.mail.Transport;
|
import com.fsck.k9.mail.Transport;
|
||||||
import com.android.email.mail.CertificateValidationException;
|
import com.fsck.k9.mail.CertificateValidationException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks the given settings to make sure that they can be used to send and
|
* Checks the given settings to make sure that they can be used to send and
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.activity.setup;
|
package com.fsck.k9.activity.setup;
|
||||||
|
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
import java.net.URISyntaxException;
|
import java.net.URISyntaxException;
|
||||||
@ -19,10 +19,10 @@ import android.widget.EditText;
|
|||||||
import android.widget.Spinner;
|
import android.widget.Spinner;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
import com.android.email.Account;
|
import com.fsck.k9.Account;
|
||||||
import com.android.email.Preferences;
|
import com.fsck.k9.Preferences;
|
||||||
import com.android.email.R;
|
import com.fsck.k9.R;
|
||||||
import com.android.email.Utility;
|
import com.fsck.k9.Utility;
|
||||||
|
|
||||||
public class AccountSetupIncoming extends Activity implements OnClickListener {
|
public class AccountSetupIncoming extends Activity implements OnClickListener {
|
||||||
private static final String EXTRA_ACCOUNT = "account";
|
private static final String EXTRA_ACCOUNT = "account";
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.activity.setup;
|
package com.fsck.k9.activity.setup;
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
@ -14,12 +14,12 @@ import android.view.View.OnClickListener;
|
|||||||
import android.widget.Button;
|
import android.widget.Button;
|
||||||
import android.widget.EditText;
|
import android.widget.EditText;
|
||||||
|
|
||||||
import com.android.email.Account;
|
import com.fsck.k9.Account;
|
||||||
import com.android.email.Email;
|
import com.fsck.k9.Email;
|
||||||
import com.android.email.Preferences;
|
import com.fsck.k9.Preferences;
|
||||||
import com.android.email.R;
|
import com.fsck.k9.R;
|
||||||
import com.android.email.Utility;
|
import com.fsck.k9.Utility;
|
||||||
import com.android.email.activity.FolderMessageList;
|
import com.fsck.k9.activity.FolderMessageList;
|
||||||
|
|
||||||
public class AccountSetupNames extends Activity implements OnClickListener {
|
public class AccountSetupNames extends Activity implements OnClickListener {
|
||||||
private static final String EXTRA_ACCOUNT = "account";
|
private static final String EXTRA_ACCOUNT = "account";
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.activity.setup;
|
package com.fsck.k9.activity.setup;
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
@ -11,10 +11,10 @@ import android.widget.ArrayAdapter;
|
|||||||
import android.widget.CheckBox;
|
import android.widget.CheckBox;
|
||||||
import android.widget.Spinner;
|
import android.widget.Spinner;
|
||||||
|
|
||||||
import com.android.email.Account;
|
import com.fsck.k9.Account;
|
||||||
import com.android.email.Email;
|
import com.fsck.k9.Email;
|
||||||
import com.android.email.Preferences;
|
import com.fsck.k9.Preferences;
|
||||||
import com.android.email.R;
|
import com.fsck.k9.R;
|
||||||
|
|
||||||
public class AccountSetupOptions extends Activity implements OnClickListener {
|
public class AccountSetupOptions extends Activity implements OnClickListener {
|
||||||
private static final String EXTRA_ACCOUNT = "account";
|
private static final String EXTRA_ACCOUNT = "account";
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.activity.setup;
|
package com.fsck.k9.activity.setup;
|
||||||
|
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
import java.net.URISyntaxException;
|
import java.net.URISyntaxException;
|
||||||
@ -23,10 +23,10 @@ import android.widget.EditText;
|
|||||||
import android.widget.Spinner;
|
import android.widget.Spinner;
|
||||||
import android.widget.CompoundButton.OnCheckedChangeListener;
|
import android.widget.CompoundButton.OnCheckedChangeListener;
|
||||||
|
|
||||||
import com.android.email.Account;
|
import com.fsck.k9.Account;
|
||||||
import com.android.email.Preferences;
|
import com.fsck.k9.Preferences;
|
||||||
import com.android.email.R;
|
import com.fsck.k9.R;
|
||||||
import com.android.email.Utility;
|
import com.fsck.k9.Utility;
|
||||||
|
|
||||||
public class AccountSetupOutgoing extends Activity implements OnClickListener,
|
public class AccountSetupOutgoing extends Activity implements OnClickListener,
|
||||||
OnCheckedChangeListener {
|
OnCheckedChangeListener {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.email.activity.setup;
|
package com.fsck.k9.activity.setup;
|
||||||
|
|
||||||
import android.widget.Spinner;
|
import android.widget.Spinner;
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.email.codec.binary;
|
package com.fsck.k9.codec.binary;
|
||||||
|
|
||||||
import org.apache.commons.codec.BinaryDecoder;
|
import org.apache.commons.codec.BinaryDecoder;
|
||||||
import org.apache.commons.codec.BinaryEncoder;
|
import org.apache.commons.codec.BinaryEncoder;
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.email.codec.binary;
|
package com.fsck.k9.codec.binary;
|
||||||
|
|
||||||
import java.io.FilterOutputStream;
|
import java.io.FilterOutputStream;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.mail;
|
package com.fsck.k9.mail;
|
||||||
|
|
||||||
import java.io.UnsupportedEncodingException;
|
import java.io.UnsupportedEncodingException;
|
||||||
import java.net.URLEncoder;
|
import java.net.URLEncoder;
|
||||||
@ -16,9 +16,9 @@ import org.apache.james.mime4j.field.address.parser.ParseException;
|
|||||||
import android.util.Config;
|
import android.util.Config;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
import com.android.email.Email;
|
import com.fsck.k9.Email;
|
||||||
import com.android.email.Utility;
|
import com.fsck.k9.Utility;
|
||||||
import com.android.email.mail.internet.MimeUtility;
|
import com.fsck.k9.mail.internet.MimeUtility;
|
||||||
|
|
||||||
public class Address {
|
public class Address {
|
||||||
String mAddress;
|
String mAddress;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.mail;
|
package com.fsck.k9.mail;
|
||||||
|
|
||||||
public class AuthenticationFailedException extends MessagingException {
|
public class AuthenticationFailedException extends MessagingException {
|
||||||
public static final long serialVersionUID = -1;
|
public static final long serialVersionUID = -1;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.mail;
|
package com.fsck.k9.mail;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.mail;
|
package com.fsck.k9.mail;
|
||||||
|
|
||||||
public abstract class BodyPart implements Part {
|
public abstract class BodyPart implements Part {
|
||||||
protected Multipart mParent;
|
protected Multipart mParent;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.mail;
|
package com.fsck.k9.mail;
|
||||||
|
|
||||||
public class CertificateValidationException extends MessagingException {
|
public class CertificateValidationException extends MessagingException {
|
||||||
public static final long serialVersionUID = -1;
|
public static final long serialVersionUID = -1;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.mail;
|
package com.fsck.k9.mail;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.mail;
|
package com.fsck.k9.mail;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Flags that can be applied to Messages.
|
* Flags that can be applied to Messages.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package com.android.email.mail;
|
package com.fsck.k9.mail;
|
||||||
|
|
||||||
|
|
||||||
public abstract class Folder {
|
public abstract class Folder {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.mail;
|
package com.fsck.k9.mail;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.mail;
|
package com.fsck.k9.mail;
|
||||||
|
|
||||||
import java.util.Comparator;
|
import java.util.Comparator;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.mail;
|
package com.fsck.k9.mail;
|
||||||
|
|
||||||
public interface MessageRetrievalListener {
|
public interface MessageRetrievalListener {
|
||||||
public void messageStarted(String uid, int number, int ofTotal);
|
public void messageStarted(String uid, int number, int ofTotal);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.mail;
|
package com.fsck.k9.mail;
|
||||||
|
|
||||||
public class MessagingException extends Exception {
|
public class MessagingException extends Exception {
|
||||||
public static final long serialVersionUID = -1;
|
public static final long serialVersionUID = -1;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.mail;
|
package com.fsck.k9.mail;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.mail;
|
package com.fsck.k9.mail;
|
||||||
|
|
||||||
public class NoSuchProviderException extends MessagingException {
|
public class NoSuchProviderException extends MessagingException {
|
||||||
public static final long serialVersionUID = -1;
|
public static final long serialVersionUID = -1;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.mail;
|
package com.fsck.k9.mail;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
|
|
||||||
package com.android.email.mail;
|
package com.fsck.k9.mail;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
|
||||||
import android.app.Application;
|
import android.app.Application;
|
||||||
|
|
||||||
import com.android.email.mail.store.ImapStore;
|
import com.fsck.k9.mail.store.ImapStore;
|
||||||
import com.android.email.mail.store.LocalStore;
|
import com.fsck.k9.mail.store.LocalStore;
|
||||||
import com.android.email.mail.store.Pop3Store;
|
import com.fsck.k9.mail.store.Pop3Store;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Store is the access point for an email message store. It's location can be
|
* Store is the access point for an email message store. It's location can be
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
package com.android.email.mail;
|
package com.fsck.k9.mail;
|
||||||
|
|
||||||
import com.android.email.mail.transport.SmtpTransport;
|
import com.fsck.k9.mail.transport.SmtpTransport;
|
||||||
|
|
||||||
public abstract class Transport {
|
public abstract class Transport {
|
||||||
protected static final int SOCKET_CONNECT_TIMEOUT = 10000;
|
protected static final int SOCKET_CONNECT_TIMEOUT = 10000;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package com.android.email.mail.internet;
|
package com.fsck.k9.mail.internet;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileInputStream;
|
import java.io.FileInputStream;
|
||||||
@ -13,10 +13,10 @@ import org.apache.commons.io.IOUtils;
|
|||||||
import android.util.Config;
|
import android.util.Config;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
import com.android.email.Email;
|
import com.fsck.k9.Email;
|
||||||
import com.android.email.codec.binary.Base64OutputStream;
|
import com.fsck.k9.codec.binary.Base64OutputStream;
|
||||||
import com.android.email.mail.Body;
|
import com.fsck.k9.mail.Body;
|
||||||
import com.android.email.mail.MessagingException;
|
import com.fsck.k9.mail.MessagingException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A Body that is backed by a temp file. The Body exposes a getOutputStream method that allows
|
* A Body that is backed by a temp file. The Body exposes a getOutputStream method that allows
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
|
|
||||||
package com.android.email.mail.internet;
|
package com.fsck.k9.mail.internet;
|
||||||
|
|
||||||
import java.io.BufferedWriter;
|
import java.io.BufferedWriter;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
import java.io.OutputStreamWriter;
|
import java.io.OutputStreamWriter;
|
||||||
|
|
||||||
import com.android.email.mail.Body;
|
import com.fsck.k9.mail.Body;
|
||||||
import com.android.email.mail.BodyPart;
|
import com.fsck.k9.mail.BodyPart;
|
||||||
import com.android.email.mail.MessagingException;
|
import com.fsck.k9.mail.MessagingException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO this is a close approximation of Message, need to update along with
|
* TODO this is a close approximation of Message, need to update along with
|
||||||
@ -60,8 +60,8 @@ public class MimeBodyPart extends BodyPart {
|
|||||||
|
|
||||||
public void setBody(Body body) throws MessagingException {
|
public void setBody(Body body) throws MessagingException {
|
||||||
this.mBody = body;
|
this.mBody = body;
|
||||||
if (body instanceof com.android.email.mail.Multipart) {
|
if (body instanceof com.fsck.k9.mail.Multipart) {
|
||||||
com.android.email.mail.Multipart multipart = ((com.android.email.mail.Multipart)body);
|
com.fsck.k9.mail.Multipart multipart = ((com.fsck.k9.mail.Multipart)body);
|
||||||
multipart.setParent(this);
|
multipart.setParent(this);
|
||||||
setHeader(MimeHeader.HEADER_CONTENT_TYPE, multipart.getContentType());
|
setHeader(MimeHeader.HEADER_CONTENT_TYPE, multipart.getContentType());
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.mail.internet;
|
package com.fsck.k9.mail.internet;
|
||||||
|
|
||||||
import java.io.BufferedWriter;
|
import java.io.BufferedWriter;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
@ -7,8 +7,8 @@ import java.io.OutputStream;
|
|||||||
import java.io.OutputStreamWriter;
|
import java.io.OutputStreamWriter;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
import com.android.email.Utility;
|
import com.fsck.k9.Utility;
|
||||||
import com.android.email.mail.MessagingException;
|
import com.fsck.k9.mail.MessagingException;
|
||||||
|
|
||||||
public class MimeHeader {
|
public class MimeHeader {
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.mail.internet;
|
package com.fsck.k9.mail.internet;
|
||||||
|
|
||||||
import java.io.BufferedWriter;
|
import java.io.BufferedWriter;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
@ -17,12 +17,12 @@ import org.apache.james.mime4j.MimeStreamParser;
|
|||||||
import org.apache.james.mime4j.field.DateTimeField;
|
import org.apache.james.mime4j.field.DateTimeField;
|
||||||
import org.apache.james.mime4j.field.Field;
|
import org.apache.james.mime4j.field.Field;
|
||||||
|
|
||||||
import com.android.email.mail.Address;
|
import com.fsck.k9.mail.Address;
|
||||||
import com.android.email.mail.Body;
|
import com.fsck.k9.mail.Body;
|
||||||
import com.android.email.mail.BodyPart;
|
import com.fsck.k9.mail.BodyPart;
|
||||||
import com.android.email.mail.Message;
|
import com.fsck.k9.mail.Message;
|
||||||
import com.android.email.mail.MessagingException;
|
import com.fsck.k9.mail.MessagingException;
|
||||||
import com.android.email.mail.Part;
|
import com.fsck.k9.mail.Part;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An implementation of Message that stores all of it's metadata in RFC 822 and
|
* An implementation of Message that stores all of it's metadata in RFC 822 and
|
||||||
@ -251,8 +251,8 @@ public class MimeMessage extends Message {
|
|||||||
|
|
||||||
public void setBody(Body body) throws MessagingException {
|
public void setBody(Body body) throws MessagingException {
|
||||||
this.mBody = body;
|
this.mBody = body;
|
||||||
if (body instanceof com.android.email.mail.Multipart) {
|
if (body instanceof com.fsck.k9.mail.Multipart) {
|
||||||
com.android.email.mail.Multipart multipart = ((com.android.email.mail.Multipart)body);
|
com.fsck.k9.mail.Multipart multipart = ((com.fsck.k9.mail.Multipart)body);
|
||||||
multipart.setParent(this);
|
multipart.setParent(this);
|
||||||
setHeader(MimeHeader.HEADER_CONTENT_TYPE, multipart.getContentType());
|
setHeader(MimeHeader.HEADER_CONTENT_TYPE, multipart.getContentType());
|
||||||
setHeader("MIME-Version", "1.0");
|
setHeader("MIME-Version", "1.0");
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.mail.internet;
|
package com.fsck.k9.mail.internet;
|
||||||
|
|
||||||
import java.io.BufferedWriter;
|
import java.io.BufferedWriter;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
@ -7,9 +7,9 @@ import java.io.InputStream;
|
|||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
import java.io.OutputStreamWriter;
|
import java.io.OutputStreamWriter;
|
||||||
|
|
||||||
import com.android.email.mail.BodyPart;
|
import com.fsck.k9.mail.BodyPart;
|
||||||
import com.android.email.mail.MessagingException;
|
import com.fsck.k9.mail.MessagingException;
|
||||||
import com.android.email.mail.Multipart;
|
import com.fsck.k9.mail.Multipart;
|
||||||
|
|
||||||
public class MimeMultipart extends Multipart {
|
public class MimeMultipart extends Multipart {
|
||||||
protected String mPreamble;
|
protected String mPreamble;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.mail.internet;
|
package com.fsck.k9.mail.internet;
|
||||||
|
|
||||||
import java.io.ByteArrayOutputStream;
|
import java.io.ByteArrayOutputStream;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
@ -15,13 +15,13 @@ import org.apache.james.mime4j.util.CharsetUtil;
|
|||||||
|
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
import com.android.email.Email;
|
import com.fsck.k9.Email;
|
||||||
import com.android.email.mail.Body;
|
import com.fsck.k9.mail.Body;
|
||||||
import com.android.email.mail.BodyPart;
|
import com.fsck.k9.mail.BodyPart;
|
||||||
import com.android.email.mail.Message;
|
import com.fsck.k9.mail.Message;
|
||||||
import com.android.email.mail.MessagingException;
|
import com.fsck.k9.mail.MessagingException;
|
||||||
import com.android.email.mail.Multipart;
|
import com.fsck.k9.mail.Multipart;
|
||||||
import com.android.email.mail.Part;
|
import com.fsck.k9.mail.Part;
|
||||||
|
|
||||||
public class MimeUtility {
|
public class MimeUtility {
|
||||||
public static String unfold(String s) {
|
public static String unfold(String s) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.mail.internet;
|
package com.fsck.k9.mail.internet;
|
||||||
|
|
||||||
import java.io.ByteArrayInputStream;
|
import java.io.ByteArrayInputStream;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
@ -8,9 +8,9 @@ import java.io.OutputStream;
|
|||||||
import java.io.UnsupportedEncodingException;
|
import java.io.UnsupportedEncodingException;
|
||||||
|
|
||||||
|
|
||||||
import com.android.email.codec.binary.Base64;
|
import com.fsck.k9.codec.binary.Base64;
|
||||||
import com.android.email.mail.Body;
|
import com.fsck.k9.mail.Body;
|
||||||
import com.android.email.mail.MessagingException;
|
import com.fsck.k9.mail.MessagingException;
|
||||||
|
|
||||||
public class TextBody implements Body {
|
public class TextBody implements Body {
|
||||||
String mBody;
|
String mBody;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.android.email.mail.store;
|
package com.fsck.k9.mail.store;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
@ -14,10 +14,10 @@ import java.util.Date;
|
|||||||
import android.util.Config;
|
import android.util.Config;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
import com.android.email.Email;
|
import com.fsck.k9.Email;
|
||||||
import com.android.email.FixedLengthInputStream;
|
import com.fsck.k9.FixedLengthInputStream;
|
||||||
import com.android.email.PeekableInputStream;
|
import com.fsck.k9.PeekableInputStream;
|
||||||
import com.android.email.mail.MessagingException;
|
import com.fsck.k9.mail.MessagingException;
|
||||||
|
|
||||||
public class ImapResponseParser {
|
public class ImapResponseParser {
|
||||||
SimpleDateFormat mDateTimeFormat = new SimpleDateFormat("dd-MMM-yyyy HH:mm:ss Z");
|
SimpleDateFormat mDateTimeFormat = new SimpleDateFormat("dd-MMM-yyyy HH:mm:ss Z");
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.mail.store;
|
package com.fsck.k9.mail.store;
|
||||||
|
|
||||||
import java.io.BufferedInputStream;
|
import java.io.BufferedInputStream;
|
||||||
import java.io.BufferedOutputStream;
|
import java.io.BufferedOutputStream;
|
||||||
@ -31,28 +31,28 @@ import javax.net.ssl.SSLException;
|
|||||||
import android.util.Config;
|
import android.util.Config;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
import com.android.email.Email;
|
import com.fsck.k9.Email;
|
||||||
import com.android.email.PeekableInputStream;
|
import com.fsck.k9.PeekableInputStream;
|
||||||
import com.android.email.Utility;
|
import com.fsck.k9.Utility;
|
||||||
import com.android.email.mail.AuthenticationFailedException;
|
import com.fsck.k9.mail.AuthenticationFailedException;
|
||||||
import com.android.email.mail.FetchProfile;
|
import com.fsck.k9.mail.FetchProfile;
|
||||||
import com.android.email.mail.Flag;
|
import com.fsck.k9.mail.Flag;
|
||||||
import com.android.email.mail.Folder;
|
import com.fsck.k9.mail.Folder;
|
||||||
import com.android.email.mail.Message;
|
import com.fsck.k9.mail.Message;
|
||||||
import com.android.email.mail.MessageRetrievalListener;
|
import com.fsck.k9.mail.MessageRetrievalListener;
|
||||||
import com.android.email.mail.MessagingException;
|
import com.fsck.k9.mail.MessagingException;
|
||||||
import com.android.email.mail.Part;
|
import com.fsck.k9.mail.Part;
|
||||||
import com.android.email.mail.Store;
|
import com.fsck.k9.mail.Store;
|
||||||
import com.android.email.mail.CertificateValidationException;
|
import com.fsck.k9.mail.CertificateValidationException;
|
||||||
import com.android.email.mail.internet.MimeBodyPart;
|
import com.fsck.k9.mail.internet.MimeBodyPart;
|
||||||
import com.android.email.mail.internet.MimeHeader;
|
import com.fsck.k9.mail.internet.MimeHeader;
|
||||||
import com.android.email.mail.internet.MimeMessage;
|
import com.fsck.k9.mail.internet.MimeMessage;
|
||||||
import com.android.email.mail.internet.MimeMultipart;
|
import com.fsck.k9.mail.internet.MimeMultipart;
|
||||||
import com.android.email.mail.internet.MimeUtility;
|
import com.fsck.k9.mail.internet.MimeUtility;
|
||||||
import com.android.email.mail.store.ImapResponseParser.ImapList;
|
import com.fsck.k9.mail.store.ImapResponseParser.ImapList;
|
||||||
import com.android.email.mail.store.ImapResponseParser.ImapResponse;
|
import com.fsck.k9.mail.store.ImapResponseParser.ImapResponse;
|
||||||
import com.android.email.mail.transport.CountingOutputStream;
|
import com.fsck.k9.mail.transport.CountingOutputStream;
|
||||||
import com.android.email.mail.transport.EOLConvertingOutputStream;
|
import com.fsck.k9.mail.transport.EOLConvertingOutputStream;
|
||||||
import com.beetstra.jutf7.CharsetProvider;
|
import com.beetstra.jutf7.CharsetProvider;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.mail.store;
|
package com.fsck.k9.mail.store;
|
||||||
|
|
||||||
import java.io.ByteArrayInputStream;
|
import java.io.ByteArrayInputStream;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
@ -25,27 +25,27 @@ import android.net.Uri;
|
|||||||
import android.util.Config;
|
import android.util.Config;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
import com.android.email.Email;
|
import com.fsck.k9.Email;
|
||||||
import com.android.email.Utility;
|
import com.fsck.k9.Utility;
|
||||||
import com.android.email.codec.binary.Base64OutputStream;
|
import com.fsck.k9.codec.binary.Base64OutputStream;
|
||||||
import com.android.email.mail.Address;
|
import com.fsck.k9.mail.Address;
|
||||||
import com.android.email.mail.Body;
|
import com.fsck.k9.mail.Body;
|
||||||
import com.android.email.mail.FetchProfile;
|
import com.fsck.k9.mail.FetchProfile;
|
||||||
import com.android.email.mail.Flag;
|
import com.fsck.k9.mail.Flag;
|
||||||
import com.android.email.mail.Folder;
|
import com.fsck.k9.mail.Folder;
|
||||||
import com.android.email.mail.Message;
|
import com.fsck.k9.mail.Message;
|
||||||
import com.android.email.mail.MessageRetrievalListener;
|
import com.fsck.k9.mail.MessageRetrievalListener;
|
||||||
import com.android.email.mail.MessagingException;
|
import com.fsck.k9.mail.MessagingException;
|
||||||
import com.android.email.mail.Part;
|
import com.fsck.k9.mail.Part;
|
||||||
import com.android.email.mail.Store;
|
import com.fsck.k9.mail.Store;
|
||||||
import com.android.email.mail.Message.RecipientType;
|
import com.fsck.k9.mail.Message.RecipientType;
|
||||||
import com.android.email.mail.internet.MimeBodyPart;
|
import com.fsck.k9.mail.internet.MimeBodyPart;
|
||||||
import com.android.email.mail.internet.MimeHeader;
|
import com.fsck.k9.mail.internet.MimeHeader;
|
||||||
import com.android.email.mail.internet.MimeMessage;
|
import com.fsck.k9.mail.internet.MimeMessage;
|
||||||
import com.android.email.mail.internet.MimeMultipart;
|
import com.fsck.k9.mail.internet.MimeMultipart;
|
||||||
import com.android.email.mail.internet.MimeUtility;
|
import com.fsck.k9.mail.internet.MimeUtility;
|
||||||
import com.android.email.mail.internet.TextBody;
|
import com.fsck.k9.mail.internet.TextBody;
|
||||||
import com.android.email.provider.AttachmentProvider;
|
import com.fsck.k9.provider.AttachmentProvider;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.mail.store;
|
package com.fsck.k9.mail.store;
|
||||||
|
|
||||||
import java.io.BufferedInputStream;
|
import java.io.BufferedInputStream;
|
||||||
import java.io.BufferedOutputStream;
|
import java.io.BufferedOutputStream;
|
||||||
@ -24,19 +24,19 @@ import javax.net.ssl.SSLException;
|
|||||||
import android.util.Config;
|
import android.util.Config;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
import com.android.email.Email;
|
import com.fsck.k9.Email;
|
||||||
import com.android.email.Utility;
|
import com.fsck.k9.Utility;
|
||||||
import com.android.email.mail.AuthenticationFailedException;
|
import com.fsck.k9.mail.AuthenticationFailedException;
|
||||||
import com.android.email.mail.FetchProfile;
|
import com.fsck.k9.mail.FetchProfile;
|
||||||
import com.android.email.mail.Flag;
|
import com.fsck.k9.mail.Flag;
|
||||||
import com.android.email.mail.Folder;
|
import com.fsck.k9.mail.Folder;
|
||||||
import com.android.email.mail.Message;
|
import com.fsck.k9.mail.Message;
|
||||||
import com.android.email.mail.MessageRetrievalListener;
|
import com.fsck.k9.mail.MessageRetrievalListener;
|
||||||
import com.android.email.mail.MessagingException;
|
import com.fsck.k9.mail.MessagingException;
|
||||||
import com.android.email.mail.Store;
|
import com.fsck.k9.mail.Store;
|
||||||
import com.android.email.mail.CertificateValidationException;
|
import com.fsck.k9.mail.CertificateValidationException;
|
||||||
import com.android.email.mail.Folder.OpenMode;
|
import com.fsck.k9.mail.Folder.OpenMode;
|
||||||
import com.android.email.mail.internet.MimeMessage;
|
import com.fsck.k9.mail.internet.MimeMessage;
|
||||||
|
|
||||||
public class Pop3Store extends Store {
|
public class Pop3Store extends Store {
|
||||||
public static final int CONNECTION_SECURITY_NONE = 0;
|
public static final int CONNECTION_SECURITY_NONE = 0;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.mail.store;
|
package com.fsck.k9.mail.store;
|
||||||
|
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.net.http.DomainNameChecker;
|
import android.net.http.DomainNameChecker;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package com.android.email.mail.transport;
|
package com.fsck.k9.mail.transport;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package com.android.email.mail.transport;
|
package com.fsck.k9.mail.transport;
|
||||||
|
|
||||||
import java.io.FilterOutputStream;
|
import java.io.FilterOutputStream;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.mail.transport;
|
package com.fsck.k9.mail.transport;
|
||||||
|
|
||||||
import java.io.BufferedInputStream;
|
import java.io.BufferedInputStream;
|
||||||
import java.io.BufferedOutputStream;
|
import java.io.BufferedOutputStream;
|
||||||
@ -21,17 +21,17 @@ import javax.net.ssl.SSLException;
|
|||||||
import android.util.Config;
|
import android.util.Config;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
import com.android.email.Email;
|
import com.fsck.k9.Email;
|
||||||
import com.android.email.PeekableInputStream;
|
import com.fsck.k9.PeekableInputStream;
|
||||||
import com.android.email.codec.binary.Base64;
|
import com.fsck.k9.codec.binary.Base64;
|
||||||
import com.android.email.mail.Address;
|
import com.fsck.k9.mail.Address;
|
||||||
import com.android.email.mail.AuthenticationFailedException;
|
import com.fsck.k9.mail.AuthenticationFailedException;
|
||||||
import com.android.email.mail.Message;
|
import com.fsck.k9.mail.Message;
|
||||||
import com.android.email.mail.MessagingException;
|
import com.fsck.k9.mail.MessagingException;
|
||||||
import com.android.email.mail.Transport;
|
import com.fsck.k9.mail.Transport;
|
||||||
import com.android.email.mail.CertificateValidationException;
|
import com.fsck.k9.mail.CertificateValidationException;
|
||||||
import com.android.email.mail.Message.RecipientType;
|
import com.fsck.k9.mail.Message.RecipientType;
|
||||||
import com.android.email.mail.store.TrustManagerFactory;
|
import com.fsck.k9.mail.store.TrustManagerFactory;
|
||||||
|
|
||||||
public class SmtpTransport extends Transport {
|
public class SmtpTransport extends Transport {
|
||||||
public static final int CONNECTION_SECURITY_NONE = 0;
|
public static final int CONNECTION_SECURITY_NONE = 0;
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
package com.android.email.mail.transport;
|
package com.fsck.k9.mail.transport;
|
||||||
|
|
||||||
import java.io.FilterOutputStream;
|
import java.io.FilterOutputStream;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
|
|
||||||
import com.android.email.Email;
|
import com.fsck.k9.Email;
|
||||||
|
|
||||||
import android.util.Config;
|
import android.util.Config;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package com.android.email.provider;
|
package com.fsck.k9.provider;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileInputStream;
|
import java.io.FileInputStream;
|
||||||
@ -21,16 +21,16 @@ import android.provider.OpenableColumns;
|
|||||||
import android.util.Config;
|
import android.util.Config;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
import com.android.email.Account;
|
import com.fsck.k9.Account;
|
||||||
import com.android.email.Email;
|
import com.fsck.k9.Email;
|
||||||
import com.android.email.Utility;
|
import com.fsck.k9.Utility;
|
||||||
import com.android.email.mail.internet.MimeUtility;
|
import com.fsck.k9.mail.internet.MimeUtility;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* A simple ContentProvider that allows file access to Email's attachments.
|
* A simple ContentProvider that allows file access to Email's attachments.
|
||||||
*/
|
*/
|
||||||
public class AttachmentProvider extends ContentProvider {
|
public class AttachmentProvider extends ContentProvider {
|
||||||
public static final Uri CONTENT_URI = Uri.parse( "content://com.android.email.attachmentprovider");
|
public static final Uri CONTENT_URI = Uri.parse( "content://com.fsck.k9.attachmentprovider");
|
||||||
|
|
||||||
private static final String FORMAT_RAW = "RAW";
|
private static final String FORMAT_RAW = "RAW";
|
||||||
private static final String FORMAT_THUMBNAIL = "THUMBNAIL";
|
private static final String FORMAT_THUMBNAIL = "THUMBNAIL";
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
package com.android.email.service;
|
package com.fsck.k9.service;
|
||||||
|
|
||||||
import com.android.email.MessagingController;
|
import com.fsck.k9.MessagingController;
|
||||||
|
|
||||||
import android.content.BroadcastReceiver;
|
import android.content.BroadcastReceiver;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.android.email.service;
|
package com.fsck.k9.service;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
|
||||||
@ -17,21 +17,21 @@ import android.util.Log;
|
|||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
|
|
||||||
import com.android.email.Account;
|
import com.fsck.k9.Account;
|
||||||
import com.android.email.Email;
|
import com.fsck.k9.Email;
|
||||||
import com.android.email.MessagingController;
|
import com.fsck.k9.MessagingController;
|
||||||
import com.android.email.MessagingListener;
|
import com.fsck.k9.MessagingListener;
|
||||||
import com.android.email.Preferences;
|
import com.fsck.k9.Preferences;
|
||||||
import com.android.email.R;
|
import com.fsck.k9.R;
|
||||||
import com.android.email.activity.Accounts;
|
import com.fsck.k9.activity.Accounts;
|
||||||
import com.android.email.activity.FolderMessageList;
|
import com.fsck.k9.activity.FolderMessageList;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*/
|
*/
|
||||||
public class MailService extends Service {
|
public class MailService extends Service {
|
||||||
private static final String ACTION_CHECK_MAIL = "com.android.email.intent.action.MAIL_SERVICE_WAKEUP";
|
private static final String ACTION_CHECK_MAIL = "com.fsck.k9.intent.action.MAIL_SERVICE_WAKEUP";
|
||||||
private static final String ACTION_RESCHEDULE = "com.android.email.intent.action.MAIL_SERVICE_RESCHEDULE";
|
private static final String ACTION_RESCHEDULE = "com.fsck.k9.intent.action.MAIL_SERVICE_RESCHEDULE";
|
||||||
private static final String ACTION_CANCEL = "com.android.email.intent.action.MAIL_SERVICE_CANCEL";
|
private static final String ACTION_CANCEL = "com.fsck.k9.intent.action.MAIL_SERVICE_CANCEL";
|
||||||
|
|
||||||
private Listener mListener = new Listener();
|
private Listener mListener = new Listener();
|
||||||
|
|
||||||
@ -88,7 +88,7 @@ public class MailService extends Service {
|
|||||||
private void cancel() {
|
private void cancel() {
|
||||||
AlarmManager alarmMgr = (AlarmManager)getSystemService(Context.ALARM_SERVICE);
|
AlarmManager alarmMgr = (AlarmManager)getSystemService(Context.ALARM_SERVICE);
|
||||||
Intent i = new Intent();
|
Intent i = new Intent();
|
||||||
i.setClassName("com.android.email", "com.android.email.service.MailService");
|
i.setClassName("com.fsck.k9", "com.fsck.k9.service.MailService");
|
||||||
i.setAction(ACTION_CHECK_MAIL);
|
i.setAction(ACTION_CHECK_MAIL);
|
||||||
PendingIntent pi = PendingIntent.getService(this, 0, i, 0);
|
PendingIntent pi = PendingIntent.getService(this, 0, i, 0);
|
||||||
alarmMgr.cancel(pi);
|
alarmMgr.cancel(pi);
|
||||||
@ -97,7 +97,7 @@ public class MailService extends Service {
|
|||||||
private void reschedule() {
|
private void reschedule() {
|
||||||
AlarmManager alarmMgr = (AlarmManager)getSystemService(Context.ALARM_SERVICE);
|
AlarmManager alarmMgr = (AlarmManager)getSystemService(Context.ALARM_SERVICE);
|
||||||
Intent i = new Intent();
|
Intent i = new Intent();
|
||||||
i.setClassName("com.android.email", "com.android.email.service.MailService");
|
i.setClassName("com.fsck.k9", "com.fsck.k9.service.MailService");
|
||||||
i.setAction(ACTION_CHECK_MAIL);
|
i.setAction(ACTION_CHECK_MAIL);
|
||||||
PendingIntent pi = PendingIntent.getService(this, 0, i, 0);
|
PendingIntent pi = PendingIntent.getService(this, 0, i, 0);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user