You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Garvice Eakins <ga...@gmail.com> on 2012/01/10 00:40:28 UTC
Mailet-Matcher config
Hi,
Trying to figure out the Mailet/Matcher functionality of James.
I created a basic mailet that inherited from GenericMatcher.
It takes information from the Mail message, makes a few Rest webservice
calls checking the Sender Address against the recipient address, And stores
some of the data from the email in a MySql DB through the Rest Service.
Based on this I don't think I need a Mailet do I..? But I don't really
understand how to register my Matcher with James, and from what I see it
looks like I need both somehow?
I'm using James 3.2.3
Re: Mailet-Matcher config
Posted by Garvice Eakins <ga...@gmail.com>.
Thanks a bunch, not sure how I missed this. Saw it for James 2.x
On Thu, Jan 12, 2012 at 2:58 AM, Norman Maurer <norman.maurer@googlemail.com
> wrote:
> Hi there,
>
> read this...
>
> For james 2.3.x:
> http://james.apache.org/server/2/custom_mailet.html
>
> For james 3.x:
> http://james.apache.org/server/3/dev-extend-mailet.html
>
> Bye,
> Norman
>
> 2012/1/12 Garvice Eakins <ga...@gmail.com>
>
> > Still wondering how to register my mailet with James and where I store
> it.
> > Any help would be appreciated.
> >
> > On Wed, Jan 11, 2012 at 8:21 AM, Garvice Eakins <garviceeakins@gmail.com
> > >wrote:
> >
> > > Hi,
> > >
> > > OK that makes sense, So even though I am using the Sender, and
> recipient
> > > information, to ensure the email is coming from a valid contact.
> > > I skip writing a matcher and only write a mailet? So instead of
> running a
> > > Match on the mail object, I service the Mail object? Got it.
> > >
> > > Now once I create my Mailet Class. what do I do then? Compile my
> Project
> > > into a .jar file and store it in the lib folder in my James
> installation?
> > > How do I register it to be used?
> > >
> > > ~Garvice
> > >
> > >
> > > On Tue, Jan 10, 2012 at 10:50 PM, Norman Maurer <
> > > norman.maurer@googlemail.com> wrote:
> > >
> > >> Hi there,
> > >>
> > >> for this purpose you would typically create a custom "Mailet" which
> > >> extends
> > >> "GenericMailet" (not GenericMatcher as you wrote).
> > >> In this Mailet you would put all the needed logic.
> > >>
> > >> Now about the difference of Matcher and Mailet...
> > >>
> > >> The Matcher is used to see which "recipients" should the Mailet be
> used
> > >> on.
> > >> This allows todo some nice routing stuff.
> > >>
> > >> Bye,
> > >> Norman
> > >>
> > >>
> > >> 2012/1/10 Garvice Eakins <ga...@gmail.com>
> > >>
> > >> > Hi,
> > >> >
> > >> > Trying to figure out the Mailet/Matcher functionality of James.
> > >> >
> > >> > I created a basic mailet that inherited from GenericMatcher.
> > >> > It takes information from the Mail message, makes a few Rest
> > webservice
> > >> > calls checking the Sender Address against the recipient address, And
> > >> stores
> > >> > some of the data from the email in a MySql DB through the Rest
> > Service.
> > >> >
> > >> > Based on this I don't think I need a Mailet do I..? But I don't
> really
> > >> > understand how to register my Matcher with James, and from what I
> see
> > it
> > >> > looks like I need both somehow?
> > >> >
> > >> > I'm using James 3.2.3
> > >> >
> > >>
> > >
> > >
> >
>
Re: Mailet-Matcher config
Posted by Norman Maurer <no...@googlemail.com>.
Hi there,
read this...
For james 2.3.x:
http://james.apache.org/server/2/custom_mailet.html
For james 3.x:
http://james.apache.org/server/3/dev-extend-mailet.html
Bye,
Norman
2012/1/12 Garvice Eakins <ga...@gmail.com>
> Still wondering how to register my mailet with James and where I store it.
> Any help would be appreciated.
>
> On Wed, Jan 11, 2012 at 8:21 AM, Garvice Eakins <garviceeakins@gmail.com
> >wrote:
>
> > Hi,
> >
> > OK that makes sense, So even though I am using the Sender, and recipient
> > information, to ensure the email is coming from a valid contact.
> > I skip writing a matcher and only write a mailet? So instead of running a
> > Match on the mail object, I service the Mail object? Got it.
> >
> > Now once I create my Mailet Class. what do I do then? Compile my Project
> > into a .jar file and store it in the lib folder in my James installation?
> > How do I register it to be used?
> >
> > ~Garvice
> >
> >
> > On Tue, Jan 10, 2012 at 10:50 PM, Norman Maurer <
> > norman.maurer@googlemail.com> wrote:
> >
> >> Hi there,
> >>
> >> for this purpose you would typically create a custom "Mailet" which
> >> extends
> >> "GenericMailet" (not GenericMatcher as you wrote).
> >> In this Mailet you would put all the needed logic.
> >>
> >> Now about the difference of Matcher and Mailet...
> >>
> >> The Matcher is used to see which "recipients" should the Mailet be used
> >> on.
> >> This allows todo some nice routing stuff.
> >>
> >> Bye,
> >> Norman
> >>
> >>
> >> 2012/1/10 Garvice Eakins <ga...@gmail.com>
> >>
> >> > Hi,
> >> >
> >> > Trying to figure out the Mailet/Matcher functionality of James.
> >> >
> >> > I created a basic mailet that inherited from GenericMatcher.
> >> > It takes information from the Mail message, makes a few Rest
> webservice
> >> > calls checking the Sender Address against the recipient address, And
> >> stores
> >> > some of the data from the email in a MySql DB through the Rest
> Service.
> >> >
> >> > Based on this I don't think I need a Mailet do I..? But I don't really
> >> > understand how to register my Matcher with James, and from what I see
> it
> >> > looks like I need both somehow?
> >> >
> >> > I'm using James 3.2.3
> >> >
> >>
> >
> >
>
Re: Mailet-Matcher config
Posted by Garvice Eakins <ga...@gmail.com>.
Still wondering how to register my mailet with James and where I store it.
Any help would be appreciated.
On Wed, Jan 11, 2012 at 8:21 AM, Garvice Eakins <ga...@gmail.com>wrote:
> Hi,
>
> OK that makes sense, So even though I am using the Sender, and recipient
> information, to ensure the email is coming from a valid contact.
> I skip writing a matcher and only write a mailet? So instead of running a
> Match on the mail object, I service the Mail object? Got it.
>
> Now once I create my Mailet Class. what do I do then? Compile my Project
> into a .jar file and store it in the lib folder in my James installation?
> How do I register it to be used?
>
> ~Garvice
>
>
> On Tue, Jan 10, 2012 at 10:50 PM, Norman Maurer <
> norman.maurer@googlemail.com> wrote:
>
>> Hi there,
>>
>> for this purpose you would typically create a custom "Mailet" which
>> extends
>> "GenericMailet" (not GenericMatcher as you wrote).
>> In this Mailet you would put all the needed logic.
>>
>> Now about the difference of Matcher and Mailet...
>>
>> The Matcher is used to see which "recipients" should the Mailet be used
>> on.
>> This allows todo some nice routing stuff.
>>
>> Bye,
>> Norman
>>
>>
>> 2012/1/10 Garvice Eakins <ga...@gmail.com>
>>
>> > Hi,
>> >
>> > Trying to figure out the Mailet/Matcher functionality of James.
>> >
>> > I created a basic mailet that inherited from GenericMatcher.
>> > It takes information from the Mail message, makes a few Rest webservice
>> > calls checking the Sender Address against the recipient address, And
>> stores
>> > some of the data from the email in a MySql DB through the Rest Service.
>> >
>> > Based on this I don't think I need a Mailet do I..? But I don't really
>> > understand how to register my Matcher with James, and from what I see it
>> > looks like I need both somehow?
>> >
>> > I'm using James 3.2.3
>> >
>>
>
>
Re: SMTP AUTH
Posted by Eric Charles <er...@apache.org>.
Not that I know. Do you think it is?
Thx,
Eric
On 11/01/12 21:38, Kendrick C. Wilson wrote:
>
> Hey,
>
> Is VerifyIdentity broken in 3.0 beta 3?
>
> Kendrick C. Wilson
>
>
>> From: kendrick_wilson@hotmail.com
>> To: server-user@james.apache.org
>> Subject: SMTP AUTH
>> Date: Wed, 11 Jan 2012 11:00:44 -0600
>>
>>
>> How to configure James to force all users to authenticate before sending(even local users)?
>>
>> Kendrick C. Wilson
>>
>>
>
--
eric | http://about.echarles.net | @echarles
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
RE: SMTP AUTH
Posted by "Kendrick C. Wilson" <ke...@hotmail.com>.
Hey,
Is VerifyIdentity broken in 3.0 beta 3?
Kendrick C. Wilson
> From: kendrick_wilson@hotmail.com
> To: server-user@james.apache.org
> Subject: SMTP AUTH
> Date: Wed, 11 Jan 2012 11:00:44 -0600
>
>
> How to configure James to force all users to authenticate before sending(even local users)?
>
> Kendrick C. Wilson
>
>
SMTP AUTH
Posted by "Kendrick C. Wilson" <ke...@hotmail.com>.
How to configure James to force all users to authenticate before sending(even local users)?
Kendrick C. Wilson
Re: Mailet-Matcher config
Posted by Garvice Eakins <ga...@gmail.com>.
Hi,
OK that makes sense, So even though I am using the Sender, and recipient
information, to ensure the email is coming from a valid contact.
I skip writing a matcher and only write a mailet? So instead of running a
Match on the mail object, I service the Mail object? Got it.
Now once I create my Mailet Class. what do I do then? Compile my Project
into a .jar file and store it in the lib folder in my James installation?
How do I register it to be used?
~Garvice
On Tue, Jan 10, 2012 at 10:50 PM, Norman Maurer <
norman.maurer@googlemail.com> wrote:
> Hi there,
>
> for this purpose you would typically create a custom "Mailet" which extends
> "GenericMailet" (not GenericMatcher as you wrote).
> In this Mailet you would put all the needed logic.
>
> Now about the difference of Matcher and Mailet...
>
> The Matcher is used to see which "recipients" should the Mailet be used on.
> This allows todo some nice routing stuff.
>
> Bye,
> Norman
>
>
> 2012/1/10 Garvice Eakins <ga...@gmail.com>
>
> > Hi,
> >
> > Trying to figure out the Mailet/Matcher functionality of James.
> >
> > I created a basic mailet that inherited from GenericMatcher.
> > It takes information from the Mail message, makes a few Rest webservice
> > calls checking the Sender Address against the recipient address, And
> stores
> > some of the data from the email in a MySql DB through the Rest Service.
> >
> > Based on this I don't think I need a Mailet do I..? But I don't really
> > understand how to register my Matcher with James, and from what I see it
> > looks like I need both somehow?
> >
> > I'm using James 3.2.3
> >
>
Re: Mailet-Matcher config
Posted by Norman Maurer <no...@googlemail.com>.
Hi there,
for this purpose you would typically create a custom "Mailet" which extends
"GenericMailet" (not GenericMatcher as you wrote).
In this Mailet you would put all the needed logic.
Now about the difference of Matcher and Mailet...
The Matcher is used to see which "recipients" should the Mailet be used on.
This allows todo some nice routing stuff.
Bye,
Norman
2012/1/10 Garvice Eakins <ga...@gmail.com>
> Hi,
>
> Trying to figure out the Mailet/Matcher functionality of James.
>
> I created a basic mailet that inherited from GenericMatcher.
> It takes information from the Mail message, makes a few Rest webservice
> calls checking the Sender Address against the recipient address, And stores
> some of the data from the email in a MySql DB through the Rest Service.
>
> Based on this I don't think I need a Mailet do I..? But I don't really
> understand how to register my Matcher with James, and from what I see it
> looks like I need both somehow?
>
> I'm using James 3.2.3
>
RE: Sent Box
Posted by "Kendrick C. Wilson" <ke...@hotmail.com>.
Hey,
I was able to copy the mail to the sent folder using imap after sending it via smtp.......
A server side solution would be preferred(if you guys have time)....
Thanks.
Kendrick.
Re: Sent Box
Posted by Eric Charles <er...@apache.org>.
Hi,
This is a recurring request (for Spam, Sent Items...), so I opened
https://issues.apache.org/jira/browse/JAMES-1365 Implement a ToFolder
mailet.
I don't know when I could work it out, but ping us in a week or two to
relaunch this if you don't see something before.
thx,
Eric
On 11/01/12 20:38, Kendrick C. Wilson wrote:
>
> Yes.
>
> I am using James as a backend for a web mail type system.
>
> Kendrick C. Wilson
>
>
>> Date: Wed, 11 Jan 2012 20:36:39 +0100
>> From: eric@apache.org
>> To: server-user@james.apache.org
>> Subject: Re: Sent Box
>>
>> Hi,
>>
>> This can be done setting on you mail client 'place a copy in Sent
>> folder' (available in thunderbird on the second tab of your mail account).
>>
>> Are you looking for something else such a server configuration?
>>
>> Thx,
>>
>> Eric
>>
>>
>> On 10/01/12 15:19, Kendrick C. Wilson wrote:
>>>
>>> I am trying to implement a sent items type folder...similar to the one found in g-mail....
>>>
>>> Any suggestions on how to set this up?
>>>
>>
>> --
>> eric | http://about.echarles.net | @echarles
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>
--
eric | http://about.echarles.net | @echarles
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
RE: Sent Box
Posted by "Kendrick C. Wilson" <ke...@hotmail.com>.
Yes.
I am using James as a backend for a web mail type system.
Kendrick C. Wilson
> Date: Wed, 11 Jan 2012 20:36:39 +0100
> From: eric@apache.org
> To: server-user@james.apache.org
> Subject: Re: Sent Box
>
> Hi,
>
> This can be done setting on you mail client 'place a copy in Sent
> folder' (available in thunderbird on the second tab of your mail account).
>
> Are you looking for something else such a server configuration?
>
> Thx,
>
> Eric
>
>
> On 10/01/12 15:19, Kendrick C. Wilson wrote:
> >
> > I am trying to implement a sent items type folder...similar to the one found in g-mail....
> >
> > Any suggestions on how to set this up?
> >
>
> --
> eric | http://about.echarles.net | @echarles
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
Re: Sent Box
Posted by Eric Charles <er...@apache.org>.
Hi,
This can be done setting on you mail client 'place a copy in Sent
folder' (available in thunderbird on the second tab of your mail account).
Are you looking for something else such a server configuration?
Thx,
Eric
On 10/01/12 15:19, Kendrick C. Wilson wrote:
>
> I am trying to implement a sent items type folder...similar to the one found in g-mail....
>
> Any suggestions on how to set this up?
>
--
eric | http://about.echarles.net | @echarles
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Sent Box
Posted by "Kendrick C. Wilson" <ke...@hotmail.com>.
I am trying to implement a sent items type folder...similar to the one found in g-mail....
Any suggestions on how to set this up?