CR/LF are not recognized for text/plain notifications
Description
CR/LF are not recognized for text/plain notifications. Not to mention the WebUI strips any CR/LF you add.
Here is the output of what the Notifd.log and my notification definition looks like. It worked without issues on 1.6.8
#
Notifd.log # 2010-08-16 14:04:51,377 DEBUG [Thread-578] JavaMailer: To: xxxx@xxxx.xxx From: xxxx@xxxx.xxx Subject is: RESOLVED: Notice #10: DNS down on mynode.mydomain (10.0.1.103) on node mynode.mydomain. File: no file attached
fixed; the CastorUtils API now allows specifying whether whitespace should be preserved or not, and the notifications factory has been changed to do so.
CR/LF are not recognized for text/plain notifications. Not to mention the WebUI strips any CR/LF you add.
Here is the output of what the Notifd.log and my notification definition looks like. It worked without issues on 1.6.8
#
Notifd.log
#
2010-08-16 14:04:51,377 DEBUG [Thread-578] JavaMailer:
To: xxxx@xxxx.xxx
From: xxxx@xxxx.xxx
Subject is: RESOLVED: Notice #10: DNS down on mynode.mydomain (10.0.1.103) on node mynode.mydomain.
File: no file attached
RESOLVED: The DNS service poll on interface mynode.mydomain (10.0.1.103) on node mynode.mydomain failed at Monday, August 16, 2010 1:54:19 PM MST. ------------ | Extra Info | ------------ Notification Time: Monday, August 16, 2010 1:54:19 PM MST Notification URL: http://10.0.6.7:8980/opennms/notification/detail.jsp?notice=10 Event URL: http://10.0.6.7:8980/opennms/event/detail.jsp?id=3063 Node Detail URL: http://10.0.6.7:8980/opennms/element/node.jsp?node=13 All Alarms URL: http://10.0.6.7:8980/opennms/alarm/list.htm?filter=node=13 All Outages URL: http://10.0.6.7:8980/opennms/outage/list.htm?filter=node=13 Possible Services Affected: DNS
#
Notifications.xml
#
<notification name="nodeLostService" status="on">
<uei>uei.opennms.org/nodes/nodeLostService</uei>
<rule>IPADDR != '0.0.0.0'</rule>
<destinationPath>Email-Admin</destinationPath>
<text-message>The %service% service poll on interface %interfaceresolve% (%interface%) 
on node %nodelabel% failed at %time%. 

------------
| Extra Info |
------------
Notification Time: %time%
Notification URL: http://10.0.6.7:8980/opennms/notification/detail.jsp?notice=%noticeid%
Event URL: http://10.0.6.7:8980/opennms/event/detail.jsp?id=%eventid%
Node Detail URL: http://10.0.6.7:8980/opennms/element/node.jsp?node=%nodeid%
All Alarms URL: http://10.0.6.7:8980/opennms/alarm/list.htm?filter=node=%nodeid%
All Outages URL: http://10.0.6.7:8980/opennms/outage/list.htm?filter=node=%nodeid%
Possible Services Affected: %service%</text-message>
<subject>Notice #%noticeid%: %service% down on %interfaceresolve% (%interface%) on node %nodelabel%.</subject>
<numeric-message>111-%noticeid%</numeric-message>
</notification>