Summary: | Escape shell special characters when passing %{foo} to command/pipe | ||
---|---|---|---|
Product: | [Unmaintained] kmail | Reporter: | Matthew Cline <matt> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED INTENTIONAL | ||
Severity: | normal | CC: | kollix |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Mandriva RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Matthew Cline
2009-10-25 02:24:42 UTC
As KDE already quotes the arguments, simply do not put quotes around %{Subject}. E.g. use: /usr/bin/foo %{Subject} Maybe I'm doing this wrong, but I have a filter which executes the command: /usr/bin/kdialog --msgbox "New mail: %{Subject}" & If I leave out the quotes, all I get is a message box saying "New". On Tuesday 27 October 2009 01:10:35 matt@nightrealms.com wrote: > Maybe I'm doing this wrong, but I have a filter which executes the command: > > /usr/bin/kdialog --msgbox "New mail: %{Subject}" & > > If I leave out the quotes, all I get is a message box saying "New". 2 comments: -) Try: /usr/bin/kdialog --msgbox "New mail: "%{Subject} & -) New mail notification can be done via kmail internally. Check: Settings -> Configure Notifications |