Add 'new email' and 'unread emails' events

View: New views
6 Messages — Rating Filter:   Alert me  

Add 'new email' and 'unread emails' events

by Cristi-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I would like to request a new event in the core that gets triggered when a new email is received, either by protocols that also have email support or from 3rd party plugins that check email accounts (like YAMN).

The event data could contain the protocol or source account for the email, sender, subject and maybe some other information as well.

This way a plugin could be created that handles all email events with the possibility to add filters, rules, execute external commands and other nice things.

The event data could even specify a callback service for left and right popup clicks - kind of cumbersome but i couldn't think of anything else right now (e.g. the user will be able to login into his email account by left clicking the new email popup, because a callback service (or event) was provided by the protocol that received the email which the mail service provided plugin called).

There could also be another event that gets triggered when the number of unread emails changes - the event data could contain the protocol or source account, unread emails count, junk emails count and maybe some other data as well.

This will allow plugins to create a frame in the multi-frame clists and show the number of unread emails for each protocol for easy viewing :)

What do you think ?



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Miranda-Develop mailing list
Miranda-Develop@...
https://lists.sourceforge.net/lists/listinfo/miranda-develop

Re: Add 'new email' and 'unread emails' events

by Boris Krasnovskiy-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This a great idea to create such plugin.
 
Although I am not sure why would you need an event defined by core. Why not to just make every protocol register with this plugin and after that call some plugin service passing information you need as well as protocol handle returned to protocol during registration time. This would avoid special core event. At the same time during registration you could pass number of pointers to functions for tasks like openning mail in web browser.


From: miranda-develop-bounces@... [mailto:miranda-develop-bounces@...] On Behalf Of Cristi
Sent: Monday, June 16, 2008 1:47 PM
To: miranda-develop@...
Subject: [Miranda-Develop] Add 'new email' and 'unread emails' events

I would like to request a new event in the core that gets triggered when a new email is received, either by protocols that also have email support or from 3rd party plugins that check email accounts (like YAMN).

The event data could contain the protocol or source account for the email, sender, subject and maybe some other information as well.

This way a plugin could be created that handles all email events with the possibility to add filters, rules, execute external commands and other nice things.

The event data could even specify a callback service for left and right popup clicks - kind of cumbersome but i couldn't think of anything else right now (e.g. the user will be able to login into his email account by left clicking the new email popup, because a callback service (or event) was provided by the protocol that received the email which the mail service provided plugin called).

There could also be another event that gets triggered when the number of unread emails changes - the event data could contain the protocol or source account, unread emails count, junk emails count and maybe some other data as well.

This will allow plugins to create a frame in the multi-frame clists and show the number of unread emails for each protocol for easy viewing :)

What do you think ?



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Miranda-Develop mailing list
Miranda-Develop@...
https://lists.sourceforge.net/lists/listinfo/miranda-develop

Re: Add 'new email' and 'unread emails' events

by Bugzilla from mail@scottellis.com.au :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Your plugin could just create services that fire these events - then you get full control of the parameter format etc. This is afaik a standard way of creating the functionality you're after.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Miranda-Develop mailing list
Miranda-Develop@...
https://lists.sourceforge.net/lists/listinfo/miranda-develop

Re: Add 'new email' and 'unread emails' events

by Cristi-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Core may not have been the best word - by core i meant a feature supported by all protocol plugins that also handle emails - the events could be defined anywhere but i think the best place for them would be somewhere in the core include files.

I thought that an event would be the simplest of the approaches, that's why i suggested this - calling a service might be just as good though.

I didn't want to complicate things with registration and things like that but it's worth a thought if it gets protocol support - i just thought it would be quicker for protocol plugins to support an event or a service call than a full fledged plugin, with registrations and the like.

The idea with passing any number of pointers to functions is very nice, it would allow any number of actions and move the configuration options (like which action to take for left, right click) to the email service protocol.

In short the question could be summed up to "would you want protocol plugins that also handle email and 3rd party email plugins to send some kind of notification when a new email is received and also notify abuot the number of unread emails ?" :)

Now ... who's going to code the plugin ? :D


--- On Tue, 6/17/08, Boris Krasnovskiy <borkra@...> wrote:
From: Boris Krasnovskiy <borkra@...>
Subject: Re: [Miranda-Develop] Add 'new email' and 'unread emails' events
To: eblis102@..., miranda-develop@...
Date: Tuesday, June 17, 2008, 3:14 AM

This a great idea to create such plugin.
 
Although I am not sure why would you need an event defined by core. Why not to just make every protocol register with this plugin and after that call some plugin service passing information you need as well as protocol handle returned to protocol during registration time. This would avoid special core event. At the same time during registration you could pass number of pointers to functions for tasks like openning mail in web browser.


From: miranda-develop-bounces@... [mailto:miranda-develop-bounces@...] On Behalf Of Cristi
Sent: Monday, June 16, 2008 1:47 PM
To: miranda-develop@...
Subject: [Miranda-Develop] Add 'new email' and 'unread emails' events

I would like to request a new event in the core that gets triggered when a new email is received, either by protocols that also have email support or from 3rd party plugins that check email accounts (like YAMN).

The event data could contain the protocol or source account for the email, sender, subject and maybe some other information as well.

This way a plugin could be created that handles all email events with the possibility to add filters, rules, execute external commands and other nice things.

The event data could even specify a callback service for left and right popup clicks - kind of cumbersome but i couldn't think of anything else right now (e.g. the user will be able to login into his email account by left clicking the new email popup, because a callback service (or event) was provided by the protocol that received the email which the mail service provided plugin called).

There could also be another event that gets triggered when the number of unread emails changes - the event data could contain the protocol or source account, unread emails count, junk emails count and maybe some other data as well.

This will allow plugins to create a frame in the multi-frame clists and show the number of unread emails for each protocol for easy viewing :)

What do you think ?


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Miranda-Develop mailing list
Miranda-Develop@...
https://lists.sourceforge.net/lists/listinfo/miranda-develop


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Miranda-Develop mailing list
Miranda-Develop@...
https://lists.sourceforge.net/lists/listinfo/miranda-develop

Re: Add 'new email' and 'unread emails' events

by Boris Krasnovskiy-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 

In short the question could be summed up to "would you want protocol plugins that also handle email and 3rd party email plugins to send some kind of notification when a new email is received and also notify abuot the number of unread emails ?" :)

Most of protocols plugins already handle an e-mail to some extent already. And there is already an event to notify about number of unread email. It currently used only by clist_modern. You could reuse it or adding one more type notification to existing one will not be a big deal. 

Now ... who's going to code the plugin ? :D

 
I thought you were going to volunteer :D

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Miranda-Develop mailing list
Miranda-Develop@...
https://lists.sourceforge.net/lists/listinfo/miranda-develop

Re: Add 'new email' and 'unread emails' events

by Cristi-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

--- On Tue, 6/17/08, Boris Krasnovskiy <borkra@...> wrote:

From: Boris Krasnovskiy <borkra@...>
Subject: Re: [Miranda-Develop] Add 'new email' and 'unread emails' events
To: miranda-develop@...
Date: Tuesday, June 17, 2008, 3:19 PM

 

In short the question could be summed up to "would you want protocol plugins that also handle email and 3rd party email plugins to send some kind of notification when a new email is received and also notify abuot the number of unread emails ?" :)

Most of protocols plugins already handle an e-mail to some extent already. And there is already an event to notify about number of unread email. It currently used only by clist_modern. You could reuse it or adding one more type notification to existing one will not be a big deal. 

Now ... who's going to code the plugin ? :D

 
I thought you were going to volunteer :D

I'll try ... just to find a bit of free time :)



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Miranda-Develop mailing list
Miranda-Develop@...
https://lists.sourceforge.net/lists/listinfo/miranda-develop
LightInTheBox - Buy quality products at wholesale price!