|
fuhhyです。
現在選択しているメールのFromを元にしたメールアドレス検索
をマクロから実行したくて
loaddll "TKInfo.dll";
$from = dllfuncstr("CurrentHeader", "From");
$from = dllfuncstr("SetEmailOnly", $from);
$set = "(\"" + $from + "\", word, target=person), persontarget=all,
subfolder=1, inmail=3";
#tmp = dllfunc("SetFindPack", $set);
#tmp = dllfunc("DoGrep", "", "受信+送信済み");
endmacro;
この様に書いてみたのですが、上手く行きません。
何故か、複数宛先のメールだけにヒットします。
ちなみに
loaddll "TKInfo.dll";
$from = dllfuncstr("CurrentHeader", "From");
$from = dllfuncstr("SetEmailOnly", $from);
$set = "(\"" + $from + "\", word, target=from+to), subfolder=1, inmail=3";
#tmp = dllfunc("SetFindPack", $set);
#tmp = dllfunc("DoGrep", "", "受信+送信済み");
endmacro;
この様に書けば期待通りに動作します。
しかし、これでは通常の検索して一覧作成になるので動作が遅いです。
なので、最初に書いたようなやり方で正しく動作させたいです。
検索パックの書き方などは詳しく無いので、
間違いがあったらどなたかご指摘下さい。
環境:WindowsMe, 鶴亀メール2.96
|
|