Dear friends,
I have to write a simple mailet that will ping the servers of the recipient
and and let us know if the recipient is available or not. if unavailable, a
message will be sent to the sender and the mail state set to ghost.
otherwise business as usual.
My problem is, I get error when
Hi,
you should read:
http://james.apache.org/server/2.3.0/custom_mailet.html
And i whould use 2.3.0 version which will be aviable this week. Anyhow
get sure you have the mailet-api-x.jar in yyour classpath.
bye
Norman
Ahsan schrieb:
> Dear friends,
>
> I have to write a simple mailet that will
thnx
but i was actaully looking for some sample code with accompanying xplanation
as well,
u see, i am a totally newbee .. :-s
-
ahsan
On 10/30/06, Norman Maurer <[EMAIL PROTECTED]> wrote:
Hi,
you should read:
http://james.apache.org/server/2.3.0/custom_mailet.html
And i whould use 2.3
Maybe this is usefull for you :
http://java201.com/resources/browse/2006/james.html
bye
Norman
Ahsan schrieb:
> thnx
>
> but i was actaully looking for some sample code with accompanying
> xplanation
> as well,
> u see, i am a totally newbee .. :-s
>
> -
> ahsan
>
>
> On 10/30/06, Norman Mau
My problem is, I get error when trying to import org.apache.mailet.*;
(package does not exist)
still need help with tis one. where is the jar file of mailet-api.jar???
thanks
ahsan
On 10/30/06, Norman Maurer <[EMAIL PROTECTED]> wrote:
Maybe this is usefull for you :
http://java201.com
thnx a lot, quite useful site, BUT BUT BUT because i am unable to proceed
with the import org.apache.mailet.*; command, i am unable to use the
resource to the max. :(
any help from anyone will be highly appreciated :)
thanks
-
ahsan
On 10/30/06, Norman Maurer <[EMAIL PROTECTED]> wrote:
Maybe
You should extract the jar file out of the james.sar file and add it to
your classpath.
bye
Norman
Ahsan schrieb:
> thnx a lot, quite useful site, BUT BUT BUT because i am unable to proceed
> with the import org.apache.mailet.*; command, i am unable to use the
> resource to the max. :(
>
> any he
thnx a lot, now i cna run the smaple codes
however, i was wondering if only a mailet would be sufficient enough for my
purpose ?? do i need a matcher as well ??
On 10/31/06, Norman Maurer <[EMAIL PROTECTED]> wrote:
You should extract the jar file out of the james.sar file and add it to
your c
You was the guys that wanted to write a mailet that ping some hosts
right ? So maybe the matcher "All" is allready what you need. You will
only need writting you own if no provided matcher fit your needs.
See :
http://james.apache.org/server/2.3.0/provided_matchers.html
bye
norman
Ahsan schrieb
Ahsan wrote:
thnx a lot, now i cna run the smaple codes
however, i was wondering if only a mailet would be sufficient enough for my
purpose ?? do i need a matcher as well ??
We don't know what do you mean with "I have to write a simple mailet
that will ping the servers of the recipient and an
well, let me help a little bit
normally, if u mail to some UNAVAILABLE host ID. e.g.
[EMAIL PROTECTED] ; then fiorst the mail will be sent, then
when the mail is bounced back, the server will let the sender know.
all i want to do is, to ping the server and see if the server is available
or not.
The All Matcher should be perfect..
bye
Ahsan schrieb:
> well, let me help a little bit
>
> normally, if u mail to some UNAVAILABLE host ID. e.g.
> [EMAIL PROTECTED] ; then fiorst the mail will be sent, then
> when the mail is bounced back, the server will let the sender know.
>
> all i want to
Ahsan wrote:
well, let me help a little bit
normally, if u mail to some UNAVAILABLE host ID. e.g.
[EMAIL PROTECTED] ; then fiorst the mail will be sent, then
when the mail is bounced back, the server will let the sender know.
This is not true. Our RemoteDelivery mailet will see that there is n
well, the, i can ping and look for mail servers
you see, this a uni project and is not intended for real life sue, this
being said, it should be done practically :)
so, what u meant was ping for mail servers, right ?
-
ahsan
On 10/31/06, Stefano Bagnara <[EMAIL PROTECTED]> wrote:
Ahsan wrot
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 :(
**
org.apache.james.transpo
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
these config.xml lines also do not work
[EMAIL PROTECTED]
mail delivery error !
Sorry, the email address u sent the mail to, is not valid. Please
have a look again. Thanks.
On 11/1/06, Ahsan <[EMAIL PROTECTED]> wrote:
about the mailet and matcher, what i have done is-->>
1) if the host
the main thing with the config.xml thingy is that i do not need any info or
anytihng else to initialize the matcher,so how should i write the config
lines ???
any help will be greatly appreciated :)
thanks
-
ahsan
On 11/1/06, Ahsan <[EMAIL PROTECTED]> wrote:
these config.xml lines also do n
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
pls find attached my matcher and mailet files, thnaks for your help.
i am trying out your suggestion now and will let you know the results :)
thanks again
-
ahsan
On 11/1/06, Vincenzo Gianferrari Pini <[EMAIL PROTECTED]> wrote:
If you don't need to pass any parameter to the matcher, simply w
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 rea
Dear Vicenzo and every1 else,
Thanx, it helps a lot, BUT BUT BUT please, can you help me out with my mailet ??
you see, i need a mailt of my own to show..
BY THE WAY-- IMP FOR ANY1 NEW--
the JAMES server will crash for improperly zipped jar files :(( --->> this was a big mistake
Ahsan wrote:
> 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 :(
:)
I'm sure we would all like to be able to quickly implant Vincenzo's
knowledge
Your attached files didn't go through (at least to me). Can you resend them?
Vincenzo
Ahsan wrote:
pls find attached my matcher and mailet files, thnaks for your help.
i am trying out your suggestion now and will let you know the results :)
thanks again
-
ahsan
On 11/1/06, *Vincenzo G
Dear Vicenzo,
sure I can, thnaks for your help :)
-
ahsan
On 11/2/06, Vincenzo Gianferrari Pini <[EMAIL PROTECTED]> wrote:
Your attached files didn't go through (at least to me). Can you resend them?VincenzoAhsan wrote:
> pls find attached my matcher and mailet files, thnaks for your help.>> i a
Please remember it's not possible to send attachments to apache
mailinglists. The Attachments get removed..
bye
Norman
Ahsan schrieb:
> Dear Vicenzo,
> sure I can, thnaks for your help :)
>
> -
> ahsan
>
> On 11/2/06, Vincenzo Gianferrari Pini
> <[EMAIL PROTECTED]>
> wrote:
>>
>> Your attached fi
i did have some suspicion that this might happen and did BCC my mail with
the attachments to Vicenzo :)
thanks for your information
-
ahsan
On 11/2/06, Norman Maurer <[EMAIL PROTECTED]> wrote:
Please remember it's not possible to send attachments to apache
mailinglists. The Attachments get r
Ahsan,
just for didactical purposes, the following should (?) be the minimum
code needed for your matcher (you need jdk 1.5):
--
package serveravailability.matcher;
import java.io.IOException;
import org.apache.mailet.GenericRecipientMatcher;
import org.apache.mailet.MailAddress;
hi, thnx for your kind help
btw, i did see a way to find if a certain host had any mail server or not.
tha would have been better i guess.
i already know ab8 the problems with sending and ICMP package :-s
On 11/2/06, Vincenzo Gianferrari Pini <[EMAIL PROTECTED]>
wrote:
Ahsan,
just for didac
29 matches
Mail list logo