Dear Vicenzo,

can i know, from where you learnt all about the mailets and matchers and
their requirements ?? i mean, i would love to know more. currently what i
know is almost nothing :(

my matcher only returns addresses if their server is unavailable :)

does this add up ?? (you may like to read a few of my previosu mails for
added info  :)  )

-
ahsan


On 11/1/06, Vincenzo Gianferrari Pini <[EMAIL PROTECTED]>
wrote:

If you don't need to pass any parameter to the matcher, simply writing
match="SAMatcher2" is ok.

If it doesn't work the problem is inside your matcher code. Without
seeing it nobody can help you.

Moreover, you don't need to write a specific mailet (SAMailet2) to just
bounce back a message to the sender. Use instead the supplied Bounce
mailet and write:

        <mailet match="SAMatcher2" class="Bounce">
           <sender>[EMAIL PROTECTED]</sender>
           <message> Sorry, the email address you sent the mail to, is
not valid. Please have a look again. Thanks. </message>
           <passThrough> false</passThrough>
        </mailet>

Hope it helps.

Vincenzo


Ahsan wrote:
> these config.xml lines also do not work
>
> <mailet match="SAMatcher2" class="SAMailet2">
>  <from>[EMAIL PROTECTED]</from>
>  <subject>mail delivery error !</subject>
>  <content>Sorry, the email address u sent the mail to, is not valid.
> Please
> have a look again. Thanks.</content>
>  </mailet>
>
>
> On 11/1/06, Ahsan <[EMAIL PROTECTED]> wrote:
>>
>> about the mailet and matcher, what i have done is-->>
>>
>> 1) if the host is not available ([EMAIL PROTECTED]) then
>> the
>> matcher will return the address
>> the mailet will set the mail state to ghost and send a mail to the
>> sender.
>>
>> 2) if the host is available, then the matcher will return null, the
>> mailet
>> will do nothing and the next mailet/matcher will do their job
>>
>> thanks
>>
>> -
>> ahsan
>>
>>
>>  On 11/1/06, Ahsan <[EMAIL PROTECTED]> wrote:
>> >
>> > i have created the following mailet and matcher files and the edited
>> > config file lines are given below.
>> > my JAMES is no longer running, it crashes :(
>> >
>> >
>>
******************************************************************************************************************
>>
>> >   <mailetpackages>
>> >          <mailetpackage>org.apache.james.transport.mailets
>> > </mailetpackage>
>> >    <mailetpackage>serveravailability.mailet</mailetpackage>
>> >       </mailetpackages>
>> >       <matcherpackages>
>> >          <matcherpackage>org.apache.james.transport.matchers
>> > </matcherpackage>
>> >    <matcherpackage> serveravailability.matcher</matcherpackage>
>> >       </matcherpackages>
>> >
>> > ----
>> >
>> > <mailet match="SAMatcher2=all" class="SAMailet2">
>> >   <from>[EMAIL PROTECTED] </from>
>> >   <subject>mail delivery error !</subject>
>> >   <content>Sorry, the email address u sent the mail to, is not valid.
>> > Please have a look again. Thanks.</content>
>> >   </mailet>
>> >
>> >
>>
******************************************************************************************************************
>>
>> >
>> > i have got a deadline, can you please have a look and let me know
>> what i
>> > did wrong ??
>> >
>> >
>>
>>
>> --
>> Md. Ahsanur Rashid,
>>
>> Level-2, Term-1,
>> Department of Computer Science and Engineering (CSE),
>> Bangladesh University of Engineering & Technology (BUET),
>> Dhaka-1000, Bangladesh.
>> Tel - (+88)  01715621323, 01717769404
>>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Md. Ahsanur Rashid,

Level-2, Term-1,
Department of Computer Science and Engineering (CSE),
Bangladesh University of Engineering & Technology (BUET),
Dhaka-1000, Bangladesh.
Tel - (+88)  01715621323, 01717769404

Reply via email to