This commit is contained in:
Burak Kaan Köse
2025-03-15 15:22:43 +01:00

View File

@@ -161,8 +161,8 @@ public class MimeFileService : IMimeFileService
{ {
var unsubscribeLinks = message.Headers[HeaderId.ListUnsubscribe] var unsubscribeLinks = message.Headers[HeaderId.ListUnsubscribe]
.Normalize() .Normalize()
.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries) .Split([','], StringSplitOptions.RemoveEmptyEntries)
.Select(x => x.Trim([' ', '<', '>'])); .Select(x => x.Trim().Trim(['<', '>']));
// Only two types of unsubscribe links are possible. // Only two types of unsubscribe links are possible.
// So each has it's own property to simplify the usage. // So each has it's own property to simplify the usage.