|
From: <bob...@us...> - 2003-11-04 07:00:32
|
Update of /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/transport
In directory sc8-pr-cvs1:/tmp/cvs-serv3213/src/hk/hku/cecid/phoenix/message/transport
Modified Files:
Mail.java
Log Message:
Make smpt port configurable on msh.properties.xml
Change the behaviour that it will not throw exception if it cannot
verify the signature
Index: Mail.java
===================================================================
RCS file: /cvsroot/ebxmlms/ebxmlms/src/hk/hku/cecid/phoenix/message/transport/Mail.java,v
retrieving revision 1.40
retrieving revision 1.41
diff -C2 -d -r1.40 -r1.41
*** Mail.java 11 Jul 2003 03:50:35 -0000 1.40
--- Mail.java 4 Nov 2003 07:00:28 -0000 1.41
***************
*** 201,205 ****
*/
public static final String PROPERTY_JAVA_MAIL_SMTP_HOST_PORT =
! "mail.smtp.host.port";
/**
--- 201,205 ----
*/
public static final String PROPERTY_JAVA_MAIL_SMTP_HOST_PORT =
! "mail.smtp.port";
/**
***************
*** 338,341 ****
--- 338,343 ----
*/
private static boolean changeSubType;
+
+ private static String smtpPort = null;
protected static boolean isConfigured = false;
***************
*** 359,362 ****
--- 361,365 ----
smtpHost = prop.get(PROPERTY_MAIL_SMTP_HOST);
+ smtpPort = prop.get(PROPERTY_MAIL_SMTP_HOST_PORT);
smtpAuthUser = prop.get(PROPERTY_MAIL_SMTP_AUTH_USER);
smtpAuthPass = prop.get(PROPERTY_MAIL_SMTP_AUTH_PASS);
***************
*** 507,510 ****
--- 510,516 ----
final Properties properties = new Properties();
properties.put(PROPERTY_JAVA_MAIL_SMTP_HOST, smtpHost);
+ if (smtpPort != null) {
+ properties.put(PROPERTY_JAVA_MAIL_SMTP_HOST_PORT, smtpPort);
+ }
Session session;
|