Created
April 11, 2018 00:54
-
-
Save jonfuller/a3ca1d4410dc981c74d55559498619b6 to your computer and use it in GitHub Desktop.
Revisions
-
jonfuller created this gist
Apr 11, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ // ... public bool CanHandle(MimeMessage message, IEnumerable<(string name, byte[] data)> attachments) { return true; } // ... This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ // ... public bool CanHandle(MimeMessage message, IEnumerable<(string name, byte[] data)> attachments) { return message.Subject.ToLower(CultureInfo.CurrentCulture).Contains("settings") && attachments.Any(a => a.name.ToLower(CultureInfo.CurrentCulture).Contains("xlsx")); } // ...