On Tue, 30 Dec 2014 at 20:17:05 +0100,Carsten wrote:
> short question: is there a macro I can use, to find out how many recipients
> a message I reply to has, or one that can tell me if a specific string is
> part of the message's From address?

This is a quick template that that I created to parse an address list.
It might be useful for you. As written, of course, it assumes it has
the handle "ParseAddressList".

============
%Rem=^

Usage:
   %QInclude(ParseAddressList,"<ListOfAddresses>")

Returns:
   %_FirstAddress: first address from the list
   %_RemainingAddressList: address list without the first

^%-
%-
%_FirstAddress=""%-
%_RemainingAddressList=""%-
%If:'%_1'<>''%-
:'%setpattregexp=#^((?(?=")"[^"]*")[^;,]*)[;,\s]*(.*?)[;,\s]*$#%-
%regexpblindmatch="%_1"%-
%_FirstAddress=+%subpatt="1"+%-
%_RemainingAddressList=+%Subpatt="2"+'%-
:''%-
============

The list of addresses you might feed it could be "%To,%CClist"
-- 
Robin

Using The Bat! v6.7.2
      Windows 7 6.1 Build 7601 Service Pack 1
      Popfile v1.1.3


________________________________________________
Current version is 6.6 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to