| Quote |
|---|
hare hare wrote: Well, i know all my phone numbers are in 'xxx-xxx-xxxx' format, but they arent exactly in the same placement within the message, nor have the same keyword in front of them. |
I've created small quick template, try to test it:
| Code |
|---|
%IF:"%_telFirsttime"="":"%-
%_telFirsttime(NIE)%-
%_text='%Text'%-
"%-
%SETPATTREGEXP="(?s)(\d{3}\-\d{3}\-\d{4})([^\d].*)"%-
%REGEXPBLINDMATCH(%_text)%-
%SUBPATT(1)
%_text="%SUBPATT(2)"%-
%IF:"%_text"<>"":"%QINCLUDE(tels)"%- |
Important - name (handle) of this template is 'tels' (if You want to change it remember about changing %QINCLUDE parameter).
Test this in some messages with telephone numbers (reply, type 'tels' and hit ctrl+space).
To use this template in filter create a filter (in read messages), with condition 'any message', action: export the message (choose a file path and name, will be created) with export format plain text and template
Mark option "Append to the existing file".
In tab "Options" of this filter mark options "...active" "...for manual refiltering", add hotkey (for example ctrl+shift+1). Mark some messages, press hotkey and...