On 10/7/2006 10:17:38 PM, Ian Binnie wrote:
Thanks Ian,
>The macro is designed explicitly NOT to
>extract these addresses, the To: is used
>only as a filter.
>The addresses extracted are in the From:
>field
>
>Option 3 still outputs the From:
>address, but includes the matched value
>of the To: or Cc: address.
>
I believe that I could handle this part. I just
replaced the search string "From:" by the search string
"To:" In other words, I have followed the instructions that came with your macro.
>Another option may be to modify the
>following code (which is where the
>address matching happens) to output ALL
>addresses.
>
> // Search To: email address
> repeat(ALL)
> {
> reg_empty(28)
>Search_Block("[a-zA-Z0-9\_\-\.]+@[a-zA-Z
>0-9\_\-\.]+\.[a-zA-Z][a-zA-Z]+",#25,#26,
>REGEXP+MAX+ADVANCE+ERRBREAK)
>Reg_Copy_Block(28, CP-Chars_Matched, CP)
>// Copy e-mail address to T-Reg
>Buf_Switch(#28) // working buffer with
>"My e-mails" list
>if (Search(@(28),BEGIN|SIMPLE|NOERR) ) {
>Break } // Found
>Buf_Switch(#20) // Return to original
>Edit Buffer
> }
I have tried this suggestion and I believe that I am pretty close to success. Specifically, I highlighted your Search_Block(...)command, pressed Ctr-C, back to my e-mail file, ESC, Command Mode, and pressed Ctr-V. Then I went back to my e-mail file. Now the result. Your command,
DID MOVE THE CURSOR TO THE NEXT E-MAIL ADDRES !
At present I just do not know how to put the pieces together.
Thanks again,
-peter.
|
|