|
サンプルマクロ作ってみました。
----------------------------------------------------------------------------
----
loaddll "tkinfo.dll";
$account = dllfuncstr("CurrentAccount");
$folder = "受信";
#total = 0;
while(1) {
#grepfolder = dllfunc("GetGrepFolderState", $account, $folder);
if( #grepfolder == 0
&& $folder != "ゴミ箱"
) {
#total = #total + dllfunc("GetFolderMailCount", $account, $folde
r, "unread");
}
$next = dllfuncstr("GetNextFolder", $account, $folder);
#x = strstr( $next, "\\");
if( #x < 0 ) {
break;
}
$folder = midstr( $next, #x + 1, 256 );
if( $folder == "" ) {
break;
}
if( $folder == "受信ログ"
|| $folder == "送信ログ" ) {
break;
}
}
message "未読メール数 = " + str(#total);
|
|