Is it possible to update filter rules in Thunderbird via custom extension? - thunderbird

Hi and thank you for your attention.
I want to create an extension for Mozilla Thunderbird that implement some sort of black list.
It is possible to create filter rules for mails and I want to add a button which create filter rule for selected mail. These rules are stored in msgFilterRules.dat file and I could manually edit it but only when Thunderbird is closed.
Is there any way to manipulate this file with some sort of API or WebExtensions?

Thanks to John Bieling from https://thunderbird.topicbox.com/groups/addons
currently we have no API to manipulate filters, but it has been requested and we will add that eventually. In the meantime, you could implement your own filter system, by listening for new messages and move them if they hit your own blocklist:
https://webextension-api.thunderbird.net/en/91/messages.html#onnewmailreceived
https://webextension-api.thunderbird.net/en/91/messages.html#move-messageids-destination

Related

How to disable editing and inline-editing for a single record in SuiteCRM/SugarCRM

I'm wondering what the best way to disable editing and inline-editing for a single record in SuiteCRM/SugarCRM. I am familiar with how to remove the edit button from the dropdown menu when looking at a detail view record (although it still allows the inline-edit capability).
I am also familiar with $dependencies and making a specific field disabled under certain conditions. But I am looking for something that allows me to programatically type in an ID of a record within a specific module, and automatically no user would be able to edit that record (no access to edit view, and no inline-editing).
How would I go about introducing that feature?
For SugarCRM use following code:
$dictionary['module']['fields']['yourfield_c']['inlineedit']=false;
OR use dependencies
For SuiteCRM use following code:
$dictionary['module']['fields']['yourfield_c']['inline_edit']=false;

Creating an outlook rule for mail OlderThan: [x] days?

I have outlook rules which categorise my email into different Categories.
I prefer to categorise rather than move to folders as somtimes certain emails can contain more than 1 category.
I would like to automatically delete email that is Categorised: News and and is older than 1 week
However, there does not seem to be a "Date Older than" rule in outlook so I cant create a rule to do this. You can get fairly close with a custom search folder but not quite (custom search can allow you to search by "Category" and "Date Received" but not "Older than" so the best I can do is set the search to Categorised (Strangely the prebuilt search folder options allow for an "Older than" selection through an Old Mail search but I also need to apply Category=News to my search and have to therefore use custom search.
In summary, is there an easy way for me to delete emails Categorised: News and Older Than: 1 week through a rule or custom search?
The best I can get is a search folder which finds emails Categorised: News and REceived:yesterday and then I just manually delete them?
Older than xxx date is not available as a filtering condition in standard Outlook rules. You'll need to write a VBA macro. You can base it on information in this post: Outlook checks e-mails only in specific time frame
Alternatively, you can use a 3rd party rules Outlook add-in to do this directly. Check this product: http://www.pergenex.com/auto-mate/
In case using an alternative software application is an viable option for you: This rule is a standard feature in Mozilla Thunderbird.
This feature is not supported in Outlook. You can, as mentioned above, create a macro that moves the emails from one folder to another and then run that macro automatically when the user launches Outlook. For more details, check the link below:
https://www.youtube.com/watch?v=mFqUUlNxQaA

Detect times and dates in Thunderbird mail

is there a Thunderbird add-on that would find and parse mails like the following and give the user the ability to quickly add the given time and date to the calendar?
Dear Foo,
I suggest we meet _tomorrow at 10am_.
The idea here would be to transform tomorrow at 10am to a clickable link that would result in the creation of a new event in the calendar.
This is more of a superuser.com question the way you are phrasing it. The built in way to do it is to use the context menu, then convert to, then event or task. It may not catch all kinds of dates, so "tomorrow at 10am" may not work.
There is also a toolbar button you can add from the customize menu that does the same thing but allows you to select the language to use for detection. Make sure you are using a multi-locale Lightning for that (e.g. one from addons.mozilla.org).
I've always been wanting to write an extension that allows you to select event details manually, but I never got around to finishing it.

Add new field in existing built in Application of iPhone

Hope you all are fine and are in your best of moods.
I herewith one doubt to ask you, kindly help me by giving its solution.
I need to add one custom field in existing built in Contact Application of iPhone.
I mean i need to allow user to set different icon or Logo for different contact.
so i need to add one field namely icon or Logo in existing application.
But I don't know how to do this, weather it is possible or not or is there any alternate solution for that or not???
kindly post your Answers.
Thanks in Advance.
You cannot add fields to the built in Address Book datastore. You could perhaps achieve your goals by one of two solutions:
make a copy of the data and add your data to that. You will hit sync problems
Use some property (perhaps ABPropertyID) of the AB information to key a local database referencing your icons.
I'm assuming what you actually want to do is add an icon to the address book app - there is certainly no way to do that.

create own plugin for Thunderbird or Zarafa?

I want to enhance my thunderbird (or zarafa), so that i can rightclick on a mail, and get a dialog, where i can fill in some information (like an article reference, an issue number or an invoice) and press "send", and this information alongside with the email and (logged-in) user-information will be sent to another webservice (i.e. a XML-RPC-call, but anything else will also do) which then handles the e-mail (for example attaching the content to the invoice, to the issue resp. the article)? [i need the thunderbird/zarafa part]
thanks for any help (even if it is an answer like "not possible")
This should be quite possible using an extension. First of all you should look into the basics of creating a Thunderbird extension or creating a Mozilla extension in general.
What you then want to do is create an overlay for the context menu, which adds a menuitem that opens your custom dialog. If you use the openDialog method you can pass additional arguments to the dialog, like the currently selected message header (gFolderDisplay.selectedMessage).
From there you can get mail headers, selectedMessage is of the type nsIMsgHdr. Getting the body of the message is a bit more complicated because you have to stream the body and then parse the mime body, but its still possible using the js mime emitter. There are some changes underway that might make this easier in the future, so please double check if there is not an easier way to stream the body.
With that information, you can easily use standard methods (i.e XMLHttpRequest) to send your data to a web service.