BB Unix Network Monitor - Message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: {bb} Acknowledgment of Alerts



Forgive me if I have not followed all of the email series regarding this topic, but I have found that at most of the times we like to be able to acknowledge page messages instead of emails and thus found that this part of BB server can be improved --- I do write this email to solicit your opinions and comments:

First of all, BB server (version 1.9e) does provide a way for us to send certain messages to pager devices, but it does not generate a right subject for bb-mailack.sh to parse. Of course we can customize bb-mailack.sh to solve this problem, but it will require too much change. In order to solve this problem generally, I think we need to improve the source code bbpage.c. I have therefore modified it as shown below and it has been working very well, at least for our Motorola i830 cell phones.

Secondly, you may have already noticed, by default, bb-mailack.sh requires the string "delay=xxx" to be specified in the subject field of a replied message. This is not only inconvenient for email replying (since the cursor always starts to show at the beginning of the reply message body, not in the subject, after you click the reply button (in Outlook at least)), but impossible for our Motorola i830 cell phone to accomplish (I think most of two-way text devices have the same issue). I therefore customized bb-mailack.sh to parse the message body to solve this problem (also see below for the change I have done), which has been also working very well for us.

Have you ever met the same problem? Are there already solutions for these? My apology if I missed any of them.

Thanks,

-Dennis

================= bbpage.c customization ======================

What:

Move the rand value, bb host name and bb numeric number to the subject and adding the message information to the page body ---

# diff -c bbpage.c bbpage.c.original
*** bbpage.c    Thu Apr 14 16:53:33 2005
--- bbpage.c.original   Fri Jan  2 15:08:47 2004
***************
*** 3226,3233 ****
                        fprintf(stderr,"<%s> is an e-page recipient\n",rcptentry);
                        fflush(stderr);
  #endif
!                       sprintf(mailsubject,"!BB%s! %s - %s",randvalsubjtag,bbhostsvc,bbnumeric);
!                       strcpy(bbalpha,msg);
                        save_notification = send_mail(bbalpha,mailsubject,rcptentry);
                }
                else if( match(rcptentry,".*@.*",REG_FULL) == 1 ) {
--- 3226,3233 ----
                        fprintf(stderr,"<%s> is an e-page recipient\n",rcptentry);
                        fflush(stderr);
  #endif
!                       sprintf(bbalpha,"!BB%s! %s - %s",randvalsubjtag,bbhostsvc,bbnumeric);
!                       strcpy(mailsubject,"BB");
                        save_notification = send_mail(bbalpha,mailsubject,rcptentry);
                }
                else if( match(rcptentry,".*@.*",REG_FULL) == 1 ) {


Why:

1.	The format of the subject is required by bb-mailack.sh script.
2.	We need message information included in a page in order to know why we have received a page for some bb services such as a log monitoring service.
3.	I have not been able to find any other convenient ways to solve these issues without changing the c code.



================= bb-mailack.sh customization ==================

What:

Look for "delay=..." in reply mail body instead of in reply mail subject ---

# diff -c bb-mailack.sh bb-mailack.sh.original
*** bb-mailack.sh       Mon Apr 18 12:44:36 2005
--- bb-mailack.sh.original      Fri Jan  2 15:08:40 2004
***************
*** 120,126 ****
  
                if test "$NUMBER"
                then
!                       DELAYVAL=`$CAT $FILE | $GREP -i "DELAY" | $SED 's/^[ ]*[Dd][Ee][Ll][][Aa][Yy]=\([0-9]*\)[ ]*$/\1/' 2>/dev/null`
                        if [ "$DELAYVAL" != "" ]
                        then
                                DELAY="$DELAYVAL"
--- 120,126 ----
  
                if test "$NUMBER"
                then
!                       DELAYVAL=`$CAT $FILESUBJ | $GREP -i "DELAY" | $SED 's/^.*[Dd][Ee][Ll][][Aa][Yy]=\([0-9]*\).*$/\1/' 2>/dev/null`
                        if [ "$DELAYVAL" != "" ]
                        then
                                DELAY="$DELAYVAL"


Why:

We may not reply a page message with a reply string appended in the message subject, so this script will fail to find the string if it looks for the string in the body of the replied message.

===============================================





-----Original Message-----
From: owner-bb@bb4.com [mailto:owner-bb@bb4.com] On Behalf Of gilles.paquet@accenture.com
Sent: Wednesday, April 20, 2005 10:03 AM
To: bb@bb4.com
Subject: RE: {bb} Acknowledgment of Alerts


Well it seems helpfull. You find the solution ;-)

GilleS.

-----Original Message-----
From: owner-bb@bb4.com [mailto:owner-bb@bb4.com] On Behalf Of Doctor Khumalo
Sent: mercredi 20 avril 2005 16:42
To: bb@bb4.com
Subject: RE: {bb} Acknowledgment of Alerts


I found it.  The icons were greyed out and I couldn't see it.

Thanks for the sarcastic response. Very helpful.


>From: "Jasper Filon" <jasper.filon@ritstele.com>
>Reply-To: bb@bb4.com
>To: <bb@bb4.com>
>Subject: RE: {bb} Acknowledgment of Alerts
>Date: Wed, 20 Apr 2005 16:06:27 +0200
>
>simple question:
>did you actually read the documentation?
>
>-----Original Message-----
>From: owner-bb@bb4.com [mailto:owner-bb@bb4.com]On Behalf Of Doctor
>Khumalo
>Sent: woensdag 20 april 2005 15:54
>To: bb@bb4.com
>Subject: Re: {bb} Acknowledgment of Alerts
>
>
> >In BB you can acknowledge alerts via the web-interface
>
>
>How?
>
>
>
> >install the bb-mailack.sh (think that is the name) then you can
> >acknowledge alerts by replying to the alert e-mail.
>
>Thank you. I'll see if that works as well
>
>_________________________________________________________________
>On the road to retirement? Check out MSN Life Events for advice on how
>to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement
>
>--
>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
>To unsubscribe from this list, or to subscribe to the bb-digest list 
>send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or- 
>subscribe bb-digest in the BODY of the message.
>
>--
>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
>To unsubscribe from this list, or to subscribe to the bb-digest list 
>send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or- 
>subscribe bb-digest in the BODY of the message.

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or- subscribe bb-digest in the BODY of the message.


This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information.  If you have received it in error, please notify the sender immediately and delete the original.  Any other use of the email by you is prohibited.

-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or- subscribe bb-digest in the BODY of the message.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.


Home | Main Index | Thread Index