1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-25 00:58:50 -05:00

Should not use double-quoted empty string.

Some host may reject such the From address.
This commit is contained in:
Koji Arai 2011-02-17 00:32:21 +09:00
parent d1d7b5fb70
commit 68381d4725

View File

@ -189,7 +189,7 @@ public class Address {
} }
public String toEncodedString() { public String toEncodedString() {
if (mPersonal != null) { if (mPersonal != null && !mPersonal.equals("")) {
return EncoderUtil.encodeAddressDisplayName(mPersonal) + " <" + mAddress + ">"; return EncoderUtil.encodeAddressDisplayName(mPersonal) + " <" + mAddress + ">";
} else { } else {
return mAddress; return mAddress;