|
From: Pelle B. <pe...@us...> - 2004-03-22 20:20:37
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/senders In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11947/src/java/org/neuclear/id/senders Modified Files: Sender.java SmtpSender.java Log Message: Added simple ledger for unit testing and in memory use Index: SmtpSender.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/senders/SmtpSender.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** SmtpSender.java 2 Mar 2004 18:59:10 -0000 1.1 --- SmtpSender.java 22 Mar 2004 20:09:46 -0000 1.2 *************** *** 8,11 **** --- 8,14 ---- * $Id$ * $Log$ + * Revision 1.2 2004/03/22 20:09:46 pelle + * Added simple ledger for unit testing and in memory use + * * Revision 1.1 2004/03/02 18:59:10 pelle * Further cleanups in neuclear-id. Moved everything under id. *************** *** 21,26 **** * NamedObjectBuilder/SignedNamedObject Pairs. * Sample application has been expanded with a basic email application. ! * Updated docs for sample web app. ! * Added missing LGPL LICENSE.txt files to signer and sample app * * Revision 1.15 2003/12/10 23:58:52 pelle --- 24,29 ---- * NamedObjectBuilder/SignedNamedObject Pairs. * Sample application has been expanded with a basic email application. ! * Updated docs for simple web app. ! * Added missing LGPL LICENSE.txt files to signer and simple app * * Revision 1.15 2003/12/10 23:58:52 pelle *************** *** 142,146 **** public final class SmtpSender extends Sender { ! public final SignedNamedObject send(String endpoint, final SignedNamedObject obj) throws NeuClearException,UnsupportedEndpointException { final Properties props = System.getProperties(); if (endpoint.startsWith("mailto:")) --- 145,149 ---- public final class SmtpSender extends Sender { ! public final SignedNamedObject send(String endpoint, final SignedNamedObject obj) throws NeuClearException, UnsupportedEndpointException { final Properties props = System.getProperties(); if (endpoint.startsWith("mailto:")) *************** *** 198,201 **** --- 201,205 ---- return "du...@ne..."; } + private static final Pattern SENDER = Pattern.compile("^(mailto:)([\\w-.]+\\@[\\w-.]+)"); Index: Sender.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/senders/Sender.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Sender.java 2 Mar 2004 18:59:10 -0000 1.1 --- Sender.java 22 Mar 2004 20:09:43 -0000 1.2 *************** *** 8,11 **** --- 8,14 ---- * $Id$ * $Log$ + * Revision 1.2 2004/03/22 20:09:43 pelle + * Added simple ledger for unit testing and in memory use + * * Revision 1.1 2004/03/02 18:59:10 pelle * Further cleanups in neuclear-id. Moved everything under id. *************** *** 20,25 **** * NamedObjectBuilder/SignedNamedObject Pairs. * Sample application has been expanded with a basic email application. ! * Updated docs for sample web app. ! * Added missing LGPL LICENSE.txt files to signer and sample app * * Revision 1.13 2003/12/10 23:58:52 pelle --- 23,28 ---- * NamedObjectBuilder/SignedNamedObject Pairs. * Sample application has been expanded with a basic email application. ! * Updated docs for simple web app. ! * Added missing LGPL LICENSE.txt files to signer and simple app * * Revision 1.13 2003/12/10 23:58:52 pelle |