搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

message filter time

  • 4 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 LemonCat

more options

I need a message filter that moves messages based on the time of day it was received. It needs to ignore the calendar date. Example: Message 9/5/16 08:14 > Period_1_Folder Message 9/5/16 08:15 > Period_2_Folder Message 9/6/16 08:14 > Period_1_Folder Message 9/6/16 08:15 > Period_2_Folder

I am a teacher who receives over 150 student emails a day, several times each week. Filtering by email address is impractical, as students are added and dropped from my class every few weeks.

I've tried View-Source to look for a special Time tag, but can only find date, which is not what i need.

I need a message filter that moves messages based on the time of day it was received. It needs to ignore the calendar date. Example: Message 9/5/16 08:14 > Period_1_Folder Message 9/5/16 08:15 > Period_2_Folder Message 9/6/16 08:14 > Period_1_Folder Message 9/6/16 08:15 > Period_2_Folder I am a teacher who receives over 150 student emails a day, several times each week. Filtering by email address is impractical, as students are added and dropped from my class every few weeks. I've tried View-Source to look for a special Time tag, but can only find date, which is not what i need.

所有回复 (4)

more options

Can you write javascript? You probably need a more precise filtering action than is offered by the native filtering system.

more options

Yes, I can write Javascript, or rather I can edit an existing, similar script, fairly well.

more options

OK, the FiltaQuilla add-on lets you launch a javascript as its filtering action. You have a good chance of being able to do the date/time parsing in the javascript.

(I am way out of my depth already. :-( )

https://addons.mozilla.org/en-US/thunderbird/addon/filtaquilla/

more options

So, this is my draft pseudo-code for it. :/


// Define time string arrays Def Int varTime1 = ["08:22", "08:23", .. "09:14", "09:15"] . . Def Int varTime7 = ["13:56", "13:57", .. "14:46", "14:47"]

//check the email format for key parts of student emails if message(Reply-To).contains ("21_" OR "22_" OR "23_") AND ("@domain.net") then

//for each time string in the array ForEach varTime1 do //check if the date string in the email message header contains it if message(DateStr).contains varTime1 then //and if it does, move it to a specific folder Message.MoveTo(Inbox\StudentWork\Period1) End . . ForEach varTime7 do if message(DateStr).contains varTime7 then Message.MoveTo(Inbox\StudentWork\Period7) End

//if the email format matches a student email, but is out of hours, move the email message to a specific folder Message.MoveTo(Inbox\StudentWork)

//if the email format does not match a student email, do nothing end