ieugen / james-self-hosting-sandbox

A sample project to work on self hosting email server with Apache James
4 stars 1 forks source link

Add example on how to use mailets / write your own mailets #2

Closed ieugen closed 4 years ago

chibenwa commented 4 years ago

http://james.apache.org/howTo/mail-processing.html tries to document it.

chibenwa commented 4 years ago

(there is also a mailbox listener counterpart http://james.apache.org/howTo/custom-listeners.html )

dleangen commented 4 years ago

Thanks for pointing this out! The two URLs are the same. Was that intentional?

chibenwa commented 4 years ago

(sorry, message edited)

ieugen commented 4 years ago

Added simple logging mailet and matcher

james_1  | 19:06:33.346 [INFO ] r.i.s.m.LogAndDoNothingMailet - initialize mailet
james_1  | 19:06:33.347 [INFO ] o.a.j.m.l.AbstractStateMailetProcessor - Mailet ro.ieugen.sample.mailets.LogAndDoNothingMailet instantiated.
james_1  | 19:06:33.349 [INFO ] r.i.s.m.MatchMadeInHeaven - Initialize sample matcher
james_1  | 19:06:33.349 [INFO ] o.a.j.m.l.AbstractStateMailetProcessor - Matcher ro.ieugen.sample.mailets.MatchMadeInHeaven instantiated.
james_1  | 19:06:33.350 [INFO ] r.i.s.m.LogAndDoNothingMailet - initialize mailet
james_1  | 19:06:33.350 [INFO ] o.a.j.m.l.AbstractStateMailetProcessor - Mailet ro.ieugen.sample.mailets.LogAndDoNothingMailet instantiated.