ashley willis
7f582f5a38
added mIgnoreOnStop for when adding an attachment.
2011-11-03 15:38:53 -05:00
Andrew Chen
64b299ebec
Merge pull request #89 from andrewgaul/is-empty
...
Prefer Collection.isEmpty over size
2011-11-03 06:34:15 -07:00
Andrew Gaul
cb14cd9d78
Prefer StringBuilder.append over String.concat
...
Addresses FindBugs complaints.
2011-11-02 22:10:02 -07:00
Andrew Gaul
647ae0a31c
Prefer Collection.isEmpty over size
2011-11-02 20:03:07 -07:00
ashley willis
a021ab71de
Override onStop() to save email as draft when activity is changed (go to home screen, call received)
2011-11-01 22:12:51 -05:00
ashley willis
57b9321a1e
issue-1424: saving duplicate or similar drafts fixed.
2011-11-01 03:02:29 -05:00
cketti
b69d6cb64c
Use Locale.US with toUpperCase() and toLowerCase() where appropriate
2011-10-27 17:17:43 +02:00
cketti
d3baa299f1
Use "reply after quoted text" value when editing drafts
2011-10-27 08:20:03 +02:00
Sven-Hendrik Haase
f4f726ae67
Fixed restoring drafts saved with "reply after quoted text" enabled
...
Fixes issue 2568
2011-10-27 07:23:01 +02:00
Andrew Gaul
47eb0fa2e1
Prefer StringBuilder over StringBuffer
...
The former is unsynchronized and slightly faster.
2011-10-05 21:50:31 -07:00
Andrew Chen
16c1f9c35b
Add the remaining two return receipt headers upon request.
2011-08-28 16:08:41 -07:00
Alessandro Russo
f5c679fb95
Added support for requesting read receipts
2011-08-27 20:46:04 -04:00
Koji Arai
45e29ccba4
Fixed issue 3530.
...
Should not HTMLify the message when it is sent without quoted message.
The problem is:
1. set MessageFormat in Account setting to the TEXT.
2. reply a message without quoted text.
3. it is sent with HTML tags.
2011-07-17 08:56:28 +09:00
cketti
a60a2a4295
Changed code to show/hide the correct views for CC/BCC
...
Fixes issue 3509
2011-07-07 04:59:45 +02:00
Jesse Vincent
2a698f1ab9
ant astyle
2011-07-02 15:18:43 -04:00
Jesse Vincent
2f48309f82
We forgot to HTML markup the body of the message in cases where we
...
weren't quoting any text
2011-06-20 18:26:19 -07:00
Jesse Vincent
379a8dfa9e
It turns out that 79a96952f2
has caused a
...
lot of messages to be unreadable in K-9 3.8. (see mailing list
threads)
2011-06-09 21:54:22 -04:00
Jesse Vincent
3d583da450
ant astyle
2011-06-01 16:03:56 -04:00
Koji Arai
7f93cfcbca
Refactoring
2011-05-25 00:25:23 +09:00
Koji Arai
33a92b11a2
Use the Button instead of the ImageButton.
2011-05-22 04:12:41 +09:00
Koji Arai
ce9b280746
Added account preference to display quoted text.
2011-05-22 03:56:51 +09:00
Koji Arai
5d6df85aac
possible to toggle to display the quoted message to send.
2011-05-22 03:55:50 +09:00
Andrew Chen
e5d952bff4
Save and restore the cursor position when saving or loading a draft. This is the first step in making "resume composition on context switch" a reality.
2011-05-10 15:23:25 -07:00
Jesse Vincent
0174988d27
astyle
2011-04-12 22:16:22 +10:00
Koji Arai
79a96952f2
Correct encoding and decoding for the filename parameter in the Content-Disposition.
2011-04-08 00:58:53 +09:00
Jesse Vincent
e19162cb86
ant astyle
2011-03-22 18:07:47 +11:00
Jesse Vincent
81644d0f4b
Initial support for a button to look up contacts in a contact provider
2011-03-22 18:07:47 +11:00
steiler
e2a7a55cf3
Issue 3104: Can't bcc to more than 1 address
2011-03-14 19:28:44 -04:00
cketti
4724848a5a
Merge branch 'focus_to_box'
2011-02-27 01:26:04 +01:00
HIRANO Takahito
580d19ec17
Allow emoji input in subjects.
...
Signed-off-by: HIRANO Takahito <hiranotaka@zng.info>
2011-02-20 10:15:50 +09:00
Jan Berkel
685df0ff67
Perf improvement: use parcels instead of serializable
...
Standard Java serialization is slow on Android. Replacing it w/
parcelable makes it around 10x faster (on a N1, with ~ 500 messages
in the list).
To avoid further confusion and potential bugs MessageReference was
made no longer implement Serializable.
2011-02-19 15:24:53 -05:00
cketti
e70d091433
Explicitly set focus to "To:" input field when composing or forwarding
...
a message.
2011-02-14 08:28:03 +01:00
Jesse Vincent
12d1097a24
Big, scary massive "ant astyle" to get us back to something
...
approximating AOSP coding standards.
2011-02-06 17:09:48 -05:00
Andrew Chen
cc9d6ac5ea
Add button to allow editing of quoted message in HTML mode by dropping user back to text mode. Fixes issue 2959.
2011-02-05 15:14:02 -08:00
Andrew Chen
1b37fc69f6
Another potential NPE fix.
2011-02-04 23:19:06 -05:00
Andrew Chen
33e5520a9d
Mark messages as ANSWERED only on send. Save a reference to the message in the identity so that loading a draft of a reply also marks the referenced message correctly.
2011-02-03 06:32:29 +00:00
Jesse Vincent
6550151684
Add serialVersionUID to Serializable classes to make eclipse happy
2011-01-31 23:45:14 +00:00
Andrew Chen
13898f7edf
Fix the way newlines are added in HTML mode.
2011-01-28 21:41:06 +00:00
Andrew Chen
ba1709770e
Issue 854 - Fix reply after quote in HTML mode.
2011-01-25 03:56:19 +00:00
cketti
7119c7165f
Removed unnecessary type casts
2011-01-19 01:21:27 +00:00
cketti
8279092070
Fixed lots of warnings (unused imports/variables, missing annotations, etc.)
2011-01-18 23:54:49 +00:00
Jesse Vincent
aacb414004
astyle
2011-01-14 01:37:52 +00:00
Andrew Chen
e56b044bbc
Add support for HTML composition with text alternative.
...
Revamp K9 Identity string.
Quote names in Address only when needed.
Remove quoted text bar and move button to quoted text area.
2011-01-12 23:48:28 +00:00
Andrew Chen
b4635e53b5
When editing a draft, only show the BCC field if it has entries other than the auto-bcc for that account.
...
This makes draft editing behavior the same as new composition.
2011-01-11 02:49:00 +00:00
Andrew Chen
e19f742678
Consolidate exception catching in processSourceMessage into a single try/catch block.
...
Add error logging if we do have an exception.
2011-01-10 20:12:08 +00:00
Jesse Vincent
de806f7715
astyle
2011-01-06 16:55:08 +00:00
Andrew Chen
f9ddc7eb06
Remove extraneous colon.
2011-01-06 01:34:08 +00:00
Andrew Chen
74e6384236
Fix potential NPE.
2011-01-06 01:31:28 +00:00
Andrew Chen
5fef7f3b07
Add support for Outlook-style quote headers as a preference under Account Settings -> Sending Mail.
...
Refactor forwarding header (header-style quote header) into individual string pieces that are assembled in code to accommodate future HTML version of headers.
Introduced four new strings for translation.
2011-01-05 23:58:14 +00:00
Jesse Vincent
2daf8eaec8
Allow emoji input.
...
Signed-off-by: HIRANO Takahito <hiranotaka@zng.info>
2011-01-04 13:25:59 +00:00
Jesse Vincent
d25f12fa16
Switch K-9 from generating X-User-Agent to User-Agent headers.
...
Fixes issue 1917
2011-01-04 08:33:12 +00:00
Jesse Vincent
f14c7ecd9b
doc & comment updates from achen.code
2010-12-25 00:27:09 +00:00
Jesse Vincent
1fae914efb
tiny doc update from achen.code
2010-12-25 00:26:59 +00:00
Fiouz
9d01876481
Don't reference the enclosing type instance when it's not used (memory optimisation)
2010-12-14 19:26:18 +00:00
Jesse Vincent
f5eb6e03af
astyle
2010-12-01 06:32:29 +00:00
Jesse Vincent
02acea3bbf
replying to a message you sent shouldn't end up sending mail only to you
2010-12-01 06:04:12 +00:00
Jesse Vincent
78c900b5fe
remove redundant ;s
2010-12-01 03:07:28 +00:00
Jesse Vincent
43d9c0a6d4
Eliminate some redundant assignments
2010-12-01 03:00:36 +00:00
cketti
58ca9fe740
Changed external intent (e.g. Intent.ACTION_SEND_TO) handling code in MessageCompose
...
- extracted handling of external intents to a new method
- only allow mailto URI for ACTION_VIEW and ACTION_SENDTO (as documented by AOSP)
- allow additional recipients via "to" parameter in mailto URI
- removed check for allowed MIME type when adding attachments since we're accepting all MIME types anyway
- show CC and BCC text fields when one of those recipient types was set by the intent
- use MIME type specified in intent for attachments (if present and doesn't contain a "*")
2010-11-14 02:27:42 +00:00
Jesse Vincent
14055691a3
Merge branch 'mail-on-sd'
...
* mail-on-sd: (40 commits)
Added more comments to explain how the locking mecanism works for LocalStore
Fixed wrong method being called during experimental provider initialization (since provider isn't enabled, that didn't harm)
Add more comments about how the various StorageProviders work and how they're enabled
find src/com/fsck/ -name \*.java|xargs astyle --style=ansi --mode=java --indent-switches --indent=spaces=4 --convert-tabs
French localization for storage related settings
Remove unused SD card strings (replaced with storage indirection)
Merge mail-on-sd branch from trunk
Reset mail service on storage mount (even if no account uses the storage, to be improved)
find src/com/fsck/ -name \*.java|xargs astyle --style=ansi --mode=java --indent-switches --indent=spaces=4 --convert-tabs
Migraion -> Migration
move the Storage location preference into preferences rather than the wizard.
Made LocalStore log less verbose Added @Override compile checks
Added ACTION_SHUTDOWN broadcast receiver to properly initiate shutdown sequence (not yet implemented) and cancel any scheduled Intent
Be more consistent about which SQLiteDatabase variable is used (from instance variable to argument variable) to make code more refactoring-friendly (class is already big, code extraction should be easier if not referencing the instance variable).
Added transaction timing logging
Factorised storage lock/transaction handling code for regular operations.
Use DB transactions to batch modifications (makes code more robust / could improve performances)
Merge mail-on-sd branch from trunk
Update issue 888 Added DB close on unmount / DB open on mount
Update issue 888 Back to account list when underlying storage not available/unmounting in MessageView / MessageList
...
2010-11-13 21:40:56 +00:00
Jesse Vincent
d0e85ce43a
astyle
2010-11-05 02:59:21 +00:00
Jesse Vincent
9c7e3bcc26
Guard against null content from html parts on reply/forward, which was
...
causing a bunch of NPEs on the market.
2010-10-31 17:42:03 +00:00
cketti
0add1f97c0
Mark contacts as contacted when a mail is sent to them.
...
Fixes issue 2522
2010-10-30 20:35:49 +00:00
Jesse Vincent
fb059a8138
Fix for NPE when changing the identity
...
Fixes issue 2506. Patch from jca02266
2010-10-23 15:26:50 +00:00
Jesse Vincent
6061c42ea9
find src/com/fsck/ -name \*.java|xargs astyle --style=ansi --mode=java --indent-switches --indent=spaces=4 --convert-tabs
2010-10-05 06:04:28 +00:00
Jesse Vincent
58bb54a588
when quoting an html body part for forwarding, downrez it to plain text.
...
In the glorious future, we should be forwarding as an attachment. but
this is better than the previous behaviour
2010-10-05 06:04:16 +00:00
Jesse Vincent
ae53a0c5ff
broke addAttachmentView into its own sub
2010-10-05 06:03:51 +00:00
Fiouz
bb64a0ab01
Update issue 2379
...
Status: Fixed
Extracted Intent.ACTION_SENDTO handling in a separate block to extract data from URI (as opposed to ACTION_SEND which uses Intent extras to pass data)
2010-10-02 08:14:12 +00:00
Fiouz
c8a5de7abd
Intent.ACTION_SENDTO.equals(action) was tested twice in the same if/else if statement causing the last one to never match, removed the first one in order to properly enable intent-based activity population
...
Fixes issue 2110
"Intent.ACTION_SENDTO.equals(action)" removed from first condition
See r1712
2010-09-12 05:26:13 +00:00
cketti
7f72da93e0
Added missing bit of achen.code's patch for issue 2211 (reply below quote)
2010-08-30 21:27:07 +00:00
Jesse Vincent
4f0bce1569
Simplify many, many boolean conditions with help from IntelliJ
2010-08-29 23:39:26 +00:00
Jesse Vincent
e0447e32cc
astyle
2010-08-29 16:57:13 +00:00
Thialfihar
a93da0ed80
decoupled PgpData from CryptoProvider, moved the crypto provider into Account
2010-08-22 09:51:17 +00:00
cketti
90ee194d0f
Fixes issue 387
...
Applied patch by achen.code (thanks!) to word wrap the quoted text on replies.
2010-08-19 02:49:13 +00:00
cketti
5c588992a0
Fixes Issue 2076
...
Remove german version of the "Re:" prefix when replying to messages. So instead of "Re: AW: subject" we get "Re: subject".
2010-08-07 19:25:47 +00:00
cketti
4c1060ecae
Only show "save or discard" dialog before leaving the message compose activity if the message needs saving.
2010-07-28 23:17:46 +00:00
Thialfihar
5e30c3dab1
removed two extra lines from the merge in r2055
2010-07-28 12:10:08 +00:00
Jesse Vincent
7a4d12b53b
Merge from apg-integration
2010-07-27 12:10:09 +00:00
Jesse Vincent
80e134c03c
astyle
2010-07-22 03:40:30 +00:00
Jesse Vincent
eb21807384
Moving sendMessage and saveMessage into AsyncTasks to make the send/save
...
buttons much less janky
2010-07-22 03:40:22 +00:00
Jesse Vincent
8182b8a8ee
Split out sendmessage and savemessage - the sendorsavemessage method
...
didn't actually have them sharing code.
2010-07-22 03:40:14 +00:00
Jesse Vincent
338919a9a0
Merge remote branch 'remotes/issue814'
...
* remotes/issue814:
Changed the appearance of the ChooseAccount activity to better match the look of the account list.
svn:eol-style set to LF (UNIX style)
Update issue 814 Status: Started Cc: +fiouzy Reuse of res/layout/accounts_item.xml to match account list Automatically expand/scroll to Intent-presented account
- Patch provided by fiouzy (ability to choose identity from other accounts) - Modifications in MessageCompose by cketti (use MessageReference to replace mFolder and mSourceMessageUid)
Created branch for issue 814 (Feature to select account to send from in compose screen)
2010-07-22 03:15:28 +00:00
Koji Arai
eb7289f97b
Reverted a part of r1872.
...
Should save draft when the home button is pressed.
2010-07-12 14:57:42 +00:00
Jesse Vincent
a826f33eb3
find src/com/fsck/ -name \*.java|xargs astyle --style=ansi
...
--mode=java --indent-switches --indent=spaces=4 --convert-tabs
--unpad=paren
2010-07-06 10:29:26 +00:00
Koji Arai
a5a1ae7d28
Fixes Issue 41
...
Should query whether saving the draft message or discarding when back button was pressed.
Suppress to save the draft message automatically when attaching any file.
2010-07-04 17:46:55 +00:00
Fiouz
e8cb293e03
Fixes Issue 1887
...
Save/restore In-Reply-To/References headers on configuration change
2010-07-02 21:17:06 +00:00
cketti
648e3bd829
Added option to specify the message quote prefix character/string (default ">"). Applied patch provided by fiouzy (Thanks!) with some small modifications.
...
Fixes issue 1830
2010-06-20 14:07:03 +00:00
cketti
7f625b5ef4
Added option to specify Reply-to address for an identity. Patch provided by fiouzy (Thanks!).
...
Fixes issue 1762
2010-06-20 12:48:22 +00:00
Daniel Applebaum
bcb986451e
Fixes Issue 1728
...
Use the default account when composing from search results.
2010-06-08 00:45:07 +00:00
cketti
3812c75f66
Applied patch by fiouzy to read In-Reply-To and References header from saved draft.
...
Fixes issue 1686
2010-06-02 16:29:59 +00:00
Jesse Vincent
1a66072910
find src/com/fsck/ -name \*.java|xargs astyle --style=ansi --mode=java --indent-switches --indent=spaces=4 --convert-tabs --unpad=paren
2010-05-30 04:17:00 +00:00
Daniel Applebaum
f318fc159b
Fixes Issue 1641
...
Populate text and subject when handling ACTION_SENDTO
2010-05-20 11:08:40 +00:00
cketti
58b8479612
Code refactoring:
...
- Created "controller" and "mail.filter" package
- Moved a lot of classes to new/other packages
- Removed unused classes: NoSuchProviderException, MessageDateComparator
2010-05-19 18:17:06 +00:00
Jesse Vincent
ba021597c4
astyle
2010-05-12 02:51:59 +00:00
cketti
2121ebc012
Correctly encode attachment filenames with non-ASCII characters. Thanks to jca02266 who provided the base patch.
...
Fixes issue 1555
2010-05-11 15:05:50 +00:00
cketti
582c3f82b8
New preference setting to add buttons to attach images or videos which is needed to work around a bug in Gallery 3D. Buttons are enabled by default if a buggy Gallery 3D version is found.
...
Thanks to dman13 for providing the work-around and analysing the bug.
Fixes issue 1186
2010-05-02 18:24:33 +00:00
Jesse Vincent
8af7f4a7b6
find src/com/fsck/ -name \*.java|xargs astyle --style=ansi --mode=java --indent-switches --indent=spaces=4 --convert-tabs --unpad=paren
2010-04-29 04:59:14 +00:00
cketti
57cc4cd735
Code cleanup. Fixed lots of warnings reported by Eclipse.
...
- Removed unused imports
- Removed unused variables/code
- Parametrized raw types
- Added @Override annotations
- Added hashCode() when equals() was overriden
2010-04-16 12:20:10 +00:00
cketti
f911b0e436
Added support for the Android 1.6 intent android.intent.action.SEND_MULTIPLE in a way that should work on older devices too. Worked fine in the Android 1.5 emulator.
...
Fixes issue 1210
2010-04-02 01:43:56 +00:00
Jesse Vincent
8ca034c3db
Patch for issue 946: Only able to get contacts from a primary google
...
account by cketti
2010-03-23 03:19:12 +00:00