Created
April 11, 2018 00:54
-
-
Save jonfuller/a3ca1d4410dc981c74d55559498619b6 to your computer and use it in GitHub Desktop.
Blog - Email Interface - Handlers
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 characters
// ... | |
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 characters
// ... | |
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")); | |
} | |
// ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment