Update of /cvsroot/mrpostman/mrpostman/src/org/mrbook/mrpostman/hotmail
In directory sc8-pr-cvs1:/tmp/cvs-serv31438
Modified Files:
HotmailMailSession.java
Log Message:
UIDL MD5 fix + checkstyle changes
Index: HotmailMailSession.java
===================================================================
RCS file: /cvsroot/mrpostman/mrpostman/src/org/mrbook/mrpostman/hotmail/HotmailMailSession.java,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -d -r1.27 -r1.28
*** HotmailMailSession.java 28 Jul 2003 11:28:12 -0000 1.27
--- HotmailMailSession.java 30 Jul 2003 02:08:41 -0000 1.28
***************
*** 882,886 ****
*/
public String getUniqueMessageId(int num) throws MailSessionException {
! //This is based on work by Peter Joanes
try {
ByteArrayOutputStream bos = new ByteArrayOutputStream();
--- 882,886 ----
*/
public String getUniqueMessageId(int num) throws MailSessionException {
! //This is based on work by Peter Joanes. Thanks Peter!
try {
ByteArrayOutputStream bos = new ByteArrayOutputStream();
***************
*** 888,899 ****
retrieveMessage(num, pw, 1);
bos.flush();
! if(logger.isLoggable(Level.FINEST)) {
! String header = bos.toString();
! logger.finest("Returning a hashcode of header field: "
+ header);
}
byte[] data = bos.toByteArray();
MD5 md5 = new MD5();
! md5.update(data,0,data.length);
String hash = Util.toString(md5.digest());
logger.finest("Returning hash: " + hash);
--- 888,899 ----
retrieveMessage(num, pw, 1);
bos.flush();
! if (logger.isLoggable(Level.FINEST)) {
! String header = bos.toString();
! logger.finest("Returning a hashcode of header field: "
+ header);
}
byte[] data = bos.toByteArray();
MD5 md5 = new MD5();
! md5.update(data, 0, data.length);
String hash = Util.toString(md5.digest());
logger.finest("Returning hash: " + hash);
|