[kmail2] [Bug 361083] Creating custom actions for mail messages in KMail interface

2016-05-10 Thread Laurent Montel via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361083

Laurent Montel  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[kmail2] [Bug 361083] Creating custom actions for mail messages in KMail interface

2016-05-10 Thread Laurent Montel via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361083

Laurent Montel  changed:

   What|Removed |Added

   Version Fixed In||5.3

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[kmail2] [Bug 361083] Creating custom actions for mail messages in KMail interface

2016-03-29 Thread Laurent Montel via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361083

--- Comment #13 from Laurent Montel  ---
But this feature is still useful as we can send some specific info from email
to a external script.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[kmail2] [Bug 361083] Creating custom actions for mail messages in KMail interface

2016-03-29 Thread Laurent Montel via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361083

--- Comment #12 from Laurent Montel  ---
(In reply to Murz from comment #10)
> And we can add created filters to right-click menu of message, buttons on
> toolbar. So seems this feature request is already available, but will be
> good to improve it via templates, that will sent to stdin of "Execute
> command" options.

so it's another bug report it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[kmail2] [Bug 361083] Creating custom actions for mail messages in KMail interface

2016-03-29 Thread Laurent Montel via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361083

--- Comment #11 from Laurent Montel  ---
(In reply to Murz from comment #9)
> I look at the KMail and seems that we already can do this via Filters
> functional!
> 
> In filters interface there are available Filter Actions "Pipe Throuth" and
> "Execute command" options.
> 
> I place myscript.sh in "Execute command" - it gets all message source to
> stdin!
> 
> Problem is only with parsing message subject and text, because they are
> BASE64 encoded, because we have raw message source text, not parsed via
> kmail.

yep filter allows it indeed.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[kmail2] [Bug 361083] Creating custom actions for mail messages in KMail interface

2016-03-29 Thread Murz via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361083

--- Comment #10 from Murz  ---
And we can add created filters to right-click menu of message, buttons on
toolbar. So seems this feature request is already available, but will be good
to improve it via templates, that will sent to stdin of "Execute command"
options.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[kmail2] [Bug 361083] Creating custom actions for mail messages in KMail interface

2016-03-29 Thread Murz via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361083

--- Comment #9 from Murz  ---
I look at the KMail and seems that we already can do this via Filters
functional!

In filters interface there are available Filter Actions "Pipe Throuth" and
"Execute command" options.

I place myscript.sh in "Execute command" - it gets all message source to stdin!

Problem is only with parsing message subject and text, because they are BASE64
encoded, because we have raw message source text, not parsed via kmail.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[kmail2] [Bug 361083] Creating custom actions for mail messages in KMail interface

2016-03-29 Thread Murz via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361083

--- Comment #8 from Murz  ---
I plan to create custom cli script like crm_create_ticket.php with something:
http://mycrm.com/create_ticket.php');
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($post));
$out = curl_exec($curl);
echo $out;
curl_close($curl);
?>
Or maybe bash equivalent of this process. 
So if KMail provide way to exec scripts and send message values to stdin of
script, there will be wide way for customisation and automation of mail
processing.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[kmail2] [Bug 361083] Creating custom actions for mail messages in KMail interface

2016-03-29 Thread Laurent Montel via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361083

--- Comment #7 from Laurent Montel  ---
How you can create "Create ticket in CRM with mail message body and title" ? if
you don't have arguments ?

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[kmail2] [Bug 361083] Creating custom actions for mail messages in KMail interface

2016-03-28 Thread Murz via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361083

--- Comment #6 from Murz  ---
If you send params via command line - yes, better use like %t, but very often
message body contains multiple line and long text, so pipe this via external
program ("Process with External Programs" like in templates) will be better
way, because we can setup custom template and parse it in program side, for
example:
Command line: script.sh
Input template:
---
MESSAGE_TITLE: %FULLSUBJECT
MESSAGE_TEXT: %TEXT
CLIENT_NAME: %FROMNAME
---
What do you think about this?

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[kmail2] [Bug 361083] Creating custom actions for mail messages in KMail interface

2016-03-28 Thread Laurent Montel via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361083

--- Comment #5 from Laurent Montel  ---
When we have a script we need to parse argument
so "script.sh -b -t" etc.
We can't use directly %TEXT etc as we can't parse it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[kmail2] [Bug 361083] Creating custom actions for mail messages in KMail interface

2016-03-28 Thread Murz via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361083

--- Comment #4 from Murz  ---
Also Tempalte editor already have "Process with External Programs" functional,
maybe you can reuse it too.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[kmail2] [Bug 361083] Creating custom actions for mail messages in KMail interface

2016-03-28 Thread Murz via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361083

--- Comment #3 from Murz  ---
Thanks for quick reply! About replacements - maybe will be better to reuse
replacement tokens from Template editor (and maybe part of program code) in
Message Composer?
%FULLSUBJECT
%FROMADDR
%FROMNAME
%TEXT
etc.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[kmail2] [Bug 361083] Creating custom actions for mail messages in KMail interface

2016-03-28 Thread Laurent Montel via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361083

--- Comment #2 from Laurent Montel  ---
Git commit db7b7417f3cec5acec2f31d8cc7721437344792f by Montel Laurent.
Committed on 28/03/2016 at 12:00.
Pushed by mlaurent into branch 'master'.

Improve api to support future script support

M  +1-1CMakeLists.txt
M  +2-2messageviewer/src/viewerplugins/viewerplugininterface.cpp
M  +1-1messageviewer/src/viewerplugins/viewerplugininterface.h
M  +2-2messageviewer/src/viewerplugins/viewerplugintoolmanager.cpp

http://commits.kde.org/messagelib/db7b7417f3cec5acec2f31d8cc7721437344792f

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[kmail2] [Bug 361083] Creating custom actions for mail messages in KMail interface

2016-03-28 Thread Laurent Montel via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=361083

Laurent Montel  changed:

   What|Removed |Added

 CC||mon...@kde.org

--- Comment #1 from Laurent Montel  ---
We have plugin support for interface in 5.2 now (new features).
I can improve it to add support for external script.

Now we need to define how to specify that we need body, title etc.

So perhaps plugin provide script name and we can use %t for title (=> I replace
%t by title mail) %b (body) etc.
What do you think about it ?

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs