| Summary: | Event notification contains tags | ||
|---|---|---|---|
| Product: | [Unmaintained] kopete | Reporter: | Andre Srinivasan <andre> |
| Component: | Notifications | Assignee: | Kopete Developers <kopete-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | wishlist | CC: | lamarque |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
In Kopete 4.6.2 you can set the pipe plugin to pass the messages in XML, then you can parse them. |
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.