diff --git a/apps/susimail/build.xml b/apps/susimail/build.xml index bb80ea274..4c0e49e6f 100644 --- a/apps/susimail/build.xml +++ b/apps/susimail/build.xml @@ -66,6 +66,10 @@ + + + + diff --git a/apps/susimail/src/css/print.css b/apps/susimail/src/css/print.css new file mode 100644 index 000000000..6f56a1fd9 --- /dev/null +++ b/apps/susimail/src/css/print.css @@ -0,0 +1,27 @@ +.header, .footer, .topbuttons, .bottombuttons { + display: none; +} + +p.error, p.info { + display: none; +} + +a.sort, img.sort { + display: none; +} + +input.optbox { + display: none; +} + +div.page, table { + width: 100%; + margin: 0; + float: none; +} + +textarea, input[type=text] { + border-style: none; + border-color: Transparent; + overflow: auto; +} diff --git a/apps/susimail/src/src/i2p/susi/webmail/WebMail.java b/apps/susimail/src/src/i2p/susi/webmail/WebMail.java index 1539a5cde..399b6f004 100644 --- a/apps/susimail/src/src/i2p/susi/webmail/WebMail.java +++ b/apps/susimail/src/src/i2p/susi/webmail/WebMail.java @@ -506,17 +506,17 @@ public class WebMail extends HttpServlet StringBuilder buf = new StringBuilder(128); buf.append(label).append(" "); if (name.equals(currentName) && currentOrder == Folder.SortOrder.UP) { - buf.append("\n"); + buf.append("\n"); } else { - buf.append(""); - buf.append(""); + buf.append(""); + buf.append(""); buf.append("\n"); } if (name.equals(currentName) && currentOrder == Folder.SortOrder.DOWN) { - buf.append(""); + buf.append(""); } else { - buf.append(""); - buf.append(""); + buf.append(""); + buf.append(""); buf.append(""); } return buf.toString(); @@ -711,8 +711,8 @@ public class WebMail extends HttpServlet String host = request.getParameter( HOST ); String pop3Port = request.getParameter( POP3 ); String smtpPort = request.getParameter( SMTP ); - String fixedPorts = Config.getProperty( CONFIG_PORTS_FIXED, "true" ); - if( !fixedPorts.equalsIgnoreCase("false")) { + boolean fixedPorts = Boolean.parseBoolean(Config.getProperty( CONFIG_PORTS_FIXED, "true" )); + if (fixedPorts) { host = Config.getProperty( CONFIG_HOST, DEFAULT_HOST ); pop3Port = Config.getProperty( CONFIG_PORTS_POP3, "" + DEFAULT_POP3PORT ); smtpPort = Config.getProperty( CONFIG_PORTS_SMTP, "" + DEFAULT_SMTPPORT ); @@ -1702,21 +1702,23 @@ public class WebMail extends HttpServlet out.println( "\n" + "\n" ); } + if(sessionObject.state != STATE_AUTH) + out.println(""); if (sessionObject.state == STATE_NEW) { // TODO cancel if to and body are empty out.println( - "" ); } out.println( "\n\n" + - "\n" + + "\n" + "" ); if( sessionObject.error != null && sessionObject.error.length() > 0 ) { @@ -1744,7 +1746,7 @@ public class WebMail extends HttpServlet showConfig(out, sessionObject); //out.println( "\n