[
https://issues.apache.org/jira/browse/JAMES-4051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17874868#comment-17874868
]
annisun commented on JAMES-4051:
--------------------------------
[~btellier]
Thank you very much for your reply. I have already integrated SpamAssassin into
James.
But I have a question I'd like to ask. In my mailetcontainer.xml, I only have
the following configuration:
{code:java}
<processor state="local-delivery" enableJmx="true">
<mailet match="All" class="org.apache.james.spamassassin.SpamAssassin">
<onMailetException>ignore</onMailetException>
</mailet>
<mailet match="IsMarkedAsSpam" class="WithStorageDirective">
<targetFolderName>Spam</targetFolderName>
</mailet>
<mailet match="All" class="LocalDelivery"/>
</processor> {code}
It works, but I haven't added any other configurations and I'm not sure if that
will have any impact."This configuration is only effective, and I don't know if
not adding other configurations will have any impact.
I have added the following content to Spring Boot, and it started successfully.
{code:java}
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
<bean id="SpamAssassin" class="org.apache.james.spamassassin.SpamAssassin"/>
<bean id="host" class="org.apache.james.util.Host">
<constructor-arg value="localhost" />
<constructor-arg value="783" />
</bean>
<bean id="SpamAssassinConfiguration"
class="org.apache.james.spamassassin.SpamAssassinConfiguration">
<constructor-arg ref="host" />
</bean>
</beans>
{code}
> SpamAssassin Missing
> --------------------
>
> Key: JAMES-4051
> URL: https://issues.apache.org/jira/browse/JAMES-4051
> Project: James Server
> Issue Type: Bug
> Components: James Core
> Affects Versions: 3.8.0, 3.8.1
> Reporter: annisun
> Priority: Major
> Fix For: 3.8.0, 3.8.1
>
> Attachments: SpamAssassinConfiguration.java, SpamAssassinModule.java,
> image-2024-07-17-16-39-59-506.png
>
>
> The class can still be found in 3.7.5, but it is not found in 3.8.0 and later
> versions. SpamAssassin cannot be used after 3.7.5.
> !image-2024-07-17-16-39-59-506.png!
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]