[Webfunds-commits] java/webfunds/sox MailItem.java
Ian Grigg
iang@cypherpunks.ai
Tue, 27 Feb 2001 10:15:02 -0400 (AST)
iang 01/02/27 10:15:01
Modified: webfunds/sox MailItem.java
Log:
realigned the block of UNALLOCATED numbers with the OpenPGP standard,
for familiarity
Revision Changes Path
1.7 +15 -5 java/webfunds/sox/MailItem.java
Index: MailItem.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/sox/MailItem.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- MailItem.java 2000/06/20 09:57:36 1.6
+++ MailItem.java 2001/02/27 14:15:01 1.7
@@ -1,5 +1,5 @@
/*
- * $Id: MailItem.java,v 1.6 2000/06/20 09:57:36 iang Exp $
+ * $Id: MailItem.java,v 1.7 2001/02/27 14:15:01 iang Exp $
*
* Copyright (c) Systemics Ltd 1995-1999 on behalf of
* the WebFunds Development Team. All Rights Reserved.
@@ -25,10 +25,16 @@
/**
* Mail Type numbers.
- * 0-111 reserved for SOX.
- * 112-127 deliberately unallocated as experimental block.
- * 128-143 Systemics application stuff.
+ *
+ * 0-99 reserved for SOX.
+ * (was 0-111)
+ * 100-110 deliberately unallocated as experimental block.
+ * (was 112-127)
+ * 111-143 Systemics application stuff.
+ * (was 128-143)
* 144... Higher for application level numbers.
+ *
+ * (Realigned to make the unallocated block the same as OpenPGP numbers.)
*/
public final static int RECEIPT = 1;
@@ -44,6 +50,8 @@
/**
* The mail packet as it is passed over the net, and signed for.
+ * This might be a MailItem, or it might be a Receipt, or it
+ * might even be a Receipt within a MailItem :(
*/
protected byte[] buf;
public int hashCode() { return buf.hashCode(); }
@@ -123,7 +131,9 @@
//
- // Only way to build an old Receipt in a Mailbuf?
+ // Only way to build a Receipt or LaMassana-side Mail into a MailItem?
+ // The normal decode method results in an extra byte array being
+ // stripped off.
//
public void init(byte[] oldBuf)
throws SOXPacketException