Author: rdonkin Date: Tue Mar 11 12:51:27 2008 New Revision: 636081 URL: http://svn.apache.org/viewvc?rev=636081&view=rev Log: Added Search to builder and some new sample emails.
Added: james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/wild-alt-reply.mail james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/wild-mixed-alt.mail james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/wild-mixed.mail Modified: james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/CreateScript.java james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/ScriptBuilder.java Modified: james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/CreateScript.java URL: http://svn.apache.org/viewvc/james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/CreateScript.java?rev=636081&r1=636080&r2=636081&view=diff ============================================================================== --- james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/CreateScript.java (original) +++ james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/CreateScript.java Tue Mar 11 12:51:27 2008 @@ -26,6 +26,45 @@ notHeaderFetches(builder); } + + public static void searchAtoms(ScriptBuilder builder) throws Exception { + builder.login(); + builder.create(); + builder.select(); + builder.append(); + builder.setFile("wild-example.mail"); + builder.append(); + builder.setFile("multipart-alt.mail"); + builder.append(); + builder.setFile("multipart-mixed.mail"); + builder.append(); + builder.setFile("multipart-mixed-complex.mail"); + builder.append(); + builder.setFile("rfc822-hello-world.mail"); + builder.append(); + builder.setFile("rfc822-sender.mail"); + builder.append(); + builder.setFile("rfc822.mail"); + builder.append(); + builder.setFile("rfc822-multiple-addresses.mail"); + builder.append(); + builder.setFile("wild-alt-reply.mail"); + builder.append(); + builder.setFile("wild-mixed-alt.mail"); + builder.append(); + builder.setFile("wild-mixed.mail"); + builder.append(); + builder.setFile("rfc822-reply.mail"); + builder.append(); + builder.setFile("rfc822-resent.mail"); + builder.append(); + builder.setFile("rfc822-trace.mail"); + builder.append(); + builder.setFile("rfc822-group-addresses.mail"); + builder.append(); + builder.quit(); + } + public static void notHeaderFetches(ScriptBuilder builder) throws Exception { builder.login(); builder.create(); Modified: james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/ScriptBuilder.java URL: http://svn.apache.org/viewvc/james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/ScriptBuilder.java?rev=636081&r1=636080&r2=636081&view=diff ============================================================================== --- james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/ScriptBuilder.java (original) +++ james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/ScriptBuilder.java Tue Mar 11 12:51:27 2008 @@ -53,6 +53,7 @@ private boolean createdMailbox = false; private final Client client; private Fetch fetch = new Fetch(); + private Search search = new Search(); public ScriptBuilder(final Client client) { @@ -159,6 +160,14 @@ } } + public void search() throws Exception { + command(search.command()); + } + + public Search getSearch() throws Exception { + return search; + } + public void fetchSection(String section) throws Exception { final String body; if (peek) { @@ -226,6 +235,242 @@ delete(); logout(); close(); + } + + public static final class Search { + + private StringBuffer buffer; + private boolean first; + + public Search() { + clear(); + } + + public String command() { + return "SEARCH " + buffer.toString(); + } + + public void clear() { + buffer = new StringBuffer(); + first = true; + } + + private Search append(long term) { + return append(new Long(term).toString()); + } + + private Search append(String term) { + if (first) { + first = false; + } else { + buffer.append(' '); + } + buffer.append(term); + return this; + } + + private Search date(int year, int month, int day) { + append(day); + switch (month) { + case 1: + buffer.append("-Jan-"); + break; + case 2: + buffer.append("-Feb-"); + break; + case 3: + buffer.append("-Mar-"); + break; + case 4: + buffer.append("-Apr-"); + break; + case 5: + buffer.append("-May-"); + break; + case 6: + buffer.append("-Jun-"); + break; + case 7: + buffer.append("-Jul-"); + break; + case 8: + buffer.append("-Aug-"); + break; + case 9: + buffer.append("-Sep-"); + break; + case 10: + buffer.append("-Oct-"); + break; + case 11: + buffer.append("-Nov-"); + break; + case 12: + buffer.append("-Dec-"); + break; + } + buffer.append(year); + return this; + } + + public Search all() { + return append("ALL"); + } + + public Search answered() { + return append("ANSWERED"); + } + + public Search bcc(String address) { + return append("BCC " + address); + } + + public Search before(int year, int month, int day) { + return append("BEFORE").date(year, month, day); + } + + public Search body(String text) { + return append("BODY").append(text); + } + + public Search cc(String address) { + return append("CC").append(address); + } + + public Search deleted() { + return append("DELETED"); + } + + public Search draft() { + return append("DRAFT"); + } + + public Search flagged() { + return append("FLAGGED"); + } + + public Search from(String address) { + return append("FROM").append(address); + } + + public Search header(String field, String value) { + return append("HEADER").append(field).append(value); + } + + public Search keyword(String flag) { + return append("KEYWORD").append(flag); + } + + public Search larger(long size) { + return append("LARGER").append(size); + } + + public Search NEW() { + return append("NEW"); + } + + public Search not() { + return append("NOT"); + } + + public Search old() { + return append("OLD"); + } + + public Search on(int year, int month, int day) { + return append("ON").date(year, month, day); + } + + public Search or() { + return append("OR"); + } + + public Search recent() { + return append("RECENT"); + } + + public Search seen() { + return append("SEEN"); + } + + public Search sentbefore(int year, int month, int day) { + return append("SENTBEFORE").date(year, month, day); + } + + public Search senton(int year, int month, int day) { + return append("SENTON").date(year, month, day); + } + + public Search sentsince(int year, int month, int day) { + return append("SENTSINCE").date(year, month, day); + } + + public Search since(int year, int month, int day) { + return append("SINCE").date(year, month, day); + } + + public Search smaller(int size) { + return append("SMALLER").append(size);} + + public Search subject(String address) { + return append("SUBJECT").append(address); + } + + public Search text(String text) { + return append("TEXT").append(text); + } + + public Search to(String address) { + return append("TO").append(address); + } + + public Search uid() { + return append("UID"); + } + + public Search unanswered() { + return append("UNANSWERED"); + } + + public Search undeleted() { + return append("UNDELETED"); + } + + public Search undraft() { + return append("UNDRAFT"); + } + + public Search unflagged() { + return append("UNFLAGGED"); + } + + public Search unkeyword(String flag) { + return append("UNKEYWORD").append(flag); + } + + public Search unseen() { + return append("UNSEEN"); + } + + public Search openParen() { + return append("("); + } + + public Search closeParen() { + return append(")"); + } + + public Search msn(int low, int high) { + return append(low + ":" + high); + } + + public Search msnAndUp(int limit) { + return append(limit + ":*"); + } + + public Search msnAndDown(int limit) { + return append("*:" + limit); + } } public static final class Fetch { Added: james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/wild-alt-reply.mail URL: http://svn.apache.org/viewvc/james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/wild-alt-reply.mail?rev=636081&view=auto ============================================================================== --- james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/wild-alt-reply.mail (added) +++ james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/wild-alt-reply.mail Tue Mar 11 12:51:27 2008 @@ -0,0 +1,225 @@ +################################################################ +# Licensed to the Apache Software Foundation (ASF) under one # +# or more contributor license agreements. See the NOTICE file # +# distributed with this work for additional information # +# regarding copyright ownership. The ASF licenses this file # +# to you under the Apache License, Version 2.0 (the # +# "License"); you may not use this file except in compliance # +# with the License. You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, # +# software distributed under the License is distributed on an # +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # +# KIND, either express or implied. See the License for the # +# specific language governing permissions and limitations # +# under the License. # +################################################################ + +Received: by 10.114.126.16 with HTTP; Tue, 11 Mar 2008 11:53:38 -0700 (PDT) +Message-ID: <[EMAIL PROTECTED]> +Date: Tue, 11 Mar 2008 18:53:38 +0000 +From: "Robert Burrell Donkin" <[EMAIL PROTECTED]> +To: "Robert Burrell Donkin" <[EMAIL PROTECTED]> +Subject: Re: Sonnets By William Shakespeare +Cc: "Robert Burrell Donkin" <[EMAIL PROTECTED]> +In-Reply-To: <[EMAIL PROTECTED]> +MIME-Version: 1.0 +Content-Type: multipart/mixed; + boundary="----=_Part_3998_1661991.1205261618747" +Bcc: [EMAIL PROTECTED] +References: <[EMAIL PROTECTED]> +Delivered-To: [EMAIL PROTECTED] + +------=_Part_3998_1661991.1205261618747 +Content-Type: multipart/alternative; + boundary="----=_Part_3999_20348865.1205261618747" + +------=_Part_3999_20348865.1205261618747 +Content-Type: text/plain; charset=ISO-8859-1 +Content-Transfer-Encoding: 7bit +Content-Disposition: inline + +*Ah yes!* + +On Tue, Mar 11, 2008 at 6:45 PM, Robert Burrell Donkin < [EMAIL PROTECTED]> wrote: +> O! lest the world should task you to recite +> What merit lived in me, that you should love +> After my death,--dear love, forget me quite, +> For you in me can nothing worthy prove; +> Unless you would devise some virtuous lie, +> To do more for me than mine own desert, +> And hang more praise upon deceased I +> Than niggard truth would willingly impart: +> O! lest your true love may seem false in this +> That you for love speak well of me untrue, +> My name be buried where my body is, +> And live no more to shame nor me nor you. +> For I am shamed by that which I bring forth, +> And so should you, to love things nothing worth. +> + +------=_Part_3999_20348865.1205261618747 +Content-Type: text/html; charset=ISO-8859-1 +Content-Transfer-Encoding: 7bit +Content-Disposition: inline + +<b><span style="font-family: trebuchet ms,sans-serif;">Ah yes!</span></b><br><br>On Tue, Mar 11, 2008 at 6:45 PM, Robert Burrell Donkin <<a href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>> wrote:<br> +> O! lest the world should task you to recite<br>> What merit lived in me, that you should love<br>> After my death,--dear love, forget me quite,<br>> For you in me can nothing worthy prove;<br>> Unless you would devise some virtuous lie,<br> +> To do more for me than mine own desert,<br>> And hang more praise upon deceased I<br>> Than niggard truth would willingly impart:<br>> O! lest your true love may seem false in this<br>> That you for love speak well of me untrue,<br> +> My name be buried where my body is,<br>> And live no more to shame nor me nor you.<br>> For I am shamed by that which I bring forth,<br>> And so should you, to love things nothing worth.<br>> <br><br> + +------=_Part_3999_20348865.1205261618747 +Content-Type: text/calendar; method=REQUEST; name=invite.ics; + charset=ISO-8859-1 +Content-Transfer-Encoding: 7bit +Content-Disposition: inline + +BEGIN:VCALENDAR +PRODID:-//Google Inc//Google Calendar 70.9054//EN +VERSION:2.0 +CALSCALE:GREGORIAN +METHOD:REQUEST +BEGIN:VEVENT +DTSTART;VALUE=DATE:20080407 +DTEND;VALUE=DATE:20080412 +DTSTAMP:20080311T185338Z +ORGANIZER;CN=Robert Burrell Donkin:MAILTO:[EMAIL PROTECTED] +UID:[EMAIL PROTECTED] +ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= + TRUE;X-NUM-GUESTS=0:MAILTO:[EMAIL PROTECTED] +ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE + ;CN=Robert Burrell Donkin;X-NUM-GUESTS=0:MAILTO:[EMAIL PROTECTED] + om +ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= + TRUE;X-NUM-GUESTS=0:MAILTO:[EMAIL PROTECTED] +CLASS:PRIVATE +CREATED:20080311T185337Z +DESCRIPTION:<b><span style="font-family: trebuchet ms\,sans-serif\;">Ah yes + !</span></b><br><br>On Tue\, Mar 11\, 2008 at 6:45 PM\, Robert Burrell Donk + in <\;[EMAIL PROTECTED]>\; wrote:<br>>\; O! lest t + he world should task you to recite<br>>\;  \;What merit lived in me\, + that you should love<br>>\;  \;After my death\,--dear love\, forget + me quite\,<br>>\;  \;For you in me can nothing worthy prove\;<br>>\ + ;  \;Unless you would devise some virtuous lie\,<br>>\;  \;To do + more for me than mine own desert\,<br>>\;  \;And hang more praise upo + n deceased I<br>>\;  \;Than niggard truth would willingly impart:<br> + >\;  \;O! lest your true love may seem false in this<br>>\;  \; + That you for love speak well of me untrue\,<br>>\;  \;My name be buri + ed where my body is\,<br>>\;  \;And live no more to shame nor me nor + you.<br>>\;  \; For I am shamed by that which I bring forth\,<br>>\ + ;  \; And so should you\, to love things nothing worth.<br>>\;  \ + ;<br><br>\nView your event at http://www.google.com/calendar/event?action=V + IEW&ueid=i12ksc4hr5uud1gs9dsos1ipj8. +LAST-MODIFIED:20080311T185337Z +LOCATION:Amsterdam +SEQUENCE:0 +STATUS:CONFIRMED +SUMMARY:ApacheCon Europe 2008! +TRANSP:OPAQUE +END:VEVENT +END:VCALENDAR + +------=_Part_3999_20348865.1205261618747-- + +------=_Part_3998_1661991.1205261618747 +Content-Type: application/ics; name=invite20080407T190000.ics +Content-Transfer-Encoding: base64 +Content-Disposition: attachment; filename=invite20080407T190000.ics + +QkVHSU46VkNBTEVOREFSDQpQUk9ESUQ6LS8vR29vZ2xlIEluYy8vR29vZ2xlIENhbGVuZGFyIDcw +LjkwNTQvL0VODQpWRVJTSU9OOjIuMA0KQ0FMU0NBTEU6R1JFR09SSUFODQpNRVRIT0Q6UkVRVUVT +VA0KQkVHSU46VkVWRU5UDQpEVFNUQVJUO1ZBTFVFPURBVEU6MjAwODA0MDcNCkRURU5EO1ZBTFVF +PURBVEU6MjAwODA0MTINCkRUU1RBTVA6MjAwODAzMTFUMTg1MzM4Wg0KT1JHQU5JWkVSO0NOPVJv +YmVydCBCdXJyZWxsIERvbmtpbjpNQUlMVE86cm9iZXJ0YnVycmVsbGRvbmtpbkBnbWFpbC5jb20N +ClVJRDppMTJrc2M0aHI1dXVkMWdzOWRzb3MxaXBqOEBnb29nbGUuY29tDQpBVFRFTkRFRTtDVVRZ +UEU9SU5ESVZJRFVBTDtST0xFPVJFUS1QQVJUSUNJUEFOVDtQQVJUU1RBVD1ORUVEUy1BQ1RJT047 +UlNWUD0NCiBUUlVFO1gtTlVNLUdVRVNUUz0wOk1BSUxUTzpyb2JlcnRidXJyZWxsZG9ua2luQGJs +dWV5b25kZXIuY28udWsNCkFUVEVOREVFO0NVVFlQRT1JTkRJVklEVUFMO1JPTEU9UkVRLVBBUlRJ +Q0lQQU5UO1BBUlRTVEFUPUFDQ0VQVEVEO1JTVlA9VFJVRQ0KIDtDTj1Sb2JlcnQgQnVycmVsbCBE +b25raW47WC1OVU0tR1VFU1RTPTA6TUFJTFRPOnJvY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VOREFSDQo= +------=_Part_3998_1661991.1205261618747 +Content-Type: text/html; name=sonnet.html +Content-Transfer-Encoding: base64 +X-Attachment-Id: 0.1 +Content-Disposition: attachment; filename=sonnet.html + +PGh0bWw+PGhlYWQ+PHRpdGxlPjwvdGl0bGU+PC9oZWFkPgo8Ym9keT4KPGJsb2NrcXVvdGUgY2l0 +ZT0naHR0cDovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9XaWxsaWFtX1NoYWtlc3BlYXJlJz48cHJl +PgpUaG9zZSBwYXJ0cyBvZiB0aGVlIHRoYXQgdGhlIHdvcmxkJ3MgZXllIGRvdGggdmlldwpXYW50 +IG5vdGhpbmcgdGhhdCB0aGUgdGhvdWdodCBvZiBoZWFydHMgY2FuIG1lbmQ7CkFsbCB0b25ndWVz +LS10aGUgdm9pY2Ugb2Ygc291bHMtLWdpdmUgdGhlZSB0aGF0IGR1ZSwKVXR0ZXJpbmcgYmFyZSB0 +cnV0aCwgZXZlbiBzbyBhcyBmb2VzIGNvbW1lbmQuClRoeSBvdXR3YXJkIHRodXMgd2l0aCBvdXR3 +YXJkIHByYWlzZSBpcyBjcm93bidkOwpCdXQgdGhvc2Ugc2FtZSB0b25ndWVzLCB0aGF0IGdpdmUg +dGhlZSBzbyB0aGluZSBvd24sCkluIG90aGVyIGFjY2VudHMgZG8gdGhpcyBwcmFpc2UgY29uZm91 +bmQKQnkgc2VlaW5nIGZhcnRoZXIgdGhhbiB0aGUgZXllIGhhdGggc2hvd24uClRoZXkgbG9vayBp +bnRvIHRoZSBiZWF1dHkgb2YgdGh5IG1pbmQsCkFuZCB0aGF0IGluIGd1ZXNzIHRoZXkgbWVhc3Vy +ZSBieSB0aHkgZGVlZHM7ClRoZW4tLWNodXJscy0tdGhlaXIgdGhvdWdodHMsIGFsdGhvdWdoIHRo +ZWlyIGV5ZXMgd2VyZSBraW5kLApUbyB0aHkgZmFpciBmbG93ZXIgYWRkIHRoZSByYW5rIHNtZWxs +IG9mIHdlZWRzOiAKICBCdXQgd2h5IHRoeSBvZG91ciBtYXRjaGV0aCBub3QgdGh5IHNob3csCiAg +VGhlIHNvaWwgaXMgdGhpcywgdGhhdCB0aG91IGRvc3QgY29tbW9uIGdyb3cuCjwvcHJlPjwvYmxv +Y2txdW90ZT4KPC9ib2R5PjwvaHRtbD4K +------=_Part_3998_1661991.1205261618747 +Content-Type: text/plain; name=sonnet.txt +Content-Transfer-Encoding: base64 +X-Attachment-Id: 0.2 +Content-Disposition: attachment; filename=sonnet.txt + +QWghIHdoZXJlZm9yZSB3aXRoIGluZmVjdGlvbiBzaG91bGQgaGUgbGl2ZSwKQW5kIHdpdGggaGlz +IHByZXNlbmNlIGdyYWNlIGltcGlldHksClRoYXQgc2luIGJ5IGhpbSBhZHZhbnRhZ2Ugc2hvdWxk +IGFjaGlldmUsCkFuZCBsYWNlIGl0c2VsZiB3aXRoIGhpcyBzb2NpZXR5PyAKV2h5IHNob3VsZCBm +YWxzZSBwYWludGluZyBpbWl0YXRlIGhpcyBjaGVlaywKQW5kIHN0ZWVsIGRlYWQgc2VlbWluZyBv +ZiBoaXMgbGl2aW5nIGh1ZT8KV2h5IHNob3VsZCBwb29yIGJlYXV0eSBpbmRpcmVjdGx5IHNlZWsK +Um9zZXMgb2Ygc2hhZG93LCBzaW5jZSBoaXMgcm9zZSBpcyB0cnVlPwpXaHkgc2hvdWxkIGhlIGxp +dmUsIG5vdyBOYXR1cmUgYmFua3J1cHQgaXMsCkJlZ2dhcidkIG9mIGJsb29kIHRvIGJsdXNoIHRo +cm91Z2ggbGl2ZWx5IHZlaW5zPwpGb3Igc2hlIGhhdGggbm8gZXhjaGVxdWVyIG5vdyBidXQgaGlz +LApBbmQgcHJvdWQgb2YgbWFueSwgbGl2ZXMgdXBvbiBoaXMgZ2FpbnMuCiAgTyEgaGltIHNoZSBz +dG9yZXMsIHRvIHNob3cgd2hhdCB3ZWFsdGggc2hlIGhhZAogIEluIGRheXMgbG9uZyBzaW5jZSwg +YmVmb3JlIHRoZXNlIGxhc3Qgc28gYmFkLgo= +------=_Part_3998_1661991.1205261618747 +Content-Type: text/plain; name=another-sonnet.txt +Content-Transfer-Encoding: base64 +X-Attachment-Id: f_fdotkfhj2 +Content-Disposition: attachment; filename=another-sonnet.txt + +U28gYXJlIHlvdSB0byBteSB0aG91Z2h0cyBhcyBmb29kIHRvIGxpZmUsCk9yIGFzIHN3ZWV0LXNl +YXNvbidkIHNob3dlcnMgYXJlIHRvIHRoZSBncm91bmQ7CkFuZCBmb3IgdGhlIHBlYWNlIG9mIHlv +dSBJIGhvbGQgc3VjaCBzdHJpZmUKQXMgJ3R3aXh0IGEgbWlzZXIgYW5kIGhpcyB3ZWFsdGggaXMg +Zm91bmQuCk5vdyBwcm91ZCBhcyBhbiBlbmpveWVyLCBhbmQgYW5vbgpEb3VidGluZyB0aGUgZmls +Y2hpbmcgYWdlIHdpbGwgc3RlYWwgaGlzIHRyZWFzdXJlOwpOb3cgY291bnRpbmcgYmVzdCB0byBi +ZSB3aXRoIHlvdSBhbG9uZSwKVGhlbiBiZXR0ZXInZCB0aGF0IHRoZSB3b3JsZCBtYXkgc2VlIG15 +IHBsZWFzdXJlOgpTb21ldGltZSBhbGwgZnVsbCB3aXRoIGZlYXN0aW5nIG9uIHlvdXIgc2lnaHQs +CkFuZCBieSBhbmQgYnkgY2xlYW4gc3RhcnZlZCBmb3IgYSBsb29rOwpQb3NzZXNzaW5nIG9yIHB1 +cnN1aW5nIG5vIGRlbGlnaHQsClNhdmUgd2hhdCBpcyBoYWQsIG9yIG11c3QgZnJvbSB5b3UgYmUg +dG9vay4KICBUaHVzIGRvIEkgcGluZSBhbmQgc3VyZmVpdCBkYXkgYnkgZGF5LAogIE9yIGdsdXR0 +b25pbmcgb24gYWxsLCBvciBhbGwgYXdheS4K +------=_Part_3998_1661991.1205261618747-- Added: james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/wild-mixed-alt.mail URL: http://svn.apache.org/viewvc/james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/wild-mixed-alt.mail?rev=636081&view=auto ============================================================================== --- james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/wild-mixed-alt.mail (added) +++ james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/wild-mixed-alt.mail Tue Mar 11 12:51:27 2008 @@ -0,0 +1,108 @@ +################################################################ +# Licensed to the Apache Software Foundation (ASF) under one # +# or more contributor license agreements. See the NOTICE file # +# distributed with this work for additional information # +# regarding copyright ownership. The ASF licenses this file # +# to you under the Apache License, Version 2.0 (the # +# "License"); you may not use this file except in compliance # +# with the License. You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, # +# software distributed under the License is distributed on an # +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # +# KIND, either express or implied. See the License for the # +# specific language governing permissions and limitations # +# under the License. # +################################################################ + +Delivered-To: [EMAIL PROTECTED] +Received: by 10.114.126.16 with SMTP id y16cs68962wac; + Tue, 11 Mar 2008 11:41:47 -0700 (PDT) +Received: by 10.78.193.19 with SMTP id q19mr18798706huf.15.1205260904964; + Tue, 11 Mar 2008 11:41:44 -0700 (PDT) +Return-Path: <[EMAIL PROTECTED]> +Received: from smtp-out4.blueyonder.co.uk (smtp-out4.blueyonder.co.uk [195.188.213.7]) + by mx.google.com with ESMTP id c22si4019124ika.3.2008.03.11.11.41.42; + Tue, 11 Mar 2008 11:41:44 -0700 (PDT) +Received-SPF: pass (google.com: domain of [EMAIL PROTECTED] designates 195.188.213.7 as permitted sender) client-ip=195.188.213.7; +Authentication-Results: mx.google.com; spf=pass (google.com: domain of [EMAIL PROTECTED] designates 195.188.213.7 as permitted sender) [EMAIL PROTECTED] +Received: from [172.23.170.136] (helo=anti-virus01-07) + by smtp-out4.blueyonder.co.uk with smtp (Exim 4.52) + id 1JZ9Px-0001OZ-VF + for [EMAIL PROTECTED]; Tue, 11 Mar 2008 18:41:42 +0000 +Received: from [82.38.65.6] (helo=[10.0.0.27]) + by asmtp-out1.blueyonder.co.uk with esmtpa (Exim 4.52) + id 1JZ9Px-0007FO-G5 + for [EMAIL PROTECTED]; Tue, 11 Mar 2008 18:41:41 +0000 +Subject: An HTML Email +From: Robert Burrell Donkin <[EMAIL PROTECTED]> +To: [EMAIL PROTECTED] +Content-Type: multipart/alternative; boundary="=-blWYb/063JwXox8nBGv5" +Date: Tue, 11 Mar 2008 18:41:40 +0000 +Message-Id: <[EMAIL PROTECTED]> +Mime-Version: 1.0 +X-Mailer: Evolution 2.12.1 + + +--=-blWYb/063JwXox8nBGv5 +Content-Type: text/plain +Content-Transfer-Encoding: 7bit + +A Sonnet By William Shakespeare + + + +Tired with all these, for restful death I cry, +As to behold desert a beggar born, +And needy nothing trimm'd in jollity, +And purest faith unhappily forsworn, +And gilded honour shamefully misplac'd, +And maiden virtue rudely strumpeted, +And right perfection wrongfully disgrac'd, +And strength by limping sway disabled +And art made tongue-tied by authority, +And folly--doctor-like--controlling skill, +And simple truth miscall'd simplicity, +And captive good attending captain ill: + Tir'd with all these, from these would I be gone, + Save that, to die, I leave my love alone. + +--=-blWYb/063JwXox8nBGv5 +Content-Type: text/html; charset=utf-8 +Content-Transfer-Encoding: 7bit + +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN"> +<HTML> +<HEAD> + <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8"> + <META NAME="GENERATOR" CONTENT="GtkHTML/3.16.1"> +</HEAD> +<BODY> +<H1> +A Sonnet By William Shakespeare +</H1> +<BR> +<PRE> +Tired with all these, for restful death I cry, +As to behold desert a beggar born, +And needy nothing trimm'd in jollity, +And purest faith unhappily forsworn, +And gilded honour shamefully misplac'd, +And maiden virtue rudely strumpeted, +And right perfection wrongfully disgrac'd, +And strength by limping sway disabled +And art made tongue-tied by authority, +And folly--doctor-like--controlling skill, +And simple truth miscall'd simplicity, +And captive good attending captain ill: + Tir'd with all these, from these would I be gone, + Save that, to die, I leave my love alone. +</PRE> +</BODY> +</HTML> + +--=-blWYb/063JwXox8nBGv5-- + + Added: james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/wild-mixed.mail URL: http://svn.apache.org/viewvc/james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/wild-mixed.mail?rev=636081&view=auto ============================================================================== --- james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/wild-mixed.mail (added) +++ james/server/trunk/experimental-seda-imap-function/src/test/resources/org/apache/james/test/functional/wild-mixed.mail Tue Mar 11 12:51:27 2008 @@ -0,0 +1,113 @@ +################################################################ +# Licensed to the Apache Software Foundation (ASF) under one # +# or more contributor license agreements. See the NOTICE file # +# distributed with this work for additional information # +# regarding copyright ownership. The ASF licenses this file # +# to you under the Apache License, Version 2.0 (the # +# "License"); you may not use this file except in compliance # +# with the License. You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, # +# software distributed under the License is distributed on an # +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # +# KIND, either express or implied. See the License for the # +# specific language governing permissions and limitations # +# under the License. # +################################################################ + +Delivered-To: [EMAIL PROTECTED] +Received: by 10.114.126.16 with SMTP id y16cs69319wac; + Tue, 11 Mar 2008 11:45:12 -0700 (PDT) +Received: by 10.78.107.8 with SMTP id f8mr18855121huc.40.1205261111174; + Tue, 11 Mar 2008 11:45:11 -0700 (PDT) +Return-Path: <[EMAIL PROTECTED]> +Received: from smtp-out2.blueyonder.co.uk (smtp-out2.blueyonder.co.uk [195.188.213.5]) + by mx.google.com with ESMTP id z34si465534ikz.8.2008.03.11.11.45.09; + Tue, 11 Mar 2008 11:45:11 -0700 (PDT) +Received-SPF: pass (google.com: domain of [EMAIL PROTECTED] designates 195.188.213.5 as permitted sender) client-ip=195.188.213.5; +Authentication-Results: mx.google.com; spf=pass (google.com: domain of [EMAIL PROTECTED] designates 195.188.213.5 as permitted sender) [EMAIL PROTECTED] +Received: from [172.23.170.147] (helo=anti-virus03-10) + by smtp-out2.blueyonder.co.uk with smtp (Exim 4.52) + id 1JZ9TJ-0000ZL-49 + for [EMAIL PROTECTED]; Tue, 11 Mar 2008 18:45:09 +0000 +Received: from [82.38.65.6] (helo=[10.0.0.27]) + by asmtp-out3.blueyonder.co.uk with esmtpa (Exim 4.52) + id 1JZ9TI-0000A6-8B + for [EMAIL PROTECTED]; Tue, 11 Mar 2008 18:45:08 +0000 +Subject: Sonnets By William Shakespeare +From: Robert Burrell Donkin <[EMAIL PROTECTED]> +To: [EMAIL PROTECTED] +Content-Type: multipart/mixed; boundary="=-iC8rnNDvTPHypqsz+j7t" +Date: Tue, 11 Mar 2008 18:45:07 +0000 +Message-Id: <[EMAIL PROTECTED]> +Mime-Version: 1.0 +X-Mailer: Evolution 2.12.1 + + +--=-iC8rnNDvTPHypqsz+j7t +Content-Type: text/plain +Content-Transfer-Encoding: 7bit + +O! lest the world should task you to recite +What merit lived in me, that you should love +After my death,--dear love, forget me quite, +For you in me can nothing worthy prove; +Unless you would devise some virtuous lie, +To do more for me than mine own desert, +And hang more praise upon deceased I +Than niggard truth would willingly impart: +O! lest your true love may seem false in this +That you for love speak well of me untrue, +My name be buried where my body is, +And live no more to shame nor me nor you. + For I am shamed by that which I bring forth, + And so should you, to love things nothing worth. + +--=-iC8rnNDvTPHypqsz+j7t +Content-Disposition: attachment; filename=sonnet.html +Content-Type: text/html; name=sonnet.html; charset=us-ascii +Content-Transfer-Encoding: 7bit + +<html><head><title></title></head> +<body> +<blockquote cite='http://en.wikipedia.org/wiki/William_Shakespeare'><pre> +Those parts of thee that the world's eye doth view +Want nothing that the thought of hearts can mend; +All tongues--the voice of souls--give thee that due, +Uttering bare truth, even so as foes commend. +Thy outward thus with outward praise is crown'd; +But those same tongues, that give thee so thine own, +In other accents do this praise confound +By seeing farther than the eye hath shown. +They look into the beauty of thy mind, +And that in guess they measure by thy deeds; +Then--churls--their thoughts, although their eyes were kind, +To thy fair flower add the rank smell of weeds: + But why thy odour matcheth not thy show, + The soil is this, that thou dost common grow. +</pre></blockquote> +</body></html> + +--=-iC8rnNDvTPHypqsz+j7t +Content-Disposition: attachment; filename=sonnet.txt +Content-Type: text/plain; name=sonnet.txt; charset=us-ascii +Content-Transfer-Encoding: 7bit + +Ah! wherefore with infection should he live, +And with his presence grace impiety, +That sin by him advantage should achieve, +And lace itself with his society? +Why should false painting imitate his cheek, +And steel dead seeming of his living hue? +Why should poor beauty indirectly seek +Roses of shadow, since his rose is true? +Why should he live, now Nature bankrupt is, +Beggar'd of blood to blush through lively veins? +For she hath no exchequer now but his, +And proud of many, lives upon his gains. + O! him she stores, to show what wealth she had + In days long since, before these last so bad. + +--=-iC8rnNDvTPHypqsz+j7t-- \ No newline at end of file --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]