Bug 115975

Summary: Event notification contains tags
Product: [Applications] kopete Reporter: Andre Srinivasan <andre>
Component: NotificationsAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: lamarque
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Andre Srinivasan 2005-11-09 07:20:02 UTC
Version:           0.10.93 (0.11 Beta 2) (using KDE 3.4.3-1.0.fc3.kde, Fedora)
Compiler:          gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)
OS:                Linux (i686) release 2.6.12-1.1372_FC3_T4x

I configured invoking a program when an incoming message has been received.  Per the documentation, I expected that I could display the notification using osd_cat.  I found that the notification contains tags which I needed to strip with the following command:

awk '/[<]qt[>].*[<]br[>]/ { print gensub(/[<]qt[>](.*)[<]br[>].*/, "\\1", "g") }'

I am only interested in who sent me a message, not the message itself.  Perhaps having a formatting string (e.g. %w) that expand into who sent the message a formatting string (e.g. %m) that expands into the message.  

-andre.
Comment 1 Lamarque V. Souza 2011-04-11 04:39:35 UTC
In Kopete 4.6.2 you can set the pipe plugin to pass the messages in XML, then you can parse them.