I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit cd51c9b3 authored by zzz's avatar zzz
Browse files

susimail tweaks

parent 46a34218
No related branches found
No related tags found
No related merge requests found
...@@ -323,9 +323,9 @@ class Mail { ...@@ -323,9 +323,9 @@ class Mail {
shortSender = shortSender.substring(0, lt).trim(); shortSender = shortSender.substring(0, lt).trim();
else if (lt < 0 && shortSender.contains("@")) else if (lt < 0 && shortSender.contains("@"))
shortSender = '<' + shortSender + '>'; // add missing <> (but thunderbird doesn't...) shortSender = '<' + shortSender + '>'; // add missing <> (but thunderbird doesn't...)
boolean trim = shortSender.length() > 25; boolean trim = shortSender.length() > 35;
if (trim) if (trim)
shortSender = shortSender.substring( 0, 22 ).trim(); shortSender = shortSender.substring( 0, 32 ).trim();
shortSender = html.encode( shortSender ); shortSender = html.encode( shortSender );
if (trim) if (trim)
shortSender += "&hellip;"; // must be after html encode shortSender += "&hellip;"; // must be after html encode
......
...@@ -34,7 +34,6 @@ import java.io.ByteArrayOutputStream; ...@@ -34,7 +34,6 @@ import java.io.ByteArrayOutputStream;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.net.Socket; import java.net.Socket;
import java.net.UnknownHostException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collection; import java.util.Collection;
import java.util.HashMap; import java.util.HashMap;
...@@ -611,12 +610,9 @@ public class POP3MailBox implements NewMailListener { ...@@ -611,12 +610,9 @@ public class POP3MailBox implements NewMailListener {
try { try {
socket = new Socket(host, port); socket = new Socket(host, port);
} catch (UnknownHostException e) {
lastError = e.toString();
return;
} catch (IOException e) { } catch (IOException e) {
Debug.debug( Debug.DEBUG, "Error connecting: " + e); Debug.debug( Debug.DEBUG, "Error connecting: " + e);
lastError = e.toString(); lastError = _t("Cannot connect") + " (" + host + ':' + port + ") - " + e.getLocalizedMessage();
return; return;
} }
if (socket != null) { if (socket != null) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment