Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Users

small bug in MailTo

 

 

Linux-HA users RSS feed   Index | Next | Previous | View Threaded


wehrheim at dv

Oct 16, 2009, 4:57 AM

Post #1 of 3 (758 views)
Permalink
small bug in MailTo

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="sippi [at] teste"/>
<nvpair id="MailTo-inst-subject" name="subject" value="asdf 1234 5678"/>
</attributes>
</instance_attributes>
</primitive>


</cib snip>



_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


dejanmm at fastmail

Oct 16, 2009, 8:37 AM

Post #2 of 3 (714 views)
Permalink
Re: small bug in MailTo [In reply to]

Hi,

On Fri, Oct 16, 2009 at 01:57:50PM +0200, Philipp Wehrheim wrote:
> 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;;

The other way around :)

> *) echo "Resource Group";;
> esac
> }

Thanks. Committed. Strange that nobody ever noticed it.

Cheers,

Dejan

>
> <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="sippi [at] teste"/>
> <nvpair id="MailTo-inst-subject" name="subject" value="asdf 1234 5678"/>
> </attributes>
> </instance_attributes>
> </primitive>
>
>
> </cib snip>
>
>
>
> _______________________________________________
> Linux-HA mailing list
> Linux-HA [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


wehrheim at dv

Oct 16, 2009, 8:51 AM

Post #3 of 3 (715 views)
Permalink
Re: small bug in MailTo [In reply to]

Hey Dejan,

Dejan Muhamedagic wrote:
>
> The other way around :)
>

right :-) once in a while it make sense
to check before fire up a mail ...

cheers
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Linux-HA users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.