Hey folks,
Im trying to send status mails
via MailTo which is not properly working
if the subject is longer the a single word.
The patch below fix it.
Thanks for your work!
Philipp
--- a/MailTo 2009-10-16 13:49:30.000000000 +0200
+++ b/MailTo 2009-10-16 13:43:00.000000000 +0200
@@ -94,7 +94,7 @@
SubjectLine() {
case $1 in
- ??*) echo $@;;
+ ??*) echo $1;;
*) echo "Resource Group";;
esac
}
<cib snip>
<primitive id="ovz140gp-mail" class="ocf" provider="heartbeat"
type="MailTo">
<instance_attributes id="ovz140gp-mail-ia">
<attributes>
<nvpair id="MailTo-inst-email" name="email"
value="si...@tester"/>
<nvpair id="MailTo-inst-subject" name="subject" value="asdf 1234
5678"/>
</attributes>
</instance_attributes>
</primitive>
</cib snip>
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems