1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-17 06:55:03 -05:00
Commit Graph

2982 Commits

Author SHA1 Message Date
ashley willis
c46afade5f reworked LocalFolder.isLocalOnly(): mLocalOnly is now Boolean instead of boolean so it can be uninitialized before the database sets it, and the folder doesn't need to be opened first.
reworked LocalFolder.setLocalOnly() to convert messages to local-only (including full download) or create remote folder if needed.
reworked MessagingController.localizeUids() to fully download if necessary.
made trash folder local-only status depend on delete policy, and not able to be changed from folder settings.
fixed LocalFolder.purgeToVisibleLimit() to no longer delete local-only messages. (long-standing bug)
made processPendingAppend() (PENDING_COMMAND_APPEND) handle multiple emails and notify listeners that message has been updated.
added code to create local-only folders on settings import.
prevented user-created folder named /inbox/i.
refactored onUpload() to put all logic in MessagingController.appendMessages().
removed MessagingController.saveMessage() and reverted MessagingController.saveDraft().
automatic account setup now sets delete policy to DELETE_POLICY_ON_DELETE on IMAP accounts like manual setup does. (long-standing issue)
set default names for Archive and Spam on manual config. (long-standing issue)
added code to save/delete folder settings on new or renamed folders.
2012-02-16 17:09:42 -06:00
ashley willis
fd97eb2da4 removed outdated code: MessagingController.processPendingSetFlagOld() 2012-02-05 02:26:24 -06:00
ashley willis
d13aa61de3 Added "advanced options" option and more support for local-only messages and folders:
added message upload support.
added advanced option to create local-only folder.
disabled sync & push for local-only folders.
hid expunge, check_mail, and "Load up to x more" for local-only folders.
hid create/rename/delete folder options for webdav (someone give me a webdav account).
added advanced option to change if a folder is local-only or syncable.
add dialog to confirm clearing local messages, and if it should include local-only messages or just synced messages.
added advanced option to automatically upload on move from local-only to syncable.
changed background color in message list and subject color in message view of local-only messages.
changed: keep local-only messages in folders no longer on server instead of deleting folder, and mark folder as local-only.
added automatically fully downloading messages moved/copied to local-only folder.
added advanced options option (if not enabled, those settings will be hidden).
reworked onCreateFolder(), onRenameFolder(), onDeleteFolder().
added Store.isAppendCapable().
added LocalFolder.expunge() [unused].
2012-02-05 02:15:54 -06:00
ashley willis
14a0fdf27d Merge branch 'master' into issue-162 2012-02-03 21:10:22 -06:00
Nick Nikolaou
46bf2c5be7 Add discard confirmation dialog when pressing back 2012-02-02 19:33:49 -06:00
cketti
35b5aebdb3 Add debug message when saving an attachment to SD card fails 2012-02-03 01:22:37 +01:00
ashley willis
2e3a95825f Merge branch 'issue-162' of https://github.com/cketti/k-9 into issue-162 2012-01-28 00:58:18 -06:00
ashley willis
3eb05179ee removed outdated code: MessagingController.processPendingMoveOrCopyOld() and related, Message.delete() and its overrides. 2012-01-27 23:33:04 -06:00
ashley willis
83cb0e892d added javadoc to build.xml. minor refactoring and reorganization of folder deletion and creation. 2012-01-27 18:38:29 -06:00
cketti
b1a1de8f7b Restore mark as unread in message view
Fixes issue 3958
Fixes issue 3319
2012-01-27 08:39:10 +01:00
cketti
1165787129 Changed regular expression for invalid characters in a file name 2012-01-27 03:39:08 +01:00
cketti
6c23e204ba Replace invalid characters in file name instead of removing them 2012-01-27 03:21:20 +01:00
cketti
68f5f009f1 Whitespace cleanup 2012-01-27 03:07:44 +01:00
wilian-cb
9a0f650cd9 3674: Displaying the final file name. 2012-01-27 02:44:01 +01:00
wilian-cb
193450cd63 3674: Illegal characters used in file names are being removed when saving them on the device. 2012-01-27 02:44:01 +01:00
cketti
e8eae37389 Reset unread/flagged count on "empty trash" 2012-01-27 00:51:18 +01:00
cketti
0f668cc80d Don't delete local messages when synchronizing a folder
When "sync remote deletions" is disabled, we convert the messages that
were deleted from the server to proper local messages by changing the
UID.
2012-01-26 03:33:33 +01:00
cketti
5a8ddaa039 Make sure draft id points to a valid message before deleting it
Avoids IllegalArgumentException in LocalStore.getMessage()
2012-01-26 00:37:25 +01:00
cketti
aae734c175 Don't Log.w() full stacktrace if file wasn't found
This happens regularly when AttachmentView tries to get a thumbnail for
attachments that haven't been downloaded yet.
2012-01-24 22:14:21 +01:00
cketti
4e5d116713 Delete attachment metadata and thumbnails when deleting attachments 2012-01-24 16:15:45 +01:00
cketti
c6696f632a Code cleanup, fixed some warnings, rearranged some stuff 2012-01-24 16:15:44 +01:00
cketti
7a3cadbf1c Refactored AttachmentProvider.openFile() 2012-01-24 16:15:44 +01:00
Ashley Willis
c69e6dc97c Merge pull request #120 from ashleywillis/msu
added montclair.edu to res/xml/providers.xml based on http://oit.montcla...
2012-01-23 17:56:27 -08:00
ashley willis
bd700127de added montclair.edu to res/xml/providers.xml based on http://oit.montclair.edu/documentation/msu_apps/email/AndroidPhoneSettingUpYourMSUEmailAccount.pdf 2012-01-23 19:51:30 -06:00
ashley willis
a9ccad8d9f Merge branch 'master' into issue-162 2012-01-23 05:39:55 -06:00
ashley willis
8e77bb15e5 Some refactoring. Added LocalFolder flag "local_only".
MessagingController.updateUids(): syncs UIDs in processPendingMoveOrCopy(), instead of messages being redownloaded.
MessagingController.saveMessage(): unsynced messages can be moved, and therefore all messages are move/copy-capable.
2012-01-23 05:17:11 -06:00
Jesse Vincent
99e9bee724 Bumped manifest to 4.107 2012-01-22 23:12:16 -05:00
cketti
4bbc5de1ba Code cleanup / fixed lots of warnings 2012-01-22 06:25:06 +01:00
cketti
45faad041e Don't finish() MessageCompose in onPause() 2012-01-22 05:32:52 +01:00
cketti
bddacf6b64 Use database ID to keep track of the current draft
By using the database ID we avoid having to deal with the problem of
changing UIDs. First the message has a local UID, then, when the upload
to the server is completed, it gets a remote UID.
2012-01-22 05:20:41 +01:00
cketti
96f827d291 Modified LocalStore to use UPDATE when replacing existing messages
This way we can later use the database ID to keep track of drafts.
2012-01-22 05:20:41 +01:00
Jesse Vincent
16003abcc1 Bumped manifest to 4.106 2012-01-20 23:42:30 -05:00
cketti
be2aac52a8 Reload accounts after writing imported account settings to storage
This makes sure that when the next account is imported it will see the
account just imported. That's necessary e.g. when going though all
accounts to find the next free account number, or when avoiding account
name conflicts.
2012-01-21 03:10:40 +01:00
cketti
0625e13380 Canceling notifications once should be enough 2012-01-20 23:32:55 +01:00
cketti
a8f91b0f70 Minor code cleanup 2012-01-20 23:32:12 +01:00
cketti
7eccc1701d Merge branch 'issue3508' 2012-01-20 23:19:22 +01:00
cketti
2c5f640b9e Minor cleanup 2012-01-20 23:15:11 +01:00
wcb
457e65010e Issue 3139: notifications of new messages removed when unified inbox is selected 2012-01-20 11:55:04 -08:00
Andrew Chen
4c74001a28 Merge pull request #116 from levysiqueira/patch-1
Issue 4014: Correction of few translation errors and translating some of the NEW strings
2012-01-20 11:10:30 -08:00
Nick Nikolaou
773d1e30f1 Simplied code and added curly brackets to if/else 2012-01-20 19:10:11 +00:00
cketti
32a29f131b Make sure an IOException is always passed through as MessagingException
This is important for the code handling pending actions in
MessagingController. If a non-permantent MessagingException is
encountered, the pending action is retried later.

Fixes issue 3696
2012-01-20 19:50:07 +01:00
Nick Nikolaou
1a01c10fc5 Don't save to drafts if drafts folder is -NONE- 2012-01-20 17:02:35 +00:00
levysiqueira
18e4557b1e Correction of few translation errors and translating some of the NEW strings. 2012-01-18 16:17:37 -02:00
Jesse Vincent
96b0a7b28b Bumped manifest to 4.105 2012-01-17 17:51:43 -08:00
Jesse Vincent
da7f2a2943 update our upload target for sdk 16 2012-01-17 17:50:25 -08:00
Jesse Vincent
5c9b1db459 fix the push-tags target 2012-01-17 17:47:20 -08:00
cketti
258b0039d5 IMAP: also get the Message-ID when fetching the message "envelope"
This should fix issue 3994
2012-01-14 06:30:22 +01:00
ashley willis
c0aeca2d54 sanity checks: handle special folders settings, don't allow renaming of inbox and outbox. 2012-01-13 00:41:04 -06:00
ashley willis
bf5940db39 removed unused enum FolderType 2012-01-12 04:09:17 -06:00
ashley willis
eab23b5bbf Added folder rename and folder delete for IMAP and POP3. 2012-01-12 03:51:25 -06:00