[pmmail-list] Extracting addresses from mails to text-file

Dave Saville pmmail-list@blueprintsoftwareworks.com
Sat, 13 Nov 2004 17:25:51 +0000 (GMT)


On Sat, 13 Nov 2004 12:01:45 -0500, Jeffrey Race wrote:

>On Sat, 13 Nov 2004 12:13:40 +0300, shiz0rat@real.xakep.ru wrote:
>
>>How to do this? I have folder "Outbox/Sent" with sended mails and I want store 
>all addresses from field "To:" in Address Book or, much better, in text-file.

========cut=======
/* find To:s */

do while lines()
  stuff = linein()
  if pos("To: ", stuff) = 1 then say stuff
end
=======cut=======

Save the above as findtos.cmd

In relevant directory

type *.msg | <path to findtos.cmd>/findtos.cmd > textfile

HTH

-- 
Regards

Dave Saville