Open Bug 59339 Opened 20 years ago Updated 6 years ago

Macro criteria (not actions) as one additional criteria format.


(MailNews Core :: Filters, enhancement, P3)



(Not tracked)


(Reporter: netdragon, Unassigned)


(Depends on 1 open bug)


There should be the ability to write javascript filters (as macros). These 
filters would act just like c++ filter code, but would be possible for users to 
enter through the Macro IDE - and reference in the filters box. These macros 
would called the registered function that does the events. These macros would be 
written in the IDE.
Added dependancy
Depends on: 59337
Added another dependancy (never done this before).
Depends on: 59335
fixing summary.

To clarify the difference between this bug and bug 59341, this is a bug for
having an entire filter (criteria AND actions) written in JavaScript
Ever confirmed: true
Summary: Javascript filters as macros → Javascript filters
Instead of both the action AND criteria portion of the filters. This bug 
is only for macros (javascript programmable and storable scripts for the end 
user) for the criteria section. It would send the action to the registered 
action for the macro. Basically, one would hit new filter - choose the criteria 
to be the macro, then choose the action to be whatever. When the script is run, 
it would call the registered action just like a normal criteria code would.
No longer depends on: 59337
Depends on: 59368
Summary: Javascript filters → Javascript filter criteria (not actions)
reassigning my filter bugs to gayatrib..
Assignee: alecf → gayatrib
I agreed with alecf that I should add individual bugs for each format. This 
format will consist of the following...

"if <Macro Filter> returns a match"

This filter will run a macro filter (javascript only for now) - that will pass 
all the matches to the registered Action for this filter.

For Macro Filters, there will be a drop down box that you can choose the macros. 
Please refer to bug 59335 for info on Macros.

This will give the user more functionality in filters. IE - they can create 
their own criteria this way.
Summary: Javascript filter criteria (not actions) → Macro criteria (not actions) as one additional criteria format.
QA Contact: esther → laurel
Blocks: 66425
reassigning to naving
Assignee: gayatrib → naving
I think that bug 59821(this), and bug 59341, and bug 59339 should be marked as
dupes of bug 11037.
mass re-assign.
Assignee: naving → sspitzer
Product: MailNews → Core
sorry for the spam.  making bugzilla reflect reality as I'm not working on these bugs.  filter on FOOBARCHEESE to remove these in bulk.
Assignee: sspitzer → nobody
Filter on "Nobody_NScomTLD_20080620"
QA Contact: laurel → filters
Product: Core → MailNews Core
Duplicate of this bug: 488016
how does this differ from bug 59335?
the logic escapes me at this early hour.
See Also: → 323773
You need to log in before you can comment on or make changes to this bug.