This is an automated email from the ASF dual-hosted git repository.
rcordier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git
The following commit(s) were added to refs/heads/master by this push:
new 074a52efcd [DOC] Fix doc for SetMimeHeader
074a52efcd is described below
commit 074a52efcd401ce9a031e6e8a7d4cf0198bb48ae
Author: Benoit TELLIER <[email protected]>
AuthorDate: Wed Sep 3 16:29:34 2025 +0200
[DOC] Fix doc for SetMimeHeader
---
docs/modules/servers/partials/SetMimeHeader.adoc | 10 +++++-----
docs/modules/servers/partials/configure/mailets.adoc | 4 +++-
.../java/org/apache/james/transport/mailets/SetMimeHeader.java | 2 +-
3 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/docs/modules/servers/partials/SetMimeHeader.adoc
b/docs/modules/servers/partials/SetMimeHeader.adoc
index eef8584a13..01407345a9 100644
--- a/docs/modules/servers/partials/SetMimeHeader.adoc
+++ b/docs/modules/servers/partials/SetMimeHeader.adoc
@@ -1,12 +1,12 @@
-=== SetMailAttribute
+=== SetMimeHeader
Adds a specified header and value to the message.
Sample configuration:
....
-<mailet match="All" class="AddHeader">
- <name>X-MailetHeader</name>
- <value>TheHeaderValue</value>
+<mailet match="All" class="SetMimeHeader">
+ <name>X-CUSTOM-HEADER</nam>
+ <value>whatever</value>
</mailet>
-....
+....
\ No newline at end of file
diff --git a/docs/modules/servers/partials/configure/mailets.adoc
b/docs/modules/servers/partials/configure/mailets.adoc
index d89df01b5c..58505fc87a 100644
--- a/docs/modules/servers/partials/configure/mailets.adoc
+++ b/docs/modules/servers/partials/configure/mailets.adoc
@@ -81,6 +81,8 @@ include::partial$ReplaceContent.adoc[]
include::partial$Resend.adoc[]
+include::partial$SetMimeHeader.adoc[]
+
include::partial$SetMailAttribute.adoc[]
include::partial$SetMimeHeader.adoc[]
@@ -149,4 +151,4 @@ include::partial$WrapText.adoc[]
include::partial$SubAddressing.adoc[]
-include::partial$SanitizeMimeMessageId.adoc[]
\ No newline at end of file
+include::partial$SanitizeMimeMessageId.adoc[]
diff --git
a/mailet/standard/src/main/java/org/apache/james/transport/mailets/SetMimeHeader.java
b/mailet/standard/src/main/java/org/apache/james/transport/mailets/SetMimeHeader.java
index 2c2adc03ec..c66f04a752 100644
---
a/mailet/standard/src/main/java/org/apache/james/transport/mailets/SetMimeHeader.java
+++
b/mailet/standard/src/main/java/org/apache/james/transport/mailets/SetMimeHeader.java
@@ -35,7 +35,7 @@ import com.google.common.base.Strings;
* <p>Sample configuration:</p>
*
* <pre><code>
- * <mailet match="All" class="AddHeader">
+ * <mailet match="All" class="SetMimeHeader">
* <name>X-MailetHeader</name>
* <value>TheHeaderValue</value>
* </mailet>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]