2005-05-29 [長年日記]

[Q3] 今日のTips

返信した時にマークを消す方法です。reply.templateやreply_all.templateの以下の行を書き換えます。

X-QMAIL-Macro: @ForEach(@Messages('{@Concat('//', @Account(), '/', @Folder())}', {@Id()}), @Replied(@True()))

これを以下のようにします。

X-QMAIL-Macro: @ForEach(@Messages('{@Concat('//', @Account(), '/', @Folder())}', {@Id()}), @Progn(@Replied(@True()), @Marked(@False())))

QMAIL2ではオプションでこの動作が選べたので、オプションで設定可能にしても良いかも。

本日のツッコミ(全5件) [ツッコミを入れる]
# Azol (2005-05-30 20:44)

I have noticed that the only rule that do not applies automatically is the Apply type, and the macro I try to use is @Deleted(@True()) (in Trash folder). It never applies until I go to Trash folder and execute Apply Rules manually. (The build is a latest Nightly Build for WM2003). I hope you get some idea why this may happen.
P.S. Sorry for possible double-posting, but I have lost my first message somewhere in the depths of the diary's engine...

# snak (2005-05-30 22:12)

Because rules are applied only to the messages just downloaded, it doesn't affect the messages in Trash.

# Azol (2005-05-31 04:38)

If I try to apply this rule manually I cannot do this from (!)every other folder with Apply All Rules command. This rule applies only (!) with executing Apply Rules from the Trash folder. I do not know why, but this rule I described in previous post ignores Apply All Rules command, while other rules work correctly.

# snak (2005-05-31 07:38)

When appyling rules to all folders, Trash and Junk are excluded because I thought no one might want to do it. Ok, I'll change to apply to these folders.

# Azol (2005-05-31 13:10)

Thank you very much - you made my day! And I thought that 'all folders' means ALL folders... ;-)