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
<!-- Logback configuration. See http://logback.qos.ch/manual/index.html --> | |
<!-- Scanning is currently turned on; This will impact performance! --> | |
<configuration scan="true" scanPeriod="10 seconds"> | |
<!-- Silence Logback's own status messages about config parsing | |
<statusListener class="ch.qos.logback.core.status.NopStatusListener" /> --> | |
<!-- Simple file output --> | |
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> | |
<!-- encoder defaults to ch.qos.logback.classic.encoder.PatternLayoutEncoder --> |
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
(def spreadsheet-regex | |
#"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet") | |
(defn content-type-spreadsheet? [content-type] | |
(when content-type | |
(re-find spreadsheet-regex content-type))) | |
(defn has-spreadsheet? [msg] | |
(and (:multipart? msg) | |
(some content-type-spreadsheet? |