BB Unix Network Monitor - Message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
{bb} Fix: problem with mailing acks with more than one word
- To: bb@bb4.com
- Subject: {bb} Fix: problem with mailing acks with more than one word
- From: "Russ Starr" <russ.starr@gmail.com>
- Date: Fri, 24 Mar 2006 15:36:39 -0600
- Content-disposition: inline
- Content-transfer-encoding: 8bit
- Content-type: text/plain; charset=ISO-8859-1
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=puFIdXZ7hergv1oxQ6KiGvMEGqr2ZyEqhjnltJ+rooU3hnMJR8XTsLaQBrKgu4oerVwRj29zfCtIj8iqmAhspahlQgiYSeOYA+CdmHVkeHl3lgas2iYg5ma9pIf7MmY6vvGYrOaHXyNyxZYgqr4Z6HMbn162rAhUW5SZ4Ilmk8s=
- Reply-to: bb@bb4.com
- Sender: owner-bb@bb4.com
I noticed that when I replied to bb e-mail messages that my MSG only
displays the first word I entered. Looking through bin/bb-mailack.sh,
I see that $MESSAGE is found by using:
MESSAGE=`$CAT $FILESUBJ | $GREP -i "MSG=" | $SED
's/^.*[Mm][Ss][Gg]=\(.*\)$/\1/' | $SED 's/[ ]/+/g'
2>/dev/null`
This will switch any spaces with +'s. When you later pass the
$MESSAGE to bin/bb, it doesn't like the +'s and only keeps the first
word. For example:
./bb 192.168.1.1 "ack ack_event 1234567 30 Russ+is+fixing+it"
This will not work as intended and the message will only keep "Russ".
(as indicated by bbvar/acks/acklog) I played around with it a bit and
if you do this:
./bb 192.168.1.1 "ack ack_event 1234567 30 Russ is fixing it"
it will work just fine. To fix it, I simply took out the last sed
command on the MESSAGE= line above so that my line reads:
MESSAGE=`$CAT $FILESUBJ | $GREP -i "MSG=" | $SED
's/^.*[Mm][Ss][Gg]=\(.*\)$/\1/' 2>/dev/null`
My info:
BB 1.9i on OpenBSD 3.8
-Russ
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
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