Rogier Doekes ha scritto:
> Hi,
> 
> I am just starting with James. I installed James and did the standard
> configuration, including database setup to mail our SQL Server as the mail
> store. It is working very well, I am very impressed with James'
> capabilities.
> 
> However, on the topic on mailets and matchers I am a little fuzzy. I am
> sure
> our problem is handled well already, but I could not find any help.
> 
> James' default spool behavoir is that outgoing mail, when successfully
> sent,
> is removed from the spool. However, our company's legal requirement is that
> all email is stored permanently.
> What would a mailet look like which takes the sent email from the spool
> table and stores it in a table named say "sentmail"?

Just before the
"<mailet match="All" class="RemoteDelivery">"
add a
<mailet match="All" class="ToRepository">
 <passThrough>true</passThrough>
 <repositoryPath>db://maildb/store/sent</repositoryPath>
</mailet>

> Same goes for popped mail. Most mail clients standard setup is to download
> messages from the mail server and not leaving a copy on the server. I also
> would like to change this behavoir in James, so that the inbox always
> contains a complete list of messages?

The easier thing is to store a copy of every mail when you already place
a copy in inbox (compared to not deleting or moving when people use POP
is much easier).
So, just before the LocalDelivery mailet:
<mailet match="RecipientIsLocal" class="ToRepository">
 <passThrough>true</passThrough>
 <repositoryPath>db://maildb/store/received</repositoryPath>
</mailet>

<mailet match="RecipientIsLocal" class="LocalDelivery"/>


> Does anyone have some answers to my questions or could lead me to some
> already posted information about this?
> 
> Many thanks,
> 
> -Rogier Doekes

You're welcome,
Stefano


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

Reply via email to