The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: xAP Jabber



--------------080307030805030605080002
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit


using <BR> should do the trick.
(Jabber messages are pretty much HTML. The non-html message part is
formed from the html part so <BR> becomes a linefeed)
The display message method should work too but I think a bugette is
stopping the line feeds going through.

hth

James

Martyn Wendon wrote:
>
> Hello,
>
> Using xAP Jabber, how can I formulate a message to encorporate line
> breaks?
>
> e.g.
>
> xap-header
> {
>     v=12
>     hop=1
>     uid=FF456200
>     class=messenger.cmd
>     source=mi4.floor.AHSHASERVER
> }
>
> message.send
> {
>     to=somechimp@xxxxxxx <mailto:to=somechimp@xxxxxxx>
>     body=Environment: <Info> Garage Temperature: 17.81 deg C.
RackTop
> Temperature: 30.63 deg C. RackBottom Temperature: 28.34 deg C. Outside
> Temperature: 17.02 deg C.
> }
>
>
> I want the resulting IM message to look like:
>
> Environment: <Info>
> Garage Temperature: 17.81 deg C.
> RackTop Temperature: 30.63 deg C.
> RackBottom Temperature: 28.34 deg C.
> Outside Temperature: 17.02 deg C.
>
>
> I've tried various combinations of <br> \r \n \\r\\n
> <file://%5C%5Cr%5C%5Cn> \r\n etc etc but not got it working yet
- I'm
> sure I'm missing something simple???
>
>
>
> Thanks,
>
> Martyn
>


--------------080307030805030605080002
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit





<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">


<br>
using &lt;BR&gt; should do the trick. <br>
(Jabber messages are pretty much HTML. The non-html message part is
formed from the html part so &lt;BR&gt; becomes a
linefeed)<br>
The display message method should work too but I think a bugette is
stopping the line feeds going through.<br>
<br>
hth<br>
<br>
James<br>
<br>
Martyn Wendon wrote:
<blockquote cite="mid:000b01c8e04a$68c96550$1201a8c0@xxxxxxx"
type="cite">
<div id="ygrp-text">
<p></p>
<div><font face="Arial"
size="2">Hello,</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">Using xAP
Jabber, how can I
formulate a message to encorporate line breaks?</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">e.g.
</font></div>
<div>&nbsp;</div>
<div><font face="Arial"
size="2">xap-header<br>
{<br>
&nbsp;&nbsp;&nbsp; v=12<br>
&nbsp;&nbsp;&nbsp; hop=1<br>
&nbsp;&nbsp;&nbsp; uid=FF456200<br>
&nbsp;&nbsp;&nbsp; class=messenger.<wbr>cmd<br>
&nbsp;&nbsp;&nbsp;
source=mi4.floor.<wbr>AHSHASERVER<br>
}</font></div>
<font face="Arial" size="2">
<div><br>
message.send<br>
{<br>
&nbsp;&nbsp;&nbsp; <a moz-do-not-send="true"
href="mailto:to=somechimp@xxxxxxx";>to=somechimp@<wbr>somejabber.<wbr>server</a><br>
&nbsp;&nbsp;&nbsp; body=Environment: &lt;Info&gt;
Garage Temperature: 17.81 deg C.
RackTop Temperature: 30.63 deg C. RackBottom Temperature: 28.34 deg C.
Outside Temperature: 17.02 deg C.<br>
}</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>I want the resulting IM message to look like:</div>
<div>&nbsp;</div>
<div>Environment: &lt;Info&gt;</div>
<div>Garage Temperature: 17.81 deg C.</div>
<div>RackTop Temperature: 30.63 deg C.</div>
<div>RackBottom Temperature: 28.34 deg C.</div>
<div>Outside Temperature: 17.02 deg C.</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>I've tried various combinations of &lt;br&gt; \r \n
<a
moz-do-not-send="true"
href="file://%5C%5Cr%5C%5Cn">\\r\\n</a>&nbsp;\r\n
etc etc&nbsp;but not got it working yet - I'm sure I'm missing
something
simple???</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Thanks,</div>
<div>&nbsp;</div>
<div>Martyn</div>
</font> </div>
<!--End group email --> </blockquote>
<br>

<span width="1" style="color:
white;"/>__._,_.___</span>

<!-- Start Recommendations -->
<!-- End Recommendations -->



<!-- **begin egp html banner** -->

<img src="http://geo.yahoo.com/serv?s=97476590/grpId=9674343/grpspId=1705007709/msgId=3989/stime=1215457548";
width="1" height="1"> <br>

<!-- **end egp html banner** -->


<!-- **begin egp html banner** -->

<br>
<div style="font-family: verdana; font-size: 77%; border-top: 1px
solid #666; padding: 5px 0;" >
Your email settings: Individual EmailTraditional <br>
<a href="http://groups.yahoo.com/group/xap_automation/join;_ylc=X3oDMTJmNThpYWkyBF9TAzk3NDc2NTkwBGdycElkAzk2NzQzNDMEZ3Jwc3BJZAMxNzA1MDA3NzA5BHNlYwNmdHIEc2xrA3N0bmdzBHN0aW1lAzEyMTU0NTc1NDg-";>Change
settings via the Web</a> (Yahoo! ID required) <br>
Change settings via email: <a href="mailto:xap_automation-digest@xxxxxxx?subject=Email
Delivery: Digest">Switch delivery to Daily Digest</a>  <a
href = "mailto:xap_automation-fullfeatured@xxxxxxx?subject=Change
Delivery Format: Fully Featured">Switch to Fully Featured</a>
<br>
<a href="http://groups.yahoo.com/group/xap_automation;_ylc=X3oDMTJkdjhva2xoBF9TAzk3NDc2NTkwBGdycElkAzk2NzQzNDMEZ3Jwc3BJZAMxNzA1MDA3NzA5BHNlYwNmdHIEc2xrA2hwZgRzdGltZQMxMjE1NDU3NTQ4";>
Visit Your Group
</a>
<a href="http://docs.yahoo.com/info/terms/";>
Yahoo! Groups Terms of Use
</a>
<a href="mailto:xap_automation-unsubscribe@xxxxxxx?subject=Unsubscribe";>
Unsubscribe
</a>
<br>
</div>
<br>

<!-- **end egp html banner** -->


<span  style="color: white;"/>__,_._,___</span>
</body>
</html>

--------------080307030805030605080002--


xAP_Automation Main Index | xAP_Automation Thread Index | xAP_Automation Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.