Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 70257 invoked by uid 500); 19 Feb 2002 13:27:18 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 70242 invoked from network); 19 Feb 2002 13:27:18 -0000 Message-ID: <20020219132718.85632.qmail@web12805.mail.yahoo.com> Date: Tue, 19 Feb 2002 05:27:18 -0800 (PST) From: Davanum Srinivas Reply-To: dims@yahoo.com Subject: Re: EmailTransformer and Mock Classes Update To: cocoon-dev@xml.apache.org In-Reply-To: <07916EDB-24E2-11D6-98E4-0030654777A6@mac.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Stuart, Is this a contribution? If yes, Thanks for your contribution. Can i ask you for a few more changes? 1. Test cases should be under xml-cocoon2\src\test 2. Change com.adolos.cocoon to something more that appropriate. 3. A stand-alone sample that can be used for illustration of how to use the Transformer as well as for testing... 4. Please submit diffs against the latest CVS at Bugzilla (http://nagoya.apache.org). So that things don't get lost in the email deluge. Thanks, dims --- Stuart Roebuck wrote: > The first real incarnation of our EmailTransformer has been uploaded with > unit tests and associated mock classes to: > > > > I've taken a look at the David Bigwood's Metatomix SendMailTransformer > contribution and decided they are sufficiently different that attempting > to merge them wasn't going to be a quick task. > > David's code seems to be a good option for creating emails with HTML > content - I've made no explicit provision for these in ours though it may > just work with an included 'file' derived from an HTML source in the > sitemap. > > The key drive for our code was to be able to send emails with attachments > and inline graphic files. This version now does that by allowing you to > reference any source file to be included in the email. As the file is > specified in the useful sitemap file reference syntax it is possible to > include graphics or other files that have been generated through the > sitemap. (at least it seems to work :-) ) > > Here's an example of the syntax: > > > > > > > test@somewhere.com > > Fred Bloggs <fredbloggs@somewhere.co.uk> > > copyperson@overthere.com > > secretperson@myothercompany.com > > Test > > The body text > > > disposition="inline" /> > > Some more text > > > "attachment" /> > > > > > > For multiple recipients the email addresses can be comma delimited or you > can supply multiple entries. > > I've created a NonClosingBufferedInputStream class to enable an > InputStreamDataHandler to be used to re-read from the same InputStream, > which feels like a bit of a cludge, but it works. Any suggestions of a > more elegant solutions are most welcome! > > I've also updated the Mock Classes a little to allow a Source to be > pre-determined in unit tests. > > Stuart. > > > > Public Key - 1024D/88DD65AF 2001-11-23 Stuart Roebuck (Adolos) > Key fingerprint = 89D9 E405 F8B1 9B22 0FA2 F2C1 9E57 5AB1 88DD 65AF > ------------------------------------------------------------------------- > Stuart Roebuck stuart.roebuck@adolos.com > Systems Architect Java, XML, MacOS X, XP, etc. > ADOLOS > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org > For additional commands, email: cocoon-dev-help@xml.apache.org > ===== Davanum Srinivas - http://jguru.com/dims/ __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org