Bug 115975 - Event notification contains tags
Summary: Event notification contains tags
Status: RESOLVED FIXED
Alias: None
Product: kopete
Classification: Applications
Component: Notifications (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-09 07:20 UTC by Andre Srinivasan
Modified: 2011-04-11 04:39 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.