Skip to content

Commit 7d1707f

Browse files
committed
truncate
1 parent f699566 commit 7d1707f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Snittlistan.Web/Commands/HandleMailCommandHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ await CompositionRoot.Databases.Snittlistan.KeyValueProperties
8383
email.From,
8484
email.To,
8585
email.Bcc,
86-
email.Subject.Substring(0, Math.Min(100, email.Subject.Length)),
86+
email.Subject,
8787
state));
8888
Logger.InfoFormat("sending email {@email}", email);
8989
await CompositionRoot.EmailService.SendAsync(email);

Snittlistan.Web/Models/EmailState.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ protected EmailState(
1616
From = from;
1717
To = to;
1818
Bcc = bcc;
19-
Subject = subject;
19+
Subject = subject.Substring(0, Math.Min(100, subject.Length));
2020
}
2121

2222
public static string OwnerEmail { get; } = ConfigurationManager.AppSettings["OwnerEmail"];

0 commit comments

Comments
 (0)