Hi, First, you need to have m2eclipse installed.
If you import the app project, you will have already the ClamAVSCan in the jar dependencies.
I you want to further hack the source code, yes, you will need to import the corresponding project. m2eclipse will adjust the classpath.
see also http://james.apache.org/server/3/dev-build.html Eric On 07/23/2012 08:50 AM, Merve Temizer wrote:
ClamAVScan is there but how can my main james server project know ClamAVScan is there? If i import this svn code, it will be a discrete project in another folder. Thanks. 2012/7/21 Eric Charles <e...@apache.org <mailto:e...@apache.org>> Hi, You have to svn co https://svn.apache.org/repos/__asf/james/mailet/standard/__trunk/ <https://svn.apache.org/repos/asf/james/mailet/standard/trunk/> and then import that maven project into your eclipse workspace. The ClamAVScan will be there. (PS: instead of beta1, you can use the more recent beta4). Thx, Eric On 07/21/2012 04:37 PM, Merve Temizer wrote: I downloaded James Server 3 beta 1 from SVN and successfully builded and ran it in Eclipse. There is a project that contains "org.apache.james.transport.__mailets" package but there is no ClamAVScan mailet in it. Where am i wrong and what is the elegant way of importing this mailet to my workspace? Should i download it individually and add it to the package, or should i download standard mailets project and import into Eclipse workspace, then will i have to change my root james server pom to see new mailets project? Thanks. 2012/7/20 Eric Charles <e...@apache.org <mailto:e...@apache.org>> np, it's in the mailet standard project shipped with James 3 https://svn.apache.org/repos/*__*asf/james/mailet/standard/** <https://svn.apache.org/repos/**asf/james/mailet/standard/**> trunk/src/main/java/org/**__apache/james/transport/**__mailets/ClamAVScan.java<https:__//svn.apache.org/repos/asf/__james/mailet/standard/trunk/__src/main/java/org/apache/__james/transport/mailets/__ClamAVScan.java <https://svn.apache.org/repos/asf/james/mailet/standard/trunk/src/main/java/org/apache/james/transport/mailets/ClamAVScan.java>> Thx, Eric On 07/20/2012 03:55 PM, Merve Temizer wrote: Todays lat question, where is ClamAVScan.java in 3 beta 1? 2012/7/20 Eric Charles <e...@apache.org <mailto:e...@apache.org>> Hi, SAR-INF is for James 2.3. For James 3.0, you have to put your jar in conf/lib folder. Thx, Eric On 07/20/2012 02:20 PM, Merve Temizer wrote: I am using 3 beta 1. I searched net for writing my own mailet but a SAR-INF folder and a sar file generating process is mentioned but there is no such folder in 3 beta 1. Is there a way to do it in 3 b 1? Thanks for patience. 2012/7/20 Eric Charles <e...@apache.org <mailto:e...@apache.org>> James 2.3 should contain the needed jar with the ClamAVScan mailet. So nothing special to do, except defining the mailet in config.xml. Thx, Eric On 07/20/2012 01:14 PM, Merve Temizer wrote: ClamAVScan is mentioned as default mailets in James on hReturn-Path: <server-dev-return-50886-eric.__charles=u-mangate.com@james.__apache.org <mailto:u-mangate....@james.apache.org>> Received: from hermes.apache.org <http://hermes.apache.org> (HELO mail.apache.org <http://mail.apache.org>) ([140.211.11.3]) by srv002 (JAMES SMTP Server ) with SMTP ID 1420611271 for <eric.char...@u-mangate.com <mailto:eric.char...@u-mangate.com>>; Sat, 21 Jul 2012 04:37:49 +0200 (CEST) Received: (qmail 60274 invoked by uid 500); 21 Jul 2012 14:37:46 -0000 Mailing-List: contact server-dev-help@james.apache.__org <mailto:server-dev-h...@james.apache.org>; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:server-dev-__unsubscr...@james.apache.org <mailto:server-dev-unsubscr...@james.apache.org>> List-Help: <mailto:server-dev-help@james.__apache.org <mailto:server-dev-h...@james.apache.org>> List-Post: <mailto:server-dev@james.__apache.org <mailto:server-...@james.apache.org>> List-Id: "James Developers List" <server-dev.james.apache.org <http://server-dev.james.apache.org>> Reply-To: "James Developers List" <server-...@james.apache.org <mailto:server-...@james.apache.org>> Delivered-To: mailing list server-...@james.apache.org <mailto:server-...@james.apache.org> Delivered-To: eric.char...@u-mangate.com <mailto:eric.char...@u-mangate.com> Received: (qmail 60236 invoked by uid 99); 21 Jul 2012 14:37:44 -0000 Received: from athena.apache.org <http://athena.apache.org> (HELO athena.apache.org <http://athena.apache.org>) (140.211.11.136) by apache.org <http://apache.org> (qpsmtpd/0.29) with ESMTP; Sat, 21 Jul 2012 14:37:44 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END___DIGIT,HTML_MESSAGE,RCVD_IN___DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org <http://apache.org> Received-SPF: pass (athena.apache.org <http://athena.apache.org>: domain of mervet2...@gmail.com <mailto:mervet2...@gmail.com> designates 209.85.214.177 as permitted sender) Received: from [209.85.214.177] (HELO mail-ob0-f177.google.com <http://mail-ob0-f177.google.com>) (209.85.214.177) by apache.org <http://apache.org> (qpsmtpd/0.29) with ESMTP; Sat, 21 Jul 2012 14:37:40 +0000 Received: by obbta17 with SMTP id ta17so9807528obb.22 for <server-...@james.apache.org <mailto:server-...@james.apache.org>>; Sat, 21 Jul 2012 07:37:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com <http://gmail.com>; s=20120113; h=mime-version:in-reply-to:__references:date:message-id:__subject:from:to :content-type; bh=pk9tK7/__SXxUmiv00STzExEhZBro3qVrfYZJzI__LowVSA=; b=__HqRGI0O0CA8XpU4sF8UP9vPKx4HWW9__SBBgb43ta+__iWHJpFw0zUXYbgIaD9ojgaGzdD 2QywWkpVXA5SqLLeVFfAnP66E738Fg__ymsBMXxSRUTAlrJyd/__KHfwwWZomWxT4g4gB4iP UWa7rUdmJ+__BZLmxhLXNgRZAoVRMK7ieoYzY0f9iy__tAZxQIDc9XAlG7Ug4ljmACIg8Anv 9B04AnSSQejUbWHhZmJZF3te8BzwXq__rFWAMPEE/SQOUHoU2afjz4PabK/__hipG1V8tgRu ww0kYI3KBEMHxkCtG43u7EPdJ8d8bl__L2O1lxgQc4D28r8dtUgId7IcciWxg2__ZNSnSnp3 +RJA== MIME-Version: 1.0 Received: by 10.60.22.165 with SMTP id e5mr12183953oef.60.__1342881439264; Sat, 21 Jul 2012 07:37:19 -0700 (PDT) Received: by 10.76.101.37 with HTTP; Sat, 21 Jul 2012 07:37:19 -0700 (PDT) In-Reply-To: <50096f77.1000...@apache.org <mailto:50096f77.1000...@apache.org>> References: <CAFH_+N=ll9qoqiwtqj+__lwprk1drztugbvj9+qt4y7ng-__p0y...@mail.gmail.com <mailto:ll9qoqiwtqj%2blwprk1drztugbvj9%2bqt4y7ng-p0y...@mail.gmail.com>> <50094aa5.8070...@apache.org <mailto:50094aa5.8070...@apache.org>> <CAFH_+NnHgr4GYM__B___BkgG0cQ4MiS9w_czxgB8+__gkVqDEEYR=q...@mail.gmail.com <mailto:q...@mail.gmail.com>> <500960d0.50...@apache.org <mailto:500960d0.50...@apache.org>> <CAFH_+NnNRBM4sV0x7qsLSMtwy-__zZ2iuoiOEr5tkzW20dHcrc_A@mail.__gmail.com <mailto:cafh_%2bnnnrbm4sv0x7qslsmtwy-zz2iuoioer5tkzw20dhcr...@mail.gmail.com>> <50096f77.1000...@apache.org <mailto:50096f77.1000...@apache.org>> Date: Sat, 21 Jul 2012 17:37:19 +0300 Message-ID: <cafh_+__nm2ztcjyofvw3jxcl24lqmzsqafafh__21dnosdry1wk...@mail.gmail.com <mailto:cafh_%2bnm2ztcjyofvw3jxcl24lqmzsqafafh21dnosdry1wk...@mail.gmail.com>__> Subject: Re: ClamAVScan mailet From: Merve Temizer <mervet2...@gmail.com <mailto:mervet2...@gmail.com>> To: James Developers List <server-...@james.apache.org <mailto:server-...@james.apache.org>> Content-Type: multipart/alternative; boundary=__e89a8fb1ed3c29afb004c557f3d3 X-Virus-Checked: Checked by ClamAV on apache.org <http://apache.org> --e89a8fb1ed3c29afb004c557f3d3 Content-Type: text/plain; charset=ISO-8859-1 I downloaded James Server 3 beta 1 from SVN and successfully builded and ran it in Eclipse. There is a project that contains "org.apache.james.transport.__mailets" package but there is no ClamAVScan mailet in it. Where am i wrong and what is the elegant way of importing this mailet to my workspace? Should i download it individually and add it to the package, or should i download standard mailets project and import into Eclipse workspace, then will i have to change my root james server pom to see new mailets project? Thanks. 2012/7/20 Eric Charles <e...@apache.org <mailto:e...@apache.org>> np, it's in the mailet standard project shipped with James 3 https://svn.apache.org/repos/*__*asf/james/mailet/standard/** <https://svn.apache.org/repos/**asf/james/mailet/standard/**> trunk/src/main/java/org/**__apache/james/transport/**__mailets/ClamAVScan.java<https:__//svn.apache.org/repos/asf/__james/mailet/standard/trunk/__src/main/java/org/apache/__james/transport/mailets/__ClamAVScan.java <https://svn.apache.org/repos/asf/james/mailet/standard/trunk/src/main/java/org/apache/james/transport/mailets/ClamAVScan.java>> Thx, Eric On 07/20/2012 03:55 PM, Merve Temizer wrote: Todays lat question, where is ClamAVScan.java in 3 beta 1? 2012/7/20 Eric Charles <e...@apache.org <mailto:e...@apache.org>> Hi, SAR-INF is for James 2.3. For James 3.0, you have to put your jar in conf/lib folder. Thx, Eric On 07/20/2012 02:20 PM, Merve Temizer wrote: I am using 3 beta 1. I searched net for writing my own mailet but a SAR-INF folder and a sar file generating process is mentioned but there is no such folder in 3 beta 1. Is there a way to do it in 3 b 1? Thanks for patience. 2012/7/20 Eric Charles <e...@apache.org <mailto:e...@apache.org>> James 2.3 should contain the needed jar with the ClamAVScan mailet. So nothing special to do, except defining the mailet in config.xml. Thx, Eric On 07/20/2012 01:14 PM, Merve Temizer wrote: ClamAVScan is mentioned as default mailets in James on http://james.apache.org/******__server/2.3.0/provided_mailets.__** <http://james.apache.org/******server/2.3.0/provided_mailets.**> ****html<http://james.apache.__org/****server/2.3.0/provided___mailets.****html <http://james.apache.org/****server/2.3.0/provided_mailets.****html>> <http://james.apache.**org/**__server/2.3.0/provided_**__mailets.**html<http://james.__apache.org/**server/2.3.0/__provided_mailets.**html <http://james.apache.org/**server/2.3.0/provided_mailets.**html>> <http://james.apache.**org/**__server/2.3.0/provided_****__mailets.html< http://james.**apache.org/__server/2.3.0/**provided___mailets.html <http://apache.org/server/2.3.0/**provided_mailets.html><http://james.__apache.org/server/2.3.0/__provided_mailets.html <http://james.apache.org/server/2.3.0/provided_mailets.html>> Should i add some mailet.jar to James project? I downloaded it by SVN, should i add it manually is it elegant way? Or what should i do? Thanks. -- eric | http://about.echarles.net | @echarles ------------------------------__******------------------------__--**--** --**--------- To unsubscribe, e-mail: server-dev-unsubscribe@james.*__*****apache.org <http://apache.org>< server-dev-**unsubscribe@**jam__es.apache.org <http://james.apache.org><unsubscribe@__james.apache.org <mailto:unsubscr...@james.apache.org>> <server-dev-**unsubscribe@__james.apache.org <mailto:unsubscr...@james.apache.org><server-dev-__unsubscr...@james.apache.org <mailto:server-dev-unsubscr...@james.apache.org>> For additional commands, e-mail: server-dev-help@james.apache.*__** ***org< server-dev-help@james.**__apache**.org <http://apache.org> < server-dev-help@james.apache.*__*org <server-dev-help@james.apache.__org <mailto:server-dev-h...@james.apache.org>> -- eric | http://about.echarles.net | @echarles ------------------------------__****--------------------------__--** --**--------- To unsubscribe, e-mail: server-dev-unsubscribe@james.*__***apache.org <http://apache.org>< server-dev-**unsubscribe@__james.apache.org <mailto:unsubscr...@james.apache.org><server-dev-__unsubscr...@james.apache.org <mailto:server-dev-unsubscr...@james.apache.org>> For additional commands, e-mail: server-dev-help@james.apache.*__***org< server-dev-help@james.**apache__.org <http://apache.org> <server-dev-help@james.apache.__org <mailto:server-dev-h...@james.apache.org>>> -- eric | http://about.echarles.net | @echarles ------------------------------__**----------------------------__--**--------- To unsubscribe, e-mail: server-dev-unsubscribe@james.*__*apache.org <http://apache.org><server-dev-__unsubscr...@james.apache.org <mailto:server-dev-unsubscr...@james.apache.org>> For additional commands, e-mail: server-dev-help@james.apache.*__*org<server-dev-help@james.__apache.org <mailto:server-dev-h...@james.apache.org>> --__e89a8fb1ed3c29afb004c557f3d3-- -- eric | http://about.echarles.net | @echarles
-- eric | http://about.echarles.net | @echarles --------------------------------------------------------------------- To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org