Skip to content

Commit 24459ff

Browse files
authored
Merge f699566 into d318cf2
2 parents d318cf2 + f699566 commit 24459ff

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
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,
86+
email.Subject.Substring(0, Math.Min(100, email.Subject.Length)),
8787
state));
8888
Logger.InfoFormat("sending email {@email}", email);
8989
await CompositionRoot.EmailService.SendAsync(email);

Snittlistan.Web/Infrastructure/Installers/EmailServiceInstaller.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-

1+
#nullable enable
2+
23
using System.Web.Mvc;
34
using Castle.MicroKernel.Registration;
45
using Castle.MicroKernel.SubSystems.Configuration;
56
using Castle.Windsor;
67
using Postal;
78

8-
#nullable enable
9-
109
namespace Snittlistan.Web.Infrastructure.Installers;
10+
1111
public class EmailServiceInstaller : IWindsorInstaller
1212
{
1313
private readonly string viewsPath;

0 commit comments

Comments
 (0)