comparison sendmail.xml @ 2:aff68aba2f62 draft

Replace XML with correct one. Apologies for the mistake
author geert-vandeweyer
date Thu, 13 Feb 2014 03:50:43 -0500
parents
children
comparison
equal deleted inserted replaced
1:0b1cdae7ad5b 2:aff68aba2f62
1 <tool id="sendemail" name="Send Mail On Completion" version="0.0.1">
2 <description></description>
3 <command interpreter="perl">
4 sendmail.pl -u '$__user_email__'
5
6 ## subject
7 #if $subjectfromselect.subjectsource == "typed" :
8 #if $subjectfromselect.typedsubject != "":
9 -s "${subjectfromselect.typedsubject}"
10 #end if
11 #elif $subjectfromselect.subjectsource == "other":
12 -s "Galaxy Job Finished on ${subjectfromselect.subjectfile.display_name}"
13 #elif $subjectfromselect.subjectsource == "input1":
14 -s "Galaxy Job Finished on ${input1.display_name}"
15 #end if
16
17 -d "${input1.display_name}@@@
18 #for $q in $datafiles
19 ${q.input2.display_name}@@@
20 #end for
21 "
22
23 -o $output
24
25 </command>
26 <inputs>
27 <conditional name="subjectfromselect">
28 <param name="subjectsource" type="select" label="Provide a Subject for the email :" help="If no subject is specified, a generic email will be send." >
29 <option value="typed">Type the subject</option>
30 <option value="input1">Base the subject on the first selected file</option>
31 <option value="other">Base the subject on a file selected here</option>
32 </param>
33 <when value="typed">
34 <param name="typedsubject" type="text" size="25" label="Subject for email" />
35 </when>
36 <when value="other">
37 <param name="subjectfile" type="data" label="Select a file from the history to base the subject upon" />
38 </when>
39 </conditional>
40
41 <param name="input1" type="data" label="Datafile to be completed:"/>
42 <repeat name="datafiles" title="Data Files">
43 <param name="input2" type="data" label="Select" />
44 </repeat>
45 </inputs>
46 <outputs>
47 <data format="txt" name="output" label="Email Sent." hidden="true" />
48 </outputs>
49
50 <help>
51 **What it does**
52
53 This tool sends an email to notify you when a certain analysis has finished. It takes any datfile(s) as input and sends the mail as soon as they are ready. Use it to notify you of workflow completion. In workflows, this can be set in the workflow editor, but this tools can be handy to get notifications for manually started jobs.
54
55 **Input**
56
57 Datasets:
58 Any dataset, or multiple datasets. They will be listed in the email.
59
60 A subject:
61 You can specify the subject of the mail yourself, or use a datafile. In that case, the subject will be of the form "Galaxy Job Finished on Datafile_Name". If none is specified, you will just recieve a mail with "Galaxy workflow finished" as subject.
62
63 **Output**
64
65 None.
66
67 </help>
68
69 </tool>