1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-08-13 17:03:48 -04:00
Commit Graph

181 Commits

Author SHA1 Message Date
Bao-Long Nguyen-Trong
8721b64e66 . Nofifications are not cancelled anymore when viewing account screen 2009-02-01 07:21:30 +00:00
Bao-Long Nguyen-Trong
f4c8f88251 . Now displays the number of new messages on the new email notification icon 2009-02-01 07:20:49 +00:00
Bao-Long Nguyen-Trong
41dc1ca8d8 Now display a new email notification per account. Each notification now opens the account (does not go to the Accounts screen anymore)
Note: Notifications are displayed after all accounts are sync'ed but are delayed to be 1sec. apart
TODO: Display notifications at the end of each individual sync
2009-02-01 07:19:08 +00:00
Daniel Applebaum
3dfabbbd0c Provide folder threading support. When threading is on, messages in
folders are sorted first by subject, then by date.  Subject sorting is
case insensitive and disregards leading re:, fw: and fwd: prefixes.

Threading can be toggled via the T hotkey or the option menu.

The icons could use improvement.

Threading state is maintained during a run of K-9, among all
accounts.
2009-02-01 00:08:14 +00:00
Matthew Brace
f184350aec Fix for index out of bounds exception (regression) from r330 2009-01-31 22:09:16 +00:00
Daniel Applebaum
fe2dfb76d0 Refactor suppression of deleted messages into MessagingController.
Re-enable instant deletes in MessageView

Deleted message suppression should be generalized into a flag cache,
serving Seen, Flagged, and Answered flags, as well.

Copy message to Trash still needs work, so that no duplicates are ever
visible and server-sync is more clean.  This will be especially
important, as the same code will be needed for the future "message
copy/move" facility.
2009-01-29 13:35:43 +00:00
Matthew Brace
0a6bc9bdd4 Changed authentication method. Added support for authentication if the server returns a 401 status code. No longer requires form based authentication. 2009-01-27 05:39:41 +00:00
Daniel Applebaum
1bd3f31b95 Attempt to fix Issue 192; making deleted messages stay deleted. 2009-01-27 03:13:54 +00:00
Matthew Brace
de24b6a166 Added support for optional Form Based Authentication login path and user mailbox path in account settings. 2009-01-25 07:37:10 +00:00
Daniel Applebaum
7d5d473563 Fix for Issue 238
Only fixes display of attachment filenames for newly downloaded
messages.  Will not correct display for message already in the
LocalStore.
2009-01-24 19:35:57 +00:00
Daniel Applebaum
cf359c95ad Major ergonomic re-work of MessageView controls. Provide options (in
Account settings) for scrolling the navigation buttons with the
message, or keeping the buttons on screen.  Scrolling mode can be
automatically switched based on availability of keyboard. (Issue 197
and Issue 194)

Add ability to flag/unflag message from options menu
2009-01-24 18:58:40 +00:00
Daniel Applebaum
b6e9910e00 Needed for r326 Issue 91 2009-01-24 18:54:47 +00:00
Daniel Applebaum
e1da49109f Flag "Sent" messages as Seen Issue 91
"Instant" Empty trash
2009-01-24 18:52:58 +00:00
Bradley Young
b4ea7f34a4 catch Throwable, rather than MessagingException, to prevent a crash on stray exceptions. 2009-01-23 23:17:21 +00:00
Matthew Brace
483857ed74 A missed hardcoded value. This should resolve most 400 Bad Request issues. It is unknown if this affects the Invalid Verb responses. 2009-01-22 03:53:09 +00:00
Matthew Brace
357418a396 Removed ability to add slashes/url type parameters onto the server. 2009-01-21 05:33:27 +00:00
Matthew Brace
1cda221fa3 Added support for Exchange path. This is not specifying the path for authentication or for the mailbox. This is support for situations like "https://www.myserver.com/owapath" for authentication. 2009-01-21 05:27:22 +00:00
Daniel Applebaum
b7ad91b7a5 Eliminate "space" as an alias for Next. I didn't realize it was used
by WebKit for scrolling down, and there are already two other Next
hotkeys
2009-01-19 16:09:06 +00:00
Daniel Applebaum
4f5ed839ff Major ergonomic changes to control buttons in the MessageView
1) Eliminate the top row Next Message and Previous Message

2) In the bottom buttons for portrait mode, replace Reply and Forward
   with Prev and Next
   Justification: if you're going to be replying or forwarding, you're
   about to embark on a lot of typing, anyway.  Having to hit Menu
   isn't an undue burden.

3) Prev goes to the adjacent *older* message, next goes to the
   adjacent *newer* message

4) In the bottom buttons for landscape mode, added Prev and Next as the
   outer buttons

5) Add Account option for hiding the bottom buttons when the keyboard
   is available.

Also, temporarily (hopefully!) reverted the instant delete from the
MessageView because it isn't working right.  The method here is slower
but safer.
2009-01-19 14:54:05 +00:00
Matthew Brace
7f2601df17 Updated regular expression to allow directory path in server field. Some whitespace cleanup (tabs to spaces). 2009-01-19 00:48:20 +00:00
Daniel Applebaum
a5de5ceb0e Eliminate use of Android-private APIs for getting user-selected
date/time formats.  With this change, K-9 can run on original master
or cupcake versions for the platform.

This seems like an excessive amount of code.  Perhaps there is a
public API that accomplishes this work.  Alternatively, the code in
MessageView.java and FolderMessageList.java should be consolidated
into a utility class used by both of the classes needing this
functionality.
2009-01-18 16:46:08 +00:00
Daniel Applebaum
0706b7de45 Patch from debauchedsloth for issue 190 that makes the ongoing
notifications duing email send/receive optional.
2009-01-18 16:42:55 +00:00
Daniel Applebaum
dc40026b31 Meant to add to revision 313 notes:
Patches were handling uppercase MIME types were submitted by gwillen
in K-9 issue 94 (MimeBodyPart.java and MimeMessage.java)
and
Josh Guilfoyle as part of Android patch 1539 (MimeUtility.java)

Sorry for missing the attribution on the original commit
2009-01-18 16:35:47 +00:00
Daniel Applebaum
2c51862087 Issue 190
Handle uppercase MIME type sent by non-compliant MUAs such as Pine.
2009-01-18 16:31:37 +00:00
Matthew Brace
b50a782c1c New DataSet data model for XML parses from HTTP responses. Much less memory used for a negligible hit in processor usage. Some additional whitespace cleanup. 2009-01-18 02:43:15 +00:00
Daniel Applebaum
172adeee22 Add ability to Flag/Unflag messages. Flagged messages are shown with
a red/bold subject.  Can be done in the FolderMessageList using the
hotkey G (toggle) or by long-pressing the message to bring up the
message context menu.  Can be done while viewing an individual message
by using the hotkey G (toggle).  To-do: add a Flag/Unflag option to a
menu in the individual message view.

Add sending the Answered flag to the IMAP server when replying to a
message.  This is currently done as soon as the reply is started.
Perhaps it would be better to wait until the reply is sent, but that
would require keeping additional state with the draft.  Messages to
which the user has replied are indicated with a white arrow next to
the subject.

To-do: In the MessageView, provide visual indication of Flagged and
Answered states.
2009-01-13 05:52:37 +00:00
Daniel Applebaum
5b49112a98 Fix linkification of text/plain messages with URLs starting at index 0
of the body.

Possibly the fix for issue 213 and maybe also issue 55
2009-01-13 03:39:59 +00:00
Daniel Applebaum
65bbc7e68a Improved synchronization timing and WakeLock algorithm. This new
approach should guarantee that the syncing never stalls just because a
single attempt exceeds the (currently 10 minute) WakeLock timeout.  At
the sync frequency, K-9 will wakeup again and refresh the WakeLock for
another go at syncing.  This should make synchronization much more
reliable in the face of slow or unavailable connections, in particular
ones which hit the socket read timeouts.

Also, fixed the audible notifications so that the ringtone selected
is always for one of the accounts with new unread mail.

Developers now have the option to turn on a fast-flashing LED during
synchronization in order to observe whether synchronization is
happening while the handset is apparently asleep.  I think this option
would be aggravating to non-developer users.  See
Email.NOTIFICATION_LED_WHILE_SYNCING


Issue 175
Issue 170
2009-01-11 23:43:32 +00:00
Daniel Applebaum
f0867387c8 Eliminated redundant commit of Preferences 2009-01-09 06:13:28 +00:00
Daniel Applebaum
1f9bf1ec50 Issues 199 & 201
No fixes, just extra details in thrown Exceptions to try to track down
problems.
2009-01-09 05:42:59 +00:00
Daniel Applebaum
95c47fcddc Restore ability for FolderMessageList "Refresh" to get a new list of
folders

Automatically clean up deleted messages in Outbox (make deleted
messages destroyed); don't try to send deleted messages, destroy
messages in outbox when deleting.  (Yep, the first and third items are
redundant, but will automatically clean up damaged outboxes)
2009-01-09 05:39:43 +00:00
Daniel Applebaum
a81facc6e7 Issue 192
Keep deleteUid in list until confirmation that message has been
deleted from LocalStore
2009-01-09 05:03:55 +00:00
Daniel Applebaum
d0a354ead0 Delete needs to know how to use Imap prefix 2009-01-09 05:01:05 +00:00
Matthew Brace
7d5d29e078 Added support for non-Exchange 2003 standard login paths (web scraping for login URL).
Added support for default mailbox path setting if we can't automatically determine what it is.
Fixed a bug exposed by changes relating to a fix for non-relative email paths being returned.
2009-01-08 05:47:10 +00:00
Daniel Applebaum
7954b02da6 Experimental deletedUids list in FolderInfoHolder to avoid race
conditions when using instance delete
2009-01-08 04:42:56 +00:00
Daniel Applebaum
1bc879c30c Eliminate assumption that item 1 will be a String 2009-01-07 06:37:44 +00:00
Daniel Applebaum
2eaa99bb3a Do not delete remote messages during sync. Trust the delete routines
to send the proper delete requests (delete, mark read, nothing).
Otherwise, this code will delete on the server any message deleted on
the handset, no matter option the user selects.
2009-01-07 06:36:46 +00:00
Daniel Applebaum
3a3dc2da43 Instant deletes from FolderMessageList. Faster deletes from
MessageView

Deleting a message in Trash deletes it for real (permanently)

All message operations are allowed on messages in the Outbox.  Special
handling for deleting, so that the message is copied to Trash, then
copied asynchronously to the remote Trash.

Add some more items to the hotkey help
2009-01-07 06:02:04 +00:00
Brock Tice
efb2801bab Updated Debug screen to pull version number from the package info.
Fixed "loading more messages" to use the cleaner String.format way of doing things, and changed the corresponding entries in strings.xml.
Deleted the now-unused build_number.xml file.
2009-01-07 05:20:03 +00:00
Brock Tice
0ac17da6cd Added help 'Toasts' to the message and folder message list views. Pressing 'h' brings up a list of shortcut keys. 2009-01-07 04:43:25 +00:00
Brock Tice
7df272d161 Externalized load up to $number more message to strings.xml 2009-01-07 04:20:23 +00:00
Bradley Young
2e4ee5b59f Fix for sending mail; additional logging when there is an invalid (non-http-2xx) response. 2009-01-06 01:31:57 +00:00
Bradley Young
8221094570 self-signed cert support for WebDav. 2009-01-05 00:05:43 +00:00
Daniel Applebaum
d9dd06a620 Make folder unread counters work properly with new faster delete and
marking
2009-01-03 14:35:41 +00:00
Bradley Young
73006c65a3 Disabling self-signed certs for webdav (not IMAP); they are currently causing issues. 2009-01-03 10:15:56 +00:00
Bradley Young
b2b9d8d624 remove @Override : this causes breakage in jdk 1.5. 2009-01-03 04:55:16 +00:00
Daniel Applebaum
828ceba503 Set to use new folder display and sync class defaults.
Accounts are now set:
Folder display mode = All except 2nd Class
Folder sync mode = Only 1st Class

Only the Inbox is set for:
Folder sync class = 1st Class
All other folders have class set to None for sync and display

Also restored an optimization on opening local folders that I
removed.  It is now optimistic, and in the normal case does not have
to make an explicit existence check
2009-01-03 01:47:24 +00:00
Daniel Applebaum
41d6598e22 Speed up Delete, Mark as read/unread, and Mark all as read. 2009-01-03 01:13:50 +00:00
Bradley Young
51b6a03f8c Added self-signed/mismatched domain handling for HTTP over SSL connections in WebDav. 2009-01-01 08:56:19 +00:00
Daniel Applebaum
4cc1ea489a Restored automatic creation of a local folder on open. Why was this
removed in K9?  I can't find the history of LocalStore.java to find
the answer.  Eliminated now redundant creation of Outbox and Drafts
folders.
2008-12-31 16:05:03 +00:00
Daniel Applebaum
334d64141f Complete merge of DAmail functionality into K9mail. Following
features are added to K9mail:

1) Show unread message count on each folder
2) Sum unread count of all shown folders in an account to the account display
3) Periodically check selected folders for new mail, not just Inbox
4) Don't refresh folder when opened (unless folder is empty)
5) Show date and time of last sync for each folder
6) Fix timer for automatic periodic sync (use wakelock to assure completion)
7) Optimize local folder queries (speeds up account and folder lists)
8) Show Loading... message in status bar indicating which folder is being synced
9) Eliminate redundant sync of new messages (performance enhancement)
10) Improve notification text for multiple accounts
11) Do not automatically sync folders more often than the account-specific period
12) Use user-configured date and time formats
13) Select which folders are shown, using configurable Classes
14) Select which folders are synced, using configurable Classes
15) Added context (long press) menu to folders, to provide for Refresh
and Folder Settings
16) Status light flashes purple when there are unread messages
17) Folder list more quickly eliminates display of deleted and out-of-Class folders.
18) Delete works 
19) Mark all messages as read (in the folder context menu)
20) Notifications only for new unread messages
21) One minute synchronization frequency
22) Deleting an unread message decrements unread counter
23) Notifications work for POP3 accounts
24) Message deletes work for POP3 accounts
25) Explicit errors show in folder list
26) Stack traces saved to folder K9mail-errors
27) Clear pending actions (danger, for emergencies only!)
28) Delete policy in Account settings
29) DNS cache in InetAddress disabled
30) Trapped some crash-causing error conditions
31) Eliminate duplicate copies to Sent folder
32) Prevent crashes due to message listener concurrency
33) Empty Trash
34) Nuclear "Mark all messages as read" (marks all messages as read in
server-side folder, irrespective of which messages have been downloaded)
35) Forward (alternate) to allow forwarding email through other programs
36) Accept text/plain Intents to allow other programs to send email through K9mail
37) Displays Outbox sending status
38) Manual retry of outbox sending when "Refresh"ing Outbox
39) Folder error status is persisted
40) Ability to log to arbitrary file

Fixes K9 issues 11, 23, 24, 65, 69, 71, 79, 81, 82, 83, 87, 101, 104,
107, 120, 148, 154
2008-12-31 03:49:09 +00:00
Matthew Brace
72c4095ceb Finished initial refactoring of fetch(). Some slight formatting and cleanup changes as well. 2008-12-29 00:25:19 +00:00
Matthew Brace
34be0269f8 Added stubs for the added functions needed for the DAMail merge. Did not add @Override. Doing it this way to allow easier testing/modifications in preparation for the merge to trunk. All trunk changes will be committed to the DAMail merge branch next. 2008-12-26 06:52:07 +00:00
Matthew Brace
2dede98463 Refactored how the HTTP calls were to reduce the growing volume of duplicated code. 2008-12-26 06:47:00 +00:00
Bradley Young
60b03f3dc2 Should fix attachment issues 2008-12-26 03:06:42 +00:00
Matthew Brace
409acd0134 Added support for proper deletions in WebDAV. Deleting a message the first time moves it to the (currently hardcoded) Deleted Items. Deleting an item in 'Deleted Items' will remove it completely. 2008-12-25 08:38:55 +00:00
Matthew Brace
46d4619ffb Fix for date/time issues prior to fetch(BODY) or fetch(BODY_SANE) is called. 2008-12-25 01:08:34 +00:00
Matthew Brace
dc7a1a0532 Fixed an issue where some Exchange servers wouldn't mark messages as read. Fixed incorrect URL encoding in some folder path names. Removed some unneccessary headers from the envelope request. 2008-12-24 03:09:37 +00:00
Bradley Young
70ab4d7a37 Moved findSurroundingMessagesUid() above the block it was in (which was only present if the next and previous buttons are visible (and they are not visible in horizontal orientation (and that's the only time you can use the keyboard in a non-emulated device))).
Fixes issue #50.
2008-12-23 07:18:36 +00:00
Bradley Young
266a3eddcf Correcting issue with message body being the target, regardless of action (reply, forward, compose).
Should target the message body on reply, reply all, and edit draft.
2008-12-23 02:01:51 +00:00
Matthew Brace
18c51bae5c Removed unneeded header fields from WebDav requests. Fix for some instances of subfolders not working. 2008-12-22 22:14:02 +00:00
Bao-Long Nguyen-Trong
f5c4982c1d . Replaced 'Reply All' with 'Delete' button in message view 2008-12-21 17:44:18 +00:00
Bao-Long Nguyen-Trong
7f81a1ed5d . Replaced 'Delete' button in message view with 'Forward' one (too many accidental deletes) 2008-12-21 15:52:21 +00:00
Bradley Young
5d576f899f If the message is a reply, set focus to the message body. Adding addresses is not the default behavior when a user replies. 2008-12-21 06:20:32 +00:00
Bao-Long Nguyen-Trong
56d1ede846 . Added silent 'on going' notification when checking email 2008-12-19 22:30:55 +00:00
Bao-Long Nguyen-Trong
b9dec4064e . Fixed background sync broken by package name change 2008-12-19 22:27:37 +00:00
Bao-Long Nguyen-Trong
b76c0aba0b . Externalized notification ids 2008-12-19 19:59:49 +00:00
Bao-Long Nguyen-Trong
b3a4b758dc . Fixed typo in LED time off
I forgot: Thanks danapple0 for the LED blickng code
2008-12-19 19:52:51 +00:00
Bao-Long Nguyen-Trong
081cb8f76d . New email notification now includes purple blicking LED 2008-12-19 19:46:47 +00:00
Bao-Long Nguyen-Trong
1e67bbee6b . More reliable background sync by using wake lock
--> Background sync now work even when the device is asleep
(Thanks danapple0)
2008-12-19 19:32:27 +00:00
Jesse Vincent
d55e335f48 merge extra crap 2008-12-19 00:31:17 +00:00
Jesse Vincent
9cf84ee2c8 Merge 'rename' into 'trunk'
r55941@173-101-60-247 (orig r204):  jessev | 2008-12-16 14:58:33 -0800

r55942@173-101-60-247 (orig r205):  jessev | 2008-12-16 15:07:33 -0800
* step 1 of rename
r55943@173-101-60-247 (orig r206):  jessev | 2008-12-16 15:08:52 -0800
step 2 of rename
r55944@173-101-60-247 (orig r207):  jessev | 2008-12-16 15:09:23 -0800
 oops
r55945@173-101-60-247 (orig r208):  jessev | 2008-12-16 15:34:01 -0800
* Even more progressive rename/unfork work
r55947@173-101-60-247 (orig r210):  jessev | 2008-12-16 16:16:43 -0800
* Doesn't work, but close to what danapple has recommended
r56039@173-101-60-247 (orig r213):  young.bradley | 2008-12-18 16:14:49 -0800
This is a working semi-deforked application.  i.e. most of it is still in the com.android.email namespace, but choice bits are in com.fsck.k9 so that it won't try to overwrite the builtin client.

Changes: corrected the package (or something equally simple for K9.java
build.xml has an additional stanza that copies the R.java file from fsck to android namespace, and changes the package inside the file.
AndroidManifest.xml has the package set to fsck, and all the activities are now explicity named.
r56040@173-101-60-247 (orig r214):  jessev | 2008-12-18 16:20:56 -0800
* merged from trunk as of r213
2008-12-19 00:29:29 +00:00
Jesse Vincent
5a55389835 merged from trunk as of r213 2008-12-19 00:20:56 +00:00
Jesse Vincent
28e8827827 Even more progressive rename/unfork work 2008-12-16 23:34:01 +00:00
Jesse Vincent
ac55d3034b oops 2008-12-16 23:09:23 +00:00
Jesse Vincent
9204c61044 step 2 of rename 2008-12-16 23:08:52 +00:00
Jesse Vincent
eedfc0a839 step 1 of rename 2008-12-16 23:07:33 +00:00
Jesse Vincent
0c8fd8496a move step 1, take 2 2008-10-28 01:19:26 +00:00
Jesse Vincent
a6956b5bae Added a "DELETE" keybinding in the FolderMessageList 2008-10-28 01:12:03 +00:00
Jesse Vincent
822b3b3daa Added support for propagating "Deleted" flags back to IMAP servers.
* Fixed a typo in original method names (really should have been another commit, but this is the initial upload)
2008-10-28 01:11:05 +00:00
Jesse Vincent
ffd7766384 Initial commit - This source code should be EXACTLY what the current version of the 'Email' application in the android repo looks like as of this date. 2008-10-28 01:04:44 +00:00