Skip to content

Commit 01d444f

Browse files
committed
#405: Another CLI fix for Content-Transfer-Encoding for attachments
1 parent 80e933a commit 01d444f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/core-module/src/main/java/org/simplejavamail/api/email/EmailPopulatingBuilder.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,6 +1102,7 @@ public interface EmailPopulatingBuilder {
11021102
* @param filedata The attachment data.
11031103
* @param description An optional description that will find its way in the MimeMEssage with the Content-Description header. This is rarely needed.
11041104
*/
1105+
@Cli.OptionNameOverride("withDescribedAttachment")
11051106
EmailPopulatingBuilder withAttachment(@Nullable String name, @NotNull DataSource filedata, @Nullable final String description);
11061107

11071108
/**
@@ -1119,6 +1120,7 @@ public interface EmailPopulatingBuilder {
11191120
* @see #withAttachment(String, DataSource, String, ContentTransferEncoding)
11201121
* @see #withAttachments(List)
11211122
*/
1123+
@Cli.OptionNameOverride("withEncodedDescribedAttachment")
11221124
EmailPopulatingBuilder withAttachment(@Nullable String name, @NotNull DataSource filedata, @Nullable final String description, @Nullable final ContentTransferEncoding contentTransferEncoding);
11231125

11241126
/**

0 commit comments

Comments
 (0)