Ce site disposera de fonctionnalités limitées pendant que nous effectuons des opérations de maintenance en vue de vous proposer un meilleur service. Si un article ne règle pas votre problème et que vous souhaitez poser une question, notre communauté d’assistance est prête à vous répondre via @FirefoxSupport sur Twitter, et /r/firefox sur Reddit.

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

message filter time

  • 4 réponses
  • 1 a ce problème
  • 1 vue
  • Dernière réponse par 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.

Toutes les réponses (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