Return-Path: Delivered-To: apmail-james-server-user-archive@www.apache.org Received: (qmail 65805 invoked from network); 16 Mar 2010 20:22:56 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Mar 2010 20:22:56 -0000 Received: (qmail 17862 invoked by uid 500); 16 Mar 2010 20:22:56 -0000 Delivered-To: apmail-james-server-user-archive@james.apache.org Received: (qmail 17826 invoked by uid 500); 16 Mar 2010 20:22:56 -0000 Mailing-List: contact server-user-help@james.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "James Users List" Reply-To: "James Users List" Delivered-To: mailing list server-user@james.apache.org Received: (qmail 17818 invoked by uid 99); 16 Mar 2010 20:22:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Mar 2010 20:22:56 +0000 X-ASF-Spam-Status: No, hits=-4.8 required=10.0 tests=AWL,HTML_MESSAGE,RCVD_IN_DNSWL_HI,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rgurule@lanl.gov designates 204.121.3.25 as permitted sender) Received: from [204.121.3.25] (HELO proofpoint1.lanl.gov) (204.121.3.25) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Mar 2010 20:22:49 +0000 Received: from mailrelay2.lanl.gov (mailrelay2.lanl.gov [128.165.4.103]) by proofpoint1.lanl.gov (8.14.3/8.14.3) with ESMTP id o2GKMSvY021284 for ; Tue, 16 Mar 2010 14:22:28 -0600 Received: from cic-mail.lanl.gov (cic-mail.lanl.gov [128.165.4.115]) by mailrelay2.lanl.gov (Postfix) with ESMTP id 055FF15FF5D4 for ; Tue, 16 Mar 2010 14:22:28 -0600 (MDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by cic-mail.lanl.gov (Postfix) with ESMTP id 03FCC316008C for ; Tue, 16 Mar 2010 14:22:28 -0600 (MDT) X-NIE-2-Virus-Scanner: amavisd-new at cic-mail.lanl.gov Received: from [128.165.115.3] (roberto.lanl.gov [128.165.115.3]) by cic-mail.lanl.gov (Postfix) with ESMTP id D28FA3160056 for ; Tue, 16 Mar 2010 14:22:27 -0600 (MDT) Message-ID: <4B9FE883.6030601@lanl.gov> Date: Tue, 16 Mar 2010 14:22:27 -0600 From: Robert Gurule User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: James Users List Subject: Re: Test a mailet development References: <2513ddd4c7835252263b273e1bf29692@4sengines.eu> <75bda7a01003151022p3186a02cg7b17369418daeff6@mail.gmail.com> <4B9FE397.6030006@lanl.gov> <75bda7a01003161318t1c3f2926odd37f2c6ecad2c51@mail.gmail.com> In-Reply-To: <75bda7a01003161318t1c3f2926odd37f2c6ecad2c51@mail.gmail.com> Content-Type: multipart/alternative; boundary="------------030308000200040401010708" X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5,1.2.40,4.0.166 definitions=2010-03-16_10:2010-02-06,2010-03-16,2010-03-16 signatures=0 --------------030308000200040401010708 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit I want to write a custom mailet that searches the email and attachment for certain keywords and if the keyword score is high enough then redirect the mail message to an arbitrator and send a message to the user stating that this has happened... Robert Norman Maurer wrote: > Yeah when you want to write a mailet then it fit for you too... > > Btw Im not 100% sure what you want todo with the mailet, so maybe you > can give me some more details? > > Bye > Norman > > 2010/3/16, Robert Gurule : > >> Hi Norman, >> I too am working on creating a mailet using IMAP on the >> http://svn.apache.org/repos/asf/james/server/trunk/ branch.... >> >> do you recomment the below suggestion for me as well. >> >> Thanks, >> >> Robert >> >> >> Norman Maurer wrote: >> >>> Hi Andre, >>> >>> I think a good start would be to look at the source code of our unit >>> tests for mailets: >>> >>> http://svn.apache.org/viewvc/james/mailet/standard/trunk/src/test/java/org/apache/james/transport/mailets/ >>> >>> Bye, >>> Norman >>> >>> 2010/3/15 Florent Andr� : >>> >>> >>>> Hi James addicts :) , >>>> >>>> I would like to begin to code my first mailet, and I ask myself a >>>> question >>>> : How I can test if my mailet react (output) what I want when a mail is >>>> treated ? >>>> >>>> I imagine different solutions : >>>> 1) send a mail via telnet : not very easy and rapid >>>> 2) send a mail via my day to day webmail : I'm not totally crazy for now >>>> and I don't want to expose my "no-configuration" to all web. So I just >>>> have >>>> a local access to james >>>> 3) Use a local, predictable, reusable and configurable java jar for send >>>> mail to James. >>>> >>>> The 3) seem to me the more "clean" and usable. >>>> >>>> In order to create this test lib, I found some examples code on this : >>>> http://www.ibm.com/developerworks/java/library/j-james1.html >>>> >>>> What do you think about this way of doing ? There is a better practice in >>>> James or a very useful code in svn for this usecase ? >>>> >>>> Thanks, >>>> Have a gooooooood day >>>> ++ >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org >>>> For additional commands, e-mail: server-user-help@james.apache.org >>>> >>>> >>>> >>>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org >>> For additional commands, e-mail: server-user-help@james.apache.org >>> >>> >>> >> -- >> Robert L. Gurule' >> High Performance Computing >> Scientific Software Engineering (HPC-1) >> Los Alamos National Laboratory, MS B295 >> Los Alamos, New Mexico 87545 >> 505-665-3538 (office) >> 505-690-1011 (cell) >> >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org > For additional commands, e-mail: server-user-help@james.apache.org > > -- Robert L. Gurule' High Performance Computing Scientific Software Engineering (HPC-1) Los Alamos National Laboratory, MS B295 Los Alamos, New Mexico 87545 505-665-3538 (office) 505-690-1011 (cell) --------------030308000200040401010708--