cketti
171711fa9c
Remove trailing space from IMAP command
...
This could be the cause of the error reported in issue 3089.
2011-03-04 03:36:52 +01:00
Koji Arai
da34a5ec8c
Avoid IllegalArgumentException for Charset.forName(null).
2011-03-02 00:59:20 +09:00
cketti
766674c27c
Code/comment cleanup
2011-02-26 23:04:49 +01:00
Jesse Vincent
c7a3b28289
Change our technique for sending \r\n at the end of smtp commands to
...
deal with a weird failure on honeycomb
2011-02-26 16:53:53 -05:00
cketti
6f90d791b5
Removed dependency on (external) commons-codec and commons-logging
2011-02-26 17:36:18 +01:00
cketti
397d01d513
Fix bug with partitioning of IMAP FETCH commands
2011-02-21 21:07:56 +01:00
Matt Johnston
d43f17ab94
Use java.util.zip for inflating
...
Can't use it for deflating since it doesn't have Z_PARTIAL_FLUSH
2011-02-21 04:57:46 +08:00
Matt Johnston
eb9fca69c6
Don't need to reparse addresses from database
2011-02-21 02:45:40 +08:00
cketti
ea590cbe39
Removed unused import + constant
2011-02-20 06:25:19 +01:00
cketti
ad159b3093
Merge branch 'hardcoded_outbox' into HEAD
2011-02-20 05:14:22 +01:00
cketti
737cff0612
Hardcode folder name for (local) outbox and don't show outbox when
...
only being allowed to select remote folders.
2011-02-20 04:47:28 +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
a7a690e6ff
Simplify getTextForDisplay() and fix a potential ClassCastException
2011-02-19 15:25:09 -05:00
Koji Arai
68381d4725
Should not use double-quoted empty string.
...
Some host may reject such the From address.
2011-02-17 00:41:55 +09:00
wongk
5c6e86006d
Support non-English Exchange installations.
2011-02-15 19:05:08 -05:00
Jesse Vincent
7cbbd72fac
Astyle
2011-02-13 21:20:21 -05:00
unknown
42edb24c4b
Merge branch 'master' of https://github.com/k9mail/k-9
2011-02-12 16:24:56 -05:00
unknown
9d0201edae
Correctly verify when the user is authenticated or not. Handle "quasi-absolute" form targets during authentication.
2011-02-12 16:10:12 -05:00
Matt Johnston
ae2c933181
Destroy all messages in one sqlite transaction
2011-02-11 15:30:50 -05:00
Andrew Chen
a51daf9798
Use interface Map.Entry.
2011-02-09 11:06:01 -08:00
Jesse Vincent
7cd99bdfd2
When some message has an Application/octet-stream .jpg attachment, be a
...
bit more lenient and treat it as application/octet-stream, so we can
look up the content type by file extension
2011-02-07 20:34:08 -05:00
Jesse Vincent
bb1e66c70d
If android's content-type lookup says "why yes, I have no idea what that
...
is", at least look at our local list
2011-02-07 20:33:46 -05: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
cketti
d2561f19af
Removed unused imports
...
git-svn-id: https://k9mail.googlecode.com/svn/k9mail/trunk@3270 9a7fa126-a48b-11dd-a887-7ffe1a420f8d
2011-02-04 23:19:07 -05:00
Dan Applebaum
40bdf99925
Fixes Issue 2934 Fixes Issue 2935
...
Provides for storing Folder Settings in the central Preferences
Storage as a back-up to the settings stored on each folder. In this
way, even if the LocalStore DB is recreated or otherwise lost, Folder
Settings can be recovered.
1) Does not change the methodology used to read settings while
running, nor the changes in r3107 & r3116 which tremendously improve
Accounts list loading time.
2) Loads Folder Settings from Preferences and stores on the folder
only when creating a new LocalFolder
3) Saves Folder Settings to Preferences and the DB row every time the
Folder Settings are changed.
4) When upgrading from DB version 41 to 42 or later, copies all
settings for existing folders from the DB storage to the Preferences
Storage.
5) Transactional bulk folder creation and single pass local folder
existence check during "Refresh folders" operation drastically reduces
time spent when refreshing folders from the remote store.
6) Uses prepared statement during Editor commit to reduce Preference
storing time.
Probably needs a reversion of r3239, but I'm unfamiliar with
translations, so am leaving that to others' discretion.
2011-02-04 23:19:06 -05:00
Andrew Chen
5fa757bba1
Only include name with an address if it's non-empty.
2011-02-03 03:35:50 +00:00
Jesse Vincent
ff0f517cbb
Configure MIME4J to not die when there are long header lines or a large message header
2011-02-01 20:48:20 +00:00
Kris Wong
9e5435a5f3
Fix the ability to accept invalid SSL certificates for exchange support.
2011-02-01 13:15:54 +00:00
Jesse Vincent
3d090e9626
astyle
2011-01-31 23:45:23 +00:00
Jesse Vincent
6550151684
Add serialVersionUID to Serializable classes to make eclipse happy
2011-01-31 23:45:14 +00:00
Jesse Vincent
4d5381f33d
Turns out to be some code which tries to be clever about removing the
...
multipart envelope in LocalStore.java. It is thrown away if there is
just one item in the multipart. This breaks the display of attachment
only message, since the attachment is no longer detected by the code
which creates the view. I made a fix (see patch below) which checks if
the single item in the multipart is not a attachment.
-- patch from wernermann29 at googlemail.com
2011-01-31 01:54:27 +00:00
cketti
bec094326a
Make decodeQ() actually use the "fixed up" string. Will fix Q-encoded subjects where space is encoded as "_".
...
Fixes issue 2926
2011-01-30 03:00:46 +00:00
HIRANO Takahito
07814db9f4
Fix range check for ISO-2022-JP stream.
...
Signed-off-by: HIRANO Takahito <hiranotaka@zng.info>
2011-01-29 17:56:58 +00:00
cketti
a213ca2fb7
Correctly parse email addresses (from contacts). Could be of the form "User name <user@example.com>".
...
Fixes issue 2920
2011-01-28 06:01:10 +00:00
cketti
e5b172b7bb
Fix warnings
2011-01-25 02:36:08 +00:00
Marcus Wolschon
ba24fdc742
update issue 2744
...
try all addresses of a host.
(Fix is required for proper operation in IPv4-only/IPv6-only networks
for IPv4/IPv6 dual-stack mail-hosts)
2011-01-24 15:09:36 +00:00
Jesse Vincent
04e4dcb187
code reindenting
2011-01-24 03:27:26 +00:00
Jesse Vincent
59b3c1ba89
Extract out the list of folder columns
2011-01-24 03:27:19 +00:00
Jesse Vincent
22f422ea29
Use a heuristic to try to avoid notifying POP3 users about older mail
...
messages
2011-01-24 03:27:14 +00:00
Jesse Vincent
7858f72c53
Remove commented out code. that's what a version control system is for
2011-01-24 03:27:08 +00:00
Jesse Vincent
3444bb4134
Remove some duplicate code in the pop3 implementation
2011-01-24 03:26:57 +00:00
cketti
6a2233cdd0
Removed unnecessary imports
2011-01-23 13:59:15 +00:00
Jesse Vincent
24d03ce662
Deal with potential NPEs if folders aren't set up, as happens on new
...
accounts
2011-01-23 02:26:14 +00:00
Jesse Vincent
c06643bd47
Add a preference to allow users to always show email addresses instead
...
of the "friendly" parts of email addresses.
2011-01-23 00:55:46 +00:00
Jesse Vincent
a234c39722
astyle
2011-01-19 21:33:23 +00:00
Jesse Vincent
8329a0287b
Upgrade to mime4j. "0.7" branch as of
...
http://svn.apache.org/repos/asf/james/mime4j/trunk@1058339
2011-01-19 21:32:09 +00:00
cketti
bcb1131cb5
Don't rely on FolderClass implementation details outside of FolderClass
2011-01-19 01:50:28 +00:00
cketti
22834d6998
Removed unnecessary null pointer checks
2011-01-19 01:30:13 +00:00
cketti
7119c7165f
Removed unnecessary type casts
2011-01-19 01:21:27 +00:00
cketti
72d2d24cec
Fixed potential null pointer access
2011-01-19 00:13:58 +00:00
cketti
8279092070
Fixed lots of warnings (unused imports/variables, missing annotations, etc.)
2011-01-18 23:54:49 +00:00
Jesse Vincent
951dbcbd33
Set up some reasonableish defaults when creating folders
2011-01-18 00:04:24 +00:00
Jesse Vincent
65e89afc40
remove a duplicate codepath for folder insert
2011-01-18 00:04:17 +00:00
Marcus Wolschon
30767c3bd9
Fixed NullPointerExceptions
2011-01-17 10:28:58 +00:00
Jesse Vincent
6504d592ea
Try harder not to use "special folders" as count sources
2011-01-17 04:06:34 +00:00
Jesse Vincent
890564b926
Missed a case for stats computation
2011-01-17 03:22:30 +00:00
Jesse Vincent
30fed01784
Replace the expensive part of Account.getStats() that loaded all folders
...
and iterated through them with a SQL query.
2011-01-16 21:33:58 +00:00
Jesse Vincent
76e1165fea
we no longer need the special version of getDisplayClass
2011-01-16 21:33:39 +00:00
Jesse Vincent
5fb8b7c7e5
only do one preferences update per account when upgrading. Big perf
...
boost
2011-01-16 04:23:12 +00:00
Jesse Vincent
38ba071172
astyle
2011-01-16 04:23:08 +00:00
Jesse Vincent
4d0f489ab4
Initial implementation of folder attributes on the folder, rather than in preferences
2011-01-16 04:23:03 +00:00
Jesse Vincent
cafa08fc6a
generalize some repeated code
2011-01-16 04:22:59 +00:00
Jesse Vincent
ab5c7ea6ff
Refactoring of emoji transcoding code into the htmlconverter class
2011-01-15 15:25:48 +00:00
Jesse Vincent
4dcf32d2a9
Call the routine to convert emoji to images only when a message actually contains emoji.
...
This is to solve the performance issue repoted by jesse in Issue 2657.
Signed-off-by: HIRANO Takahito <hiranotaka@zng.info>
2011-01-15 15:25:42 +00:00
Jesse Vincent
aacb414004
astyle
2011-01-14 01:37:52 +00:00
Jesse Vincent
d1a1b12aae
Support emoji in subjects.
...
Signed-off-by: HIRANO Takahito <hiranotaka@zng.info>
2011-01-14 00:53:19 +00:00
Jesse Vincent
e36ead77c4
ant doesn't like the unicode symbol
2011-01-13 16:28:57 +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
cketti
3aba9e11ae
Code/comment cleanup
2011-01-11 03:40:43 +00:00
cketti
d403e36f06
Don't count on skip() to actually skip as many bytes as requested.
2011-01-11 03:27:58 +00:00
cketti
c7a7d832e7
Better handle the case where a list in an IMAP response is prematurely ended by CRLF.
...
Fixes issue 2852
2011-01-11 03:10:24 +00:00
Jesse Vincent
9c847d3e9d
minor code cleanup
2011-01-06 16:55:34 +00:00
Jesse Vincent
de806f7715
astyle
2011-01-06 16:55:08 +00:00
cketti
f9f6160719
Correctly encode/escape strings when used in IMAP commands.
...
Fixes issue 2832
2011-01-06 00:39:09 +00:00
Jesse Vincent
9f4790088e
Escape backslashes in IMAP mailbox names
2011-01-05 13:12:30 +00:00
Andrew Chen
ead632aac6
Refactor html/text conversions into its own class.
...
Add more tags to be ignored during HTML to plain text conversion.
Remove UTF-8 non-breaking spaces from generated text.
2011-01-05 04:26:33 +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
Andrew Chen
f3e75d564a
Add custom HTML tag handler to be used when converting HTML to Text.
...
Hides code in STYLE and SCRIPT tags and adds text-equivalent of HR.
2011-01-04 06:58:13 +00:00
Jesse Vincent
40344aea41
support iPad mail too
2011-01-03 18:12:35 +00:00
Jesse Vincent
0a8514888e
Map emoji code points defined by mobile carriers to ones defined by
...
Google in order to support various carriers. Patch by HIRANO Takahito
<hiranotaka@zng.info>
2011-01-03 18:07:44 +00:00
Andrew Chen
68ded8aa3e
Add some more documentation about temporary notification avoidance code using UIDs.
2011-01-03 03:26:31 +00:00
Andrew Chen
e794af0bbf
Prevent new mail notifications if they're older than our most recent message.
...
First attempt at fixing Issue 1276. Only works with services that use numeric message IDs, like IMAP.
2011-01-02 09:01:23 +00:00
cketti
fe724c8c79
Changed SMTP code to handle reply codes without additional text.
...
Fixes issue 2801
2011-01-01 18:45:33 +00:00
Jesse Vincent
29fdb81f9b
Fix for the "K9 skips every 101st message when fetching on IMAP" bug by
...
e-t172 <e-t172@akegroup.org>. Fixes Issue 2819
2010-12-30 23:57:41 +00:00
Fiouz
47762a9baa
Remove coupling between ImapStore and ImapConnection by adding an settings indirection interface. Purpose: use the IMAP connection code to validate credentials without having an actual ImapStore instance.
2010-12-30 21:57:59 +00:00
Andrew Chen
605a0bdc93
Add more comments about LocalTextBody.
...
Display decrypted PGP data as text/plain (content type was being set, but not being passed to WebViews).
2010-12-29 07:34:57 +00:00
Jesse Vincent
4c9c478d8d
minor code and doc cleanups as recommended by IntelliJ
2010-12-28 09:10:50 +00:00
Jesse Vincent
bbf65f1335
remove temporary variables
2010-12-28 09:10:30 +00:00
Jesse Vincent
7623a02852
lift the "get display text" code out of the messageview and into
...
localmessage
2010-12-28 09:07:39 +00:00
Andrew Chen
dc5616c4b6
Add a space between recipients when doing toString().
2010-12-25 01:36:48 +00:00
Jesse Vincent
f14c7ecd9b
doc & comment updates from achen.code
2010-12-25 00:27:09 +00:00
Jesse Vincent
9878b74379
astyle
2010-12-24 18:55:05 +00:00
Andrew Chen
2806c267c9
Remove unreadable characters from message previews.
2010-12-23 23:16:54 +00:00
Andrew Chen
302339545b
Try using IP address for EHLO if hostname is unavailable. Only use a default hostname if the IP address is unavailable. ref r2958, issue 2750.
2010-12-23 17:43:57 +00:00
Andrew Chen
6c52c8d927
Set a default hostname if we can't get the local hostname. Fixes issue 2750.
2010-12-23 17:15:20 +00:00
Andrew Chen
f5421f32b8
Fix bug where replaceAll result was being discarded.
...
Fix javadoc.
2010-12-22 22:08:15 +00:00
Fiouz
ab5caba92c
Factor out store locking code in an intermediate DB access layer.
2010-12-18 22:56:40 +00:00
Fiouz
c5f7dbf028
Execute LocalMessage.appendMessage() & LocalMessage.setFlag() in the same transaction for small message storing in order to speed up DB update.
...
This is a per message basis optimization. More improved speed could be attained by batching several messages in the same transaction.
2010-12-18 10:12:52 +00:00
Kris Wong
bb5052f848
Fix possible NPE.
2010-12-17 17:25:27 +00:00