Created
April 19, 2020 02:26
-
-
Save cgpu/d9c009a917f76d799436fd440d37235a to your computer and use it in GitHub Desktop.
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
To: $email | |
Subject: $subject | |
Mime-Version: 1.0 | |
Content-Type: multipart/related;boundary="nfcoremimeboundary" | |
--nfcoremimeboundary | |
Content-Type: text/html; charset=utf-8 | |
$email_html | |
--nfcoremimeboundary | |
Content-Type: image/png;name="nf-core-rnaseq_logo.png" | |
Content-Transfer-Encoding: base64 | |
Content-ID: <nfcorepipelinelogo> | |
Content-Disposition: inline; filename="nf-core-rnaseq_logo.png" | |
<% out << new File("nf-core-rnaseq_logo.png"). | |
bytes. | |
encodeBase64(). | |
toString(). | |
tokenize( '\n' )*. | |
toList()*. | |
collate( 76 )*. | |
collect { it.join() }. | |
flatten(). | |
join( '\n' ) %> | |
<% | |
if (mqcFile){ | |
def mqcFileObj = new File("$mqcFile") | |
if (mqcFileObj.length() < mqcMaxSize){ | |
out << """ | |
--nfcoremimeboundary | |
Content-Type: text/html; name=\"multiqc_report\" | |
Content-Transfer-Encoding: base64 | |
Content-ID: <mqcreport> | |
Content-Disposition: attachment; filename=\"${mqcFileObj.getName()}\" | |
${mqcFileObj. | |
bytes. | |
encodeBase64(). | |
toString(). | |
tokenize( '\n' )*. | |
toList()*. | |
collate( 76 )*. | |
collect { it.join() }. | |
flatten(). | |
join( '\n' )} | |
""" | |
}} | |
%> | |
--nfcoremimeboundary-- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment