1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-10 19:45:05 -05:00
Commit Graph

1432 Commits

Author SHA1 Message Date
Joe Steele
bfb0316583 Fix fatal IndexOutOfBoundsException
The problem:

Configure the account (just an example -- problems can occur in other
configurations as well):
Message Format: HTML
Reply quoting style: Prefix
Quote message when replying: yes
Reply after quoted text: yes

Reply to a message that has a large quantity (20+) of \r\n scattered in
the body of its HTML version (not an unusual scenario).

Add a reply.  Save the message as a draft.  Go back & open the draft
again.  A fatal IndexOutOfBoundsException occurs.

The cause:

When the draft was saved, the X-K9mail-Identity header was computed and
added to the message, then the text of the message was processed with
MimeUtility.fixDraftTextBody, replacing all occurrences of \r\n with \n in
the quoted message before being saved in LocalStore, thus invalidating the
X-K9mail-Identity header.

The fix:

Remove MimeUtility.fixDraftTextBody and implement
MessageCompose$EolConvertingEditText instead.  Any message text placed in
an EolConvertingEditText widget is assured to have \n line endings.  Any
message text extracted from an EolConvertingEditText widget is assured to
have \r\n line endings.  The X-K9mail-Identity header will always be
computed correctly.

Issues thought to be related:  4782, 5010, 5634, 5725

As noted in some of the referenced issues, errors didn't always result in
a fatal exception, but instead with mixed up text.

Ref:  commit f9a35aeaee
2013-10-11 11:39:15 -04:00
Jesse Vincent
31b3646fc8 4.700 changelog 2013-10-10 20:42:22 -04:00
Jesse Vincent
decf9b7f6b Merge pull request #390 from bboa/master
Update strings.xml
2013-09-29 12:57:32 -07:00
pyler
72e9b3e5b8 Updated Slovak translation 2013-09-27 19:38:54 +02:00
cketti
f964cf40a4 Change wording in changelog; fix typos 2013-09-26 03:43:04 +02:00
Danny Baumann
9865968f46 Update German translation 2013-09-25 15:26:32 +02:00
cketti
2b7f5e7b70 Merge branch 'pick_attachment_fix'
Update LocalStore code to handle the newly introduced temporary files
for attachments

Conflicts:
	res/values/strings.xml
	src/com/fsck/k9/activity/MessageCompose.java
2013-09-25 05:22:00 +02:00
cketti
677d6c923d Don't stop the activity before attachments have been fetched
Display a progress dialog when the user tries to send the message or
save a draft and the attachments haven't been fetched completely.
2013-09-25 03:46:11 +02:00
cketti
62aa1b87d0 Fetch attachments while MessageCompose activity is running
Android allows other apps to access protected content of an app without requesting the
necessary permission when the app returns an Intent with FLAG_GRANT_READ_URI_PERMISSION.
This regularly happens as a result of ACTION_GET_CONTENT, i.e. what we use to pick content
to be attached to a message. Accessing that content only works while the receiving activity
is running. Afterwards accessing the content throws a SecurityException because of the
missing permission.
This commit changes K-9 Mail's behavior to copy the content to a temporary file in K-9's
cache directory while the activity is still running.

Fixes issue 4847, 5821

This also fixes bugs related to the fact that K-9 Mail didn't save a copy of attached content
in the message database.

Fixes issue 1187, 3330, 4930
2013-09-25 03:12:34 +02:00
russian k-9 mail user
ecf9e24469 Update strings.xml
(RU) Various improvements and fixes. The some terms are unified with desktop clients (e. g. Sylpheed).
2013-09-24 20:02:42 +04:00
Sander Bogaert
99942381cc Fix type in settings string 'visisble'. 2013-09-23 11:50:34 +02:00
Koji Arai
f93bade5df Updated Japanese translation of the changelog. 2013-09-19 00:17:21 +09:00
Koji Arai
80232132c5 Added detailed description for narrow devices 2013-09-18 16:52:17 +09:00
Koji Arai
852114d639 Updated Japanese translation. catch up with 58e7732. 2013-09-18 16:52:10 +09:00
Jesse Vincent
0b7cee6cc9 4.512 changelog 2013-09-16 10:13:56 -04:00
Andrew Chen
fdda5768fe Merge pull request #384 from bboa/patch-1
Update ru strings.xml
2013-09-13 14:38:23 -07:00
Andrew Chen
58e7732996 Add IMAP support for Outlook.com.
IMAP is no longer a Plus feature; removing the note saying that it is.

http://blogs.office.com/b/microsoft-outlook/archive/2013/09/12/outlook-com-now-with-imap.aspx
2013-09-13 14:36:02 -07:00
russian k-9 mail user
ebb8dcdc02 Update strings.xml 2013-09-13 13:22:47 +04:00
cketti
02c323e74a Clean up translations 2013-09-12 23:42:04 +02:00
cketti
444e6184d8 Merge pull request #382
Update russian translation
2013-09-12 23:27:02 +02:00
cketti
f12ae4e7d0 Merge pull request #379
Update French translation
2013-09-12 23:25:14 +02:00
russian k-9 mail user
ab7315e2f1 Update strings.xml
Updates and improvements (RU)
2013-09-12 19:16:26 +04:00
Erkan
68bcde5562 Update strings.xml 2013-09-11 12:40:45 +02:00
Jan Urbánek
e3bcdb9c82 new strings translation 2013-09-09 15:57:39 +02:00
Danny Baumann
887ee1ceb2 Small fix for German translation 2013-09-08 19:53:48 +02:00
m0viefreak
69a12761c7 german translation: add missing strings 2013-09-08 17:21:30 +02:00
m0viefreak
28742d77e9 german translation: use "neu erstellen" instead of "wiederherstellen"
"wiederherstellen" actually means "to restore", which does not
apply here, and makes people think these options are some sort of
backup/restore operation.

use the proper translation of "re-create" -> "neu erstellen" instead.
2013-09-08 16:40:12 +02:00
cketti
d357e02544 Merge pull request #373
Update Russian translation
2013-09-02 22:23:56 +02:00
cketti
e2731bc570 Merge pull request #372
Update Slovak translation
2013-09-02 22:23:33 +02:00
cketti
56be846035 Merge pull request #371
Update French translation
2013-09-02 22:23:09 +02:00
cketti
79326cb64e Merge pull request #370
Update provider settings for GMX
2013-09-02 22:22:28 +02:00
russian k-9 mail user
b9110f9293 Update strings.xml
Updates and improvements (RU)
2013-09-02 23:31:41 +04:00
Jesse Vincent
0c9807c2ee 4.511 changelog 2013-08-31 11:57:44 -04:00
pyler
f72309b431 SK translation 2013-08-31 17:43:35 +02:00
Léo Colombaro
0808283543 Fix & Update French Translations
* Lire => Lu
* New translations
2013-08-30 17:03:03 +02:00
nysatrok
01096d5db8 Update providers.xml according to https://autoconfig.thunderbird.net/v1.1/gmx.de 2013-08-30 14:39:41 +00:00
cketti
ef467eb806 Run script to sync translations 2013-08-29 21:24:58 +02:00
cketti
22e6c8cdbe Add visual indicator that a menu item opens a submenu
This isn't the best solution. Most of the developers agree that a right-aligned
triangle or arrow would be a better fit for such an indicator. But we currently
don't have the time to write the code to do it.
Personally, I think we should try to get rid of submenus altogether.
2013-08-29 21:24:15 +02:00
cketti
fb6cff238c Merge branch 'pr/364'
Make actions shown in message view menu configurable
2013-08-29 21:14:04 +02:00
cketti
a32068f6cd Remove icons from the "Refile" submenu
We don't show icons in any other submenu.
2013-08-29 21:13:28 +02:00
cketti
fc14eff097 Add icon for the copy action 2013-08-29 20:54:36 +02:00
Jesse Vincent
91cc4e47c8 4.510 changelog 2013-08-27 16:14:44 -04:00
pyler
1966c1f38a SK translation 2013-08-27 11:32:35 +02:00
russian k-9 mail user
966562b473 Update strings.xml
New strings added
2013-08-26 00:18:38 +04:00
Leon Handreke
22639a7361 Make actions shown in message view menu configurable
Fixes #5850.
2013-08-24 19:26:06 +01:00
Jesse Vincent
d78df526e8 4.509 changelog 2013-08-23 13:36:36 -04:00
DrSegatron
467d4f3f75 Update strings.xml
Improved spelling
2013-08-23 13:10:37 +02:00
Jesse Vincent
b5f31af402 tweak list item "read item" background color so you can see the item divider
a bit better
2013-08-22 21:08:51 -04:00
Jesse Vincent
65ed9072bf clean up the folder list item chips 2013-08-22 21:08:51 -04:00
Jesse Vincent
7ba68dbc3c update the new message list item to work better in various odd configurations 2013-08-22 21:08:51 -04:00