Fungovanie tejto stránky je z dôvodu údržby dočasne obmedzené. Ak článok nevyrieši váš problém a chcete položiť otázku, napíšte našej komunite podpory na Twitter @FirefoxSupport alebo Reddit /r/firefox.

Vyhľadajte odpoveď

Vyhnite sa podvodom s podporou. Nikdy vás nebudeme žiadať, aby ste zavolali alebo poslali SMS na telefónne číslo alebo zdieľali osobné informácie. Nahláste prosím podozrivú aktivitu použitím voľby “Nahlásiť zneužitie”.

Ďalšie informácie

message filter time

  • 4 odpovede
  • 1 má tento problém
  • 1 zobrazenie
  • Posledná odpoveď od 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.

Všetky odpovede (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