mozilla

Compare Revisions

Questions and answers from the newsgroups 2006 11 24

Change Revisions

Revision 186634:

Revision 186634 by Dirtybear on

Revision 186635:

Revision 186635 by Clouserw on

Title:
Questions and answers from the newsgroups 2006 11 24
Questions and answers from the newsgroups 2006 11 24
Slug:
Extensions/Questions_and_answers_from_the_newsgroups_2006_11_24
Extensions/Questions_and_answers_from_the_newsgroups_2006_11_24
Content:

Revision 186634
Revision 186635
tt379      <dl>
380        <dd>
381          (Update 2007-05-05) Thunderbird2 gives us the nsiMsgFol
 >derNotificationService interface, which is probably the best way 
 >to do this. It would look something like (add your own try/catch)
 >:
382        </dd>
379    </div>383      </dl>
384      <pre class="eval">
385var threadBubbleListener = {
386    itemAdded: function(item){   
387        alert("Got mail.  Look at item's properties for more deta
 >ils.");
388    }
389}
390 
391function threadBubbleInit() {
392    var notificationService = Components.classes["@mozilla.org/me
 >ssenger/msgnotificationservice;1"].getService(Components.interfac
 >es.nsIMsgFolderNotificationService);
393    notificationService.addListener(threadBubbleListener); 
394}
395</pre>
380    <h3 name="UAQ">396      <h3 name="UAQ">
381      UAQ397        UAQ
382    </h3>398      </h3>
383    <p>399      <p>
384      (<a href="#top">↑ top</a>)400        (<a href="#top">↑ top</a>)
385    </p>401      </p>
386    <div class="note">402      <div class="note">
387      <h5 name="Any_info_on_.28Combine_and_Decode.29_with_Thunder403        <h5 name="Any_info_on_.28Combine_and_Decode.29_with_Thund
>bird_in_newsgroups.3F">>erbird_in_newsgroups.3F">
388        <a class="external" href="http://groups.google.com/group/404          <a class="external" href="http://groups.google.com/grou
>mozilla.dev.extensions/browse_thread/thread/5616ea4b9d431a18">Any>p/mozilla.dev.extensions/browse_thread/thread/5616ea4b9d431a18">A
> info on (Combine and Decode) with Thunderbird in newsgroups?</a>>ny info on (Combine and Decode) with Thunderbird in newsgroups?</
 >a>
389      </h5>405        </h5>
390    </div>406      </div>
391    <div class="note">407      <div class="note">
392      <h5 name="How_to_detect_server_socket_listeners.3F">408        <h5 name="How_to_detect_server_socket_listeners.3F">
393        <a class="external" href="http://groups.google.com/group/409          <a class="external" href="http://groups.google.com/grou
>mozilla.dev.extensions/browse_thread/thread/572e0439f75e59c7">How>p/mozilla.dev.extensions/browse_thread/thread/572e0439f75e59c7">H
> to detect server socket listeners?</a>>ow to detect server socket listeners?</a>
394      </h5>410        </h5>
395    </div>411      </div>
396    <div class="note">412      <div class="note">
397      <h5 name="What_type_of_case_testing_should_be_done_to_the_e413        <h5 name="What_type_of_case_testing_should_be_done_to_the
>xtension.3F">>_extension.3F">
398        <a class="external" href="http://groups.google.com/group/414          <a class="external" href="http://groups.google.com/grou
>mozilla.dev.extensions/browse_thread/thread/72b88b5fb108eb8e">Wha>p/mozilla.dev.extensions/browse_thread/thread/72b88b5fb108eb8e">W
>t type of case testing should be done to the extension?</a>>hat type of case testing should be done to the extension?</a>
399      </h5>415        </h5>
400    </div>416      </div>
401    <div class="note">417      <div class="note">
402      <h5 name="Is_there_issues_with_Restart_button.3F">418        <h5 name="Is_there_issues_with_Restart_button.3F">
403        <a class="external" href="http://groups.google.com/group/419          <a class="external" href="http://groups.google.com/grou
>mozilla.dev.extensions/browse_thread/thread/d7ecb87a31ee65ee">Is >p/mozilla.dev.extensions/browse_thread/thread/d7ecb87a31ee65ee">I
>there issues with Restart button?</a>>s there issues with Restart button?</a>
404      </h5>420        </h5>
405    </div>421      </div>
406    <div class="note">422      <div class="note">
407      <h5 name="How_to_change_cursor_position.3F">423        <h5 name="How_to_change_cursor_position.3F">
408        <a class="external" href="http://groups.google.com/group/424          <a class="external" href="http://groups.google.com/grou
>mozilla.dev.extensions/browse_thread/thread/006e1400bcfac65e">How>p/mozilla.dev.extensions/browse_thread/thread/006e1400bcfac65e">H
> to change cursor position?</a>>ow to change cursor position?</a>
409      </h5>425        </h5>
410    </div>426      </div>
411    <div class="note">427      <div class="note">
412      <h5 name="How_can_one_tell_if_the_Async_stream_listeners_ca428        <h5 name="How_can_one_tell_if_the_Async_stream_listeners_
>llback_trigger_is_.22ready.22_or_closed.22.3F_Can_there_be_more_t>callback_trigger_is_.22ready.22_or_closed.22.3F_Can_there_be_more
>han_one_registered_listener_on_a_single_Async_stream.3F">>_than_one_registered_listener_on_a_single_Async_stream.3F">
413        <a class="external" href="http://groups.google.com/group/429          <a class="external" href="http://groups.google.com/grou
>mozilla.dev.extensions/browse_thread/thread/0f55b2d9376cc678">How>p/mozilla.dev.extensions/browse_thread/thread/0f55b2d9376cc678">H
> can one tell if the Async stream listeners callback trigger is ">ow can one tell if the Async stream listeners callback trigger is
>ready" or closed"? Can there be more than one registered listener> "ready" or closed"? Can there be more than one registered listen
> on a single Async stream?</a>>er on a single Async stream?</a>
414      </h5>430        </h5>
415    </div>431      </div>
416    <div class="note">432      <div class="note">
417      <h5 name="How_to_open_a_second_tool_bar_when_a_user.2C_clic433        <h5 name="How_to_open_a_second_tool_bar_when_a_user.2C_cl
>k_in_a_button_in_a_first_tool_bar_.3F">>ick_in_a_button_in_a_first_tool_bar_.3F">
418        <a class="external" href="http://groups.google.com/group/434          <a class="external" href="http://groups.google.com/grou
>mozilla.dev.extensions/browse_thread/thread/5f87c2e8a2ea2b1c">How>p/mozilla.dev.extensions/browse_thread/thread/5f87c2e8a2ea2b1c">H
> to open a second tool bar when a user, click in a button in a fi>ow to open a second tool bar when a user, click in a button in a 
>rst tool bar&nbsp;?</a>>first tool bar&nbsp;?</a>
419      </h5>435        </h5>
420    </div>436      </div>
421    <div class="note">437      <div class="note">
422      <h5 name="What_is_the_complexity_of_lookup_by_tag_name.3F">438        <h5 name="What_is_the_complexity_of_lookup_by_tag_name.3F
 >">
423        <a class="external" href="http://groups.google.com/group/439          <a class="external" href="http://groups.google.com/grou
>mozilla.dev.extensions/browse_thread/thread/d94b787ec40caf58">Wha>p/mozilla.dev.extensions/browse_thread/thread/d94b787ec40caf58">W
>t is the complexity of lookup by tag name?</a>>hat is the complexity of lookup by tag name?</a>
424      </h5>440        </h5>
425    </div>441      </div>
426    <div class="note">442      <div class="note">
427      <h5 name="Anyone_has_experience_with_addProgressListener_to443        <h5 name="Anyone_has_experience_with_addProgressListener_
>_share.3F">>to_share.3F">
428        <a class="external" href="http://groups.google.com/group/444          <a class="external" href="http://groups.google.com/grou
>mozilla.dev.extensions/browse_thread/thread/84e65a8291eef6f8">Any>p/mozilla.dev.extensions/browse_thread/thread/84e65a8291eef6f8">A
>one has experience with addProgressListener to share?</a>>nyone has experience with addProgressListener to share?</a>
429      </h5>445        </h5>
430    </div>446      </div>
431    <div class="note">447      <div class="note">
432      <h5 name="How_to_move_a_huge_amount_of_messages.3F">448        <h5 name="How_to_move_a_huge_amount_of_messages.3F">
433        <a class="external" href="http://groups.google.com/group/449          <a class="external" href="http://groups.google.com/grou
>mozilla.dev.extensions/browse_thread/thread/afd1ac877a011a0f">How>p/mozilla.dev.extensions/browse_thread/thread/afd1ac877a011a0f">H
> to move a huge amount of messages?</a>>ow to move a huge amount of messages?</a>
434      </h5>450        </h5>
435    </div>451      </div>
436    <div class="note">452      <div class="note">
437      <h5 name="What_is_the_proper_way_to_use_document.getElement453        <h5 name="What_is_the_proper_way_to_use_document.getEleme
>ById.28_id_.29_in_a_toolbar_to_find_elements_in_sidebar.3F">>ntById.28_id_.29_in_a_toolbar_to_find_elements_in_sidebar.3F">
438        <a class="external" href="http://groups.google.com/group/454          <a class="external" href="http://groups.google.com/grou
>mozilla.dev.extensions/browse_thread/thread/0bec596d20dd0ff3">Wha>p/mozilla.dev.extensions/browse_thread/thread/0bec596d20dd0ff3">W
>t is the proper way to use document.getElementById( id ) in a too>hat is the proper way to use document.getElementById( id ) in a t
>lbar to find elements in sidebar?</a>>oolbar to find elements in sidebar?</a>
439      </h5>455        </h5>
440    </div>456      </div>
441    <div class="note">457      <div class="note">
442      <h5 name="How_to_paste_HTML_formatted_text_into_Thunderbird458        <h5 name="How_to_paste_HTML_formatted_text_into_Thunderbi
>.3F">>rd.3F">
443        <a class="external" href="http://groups.google.com/group/459          <a class="external" href="http://groups.google.com/grou
>mozilla.dev.extensions/browse_thread/thread/bcfe1b0748f73f37">How>p/mozilla.dev.extensions/browse_thread/thread/bcfe1b0748f73f37">H
> to paste HTML formatted text into Thunderbird?</a>>ow to paste HTML formatted text into Thunderbird?</a>
444      </h5>460        </h5>
445    </div>461      </div>
446    <div class="note">462      <div class="note">
447      <h5 name="How_to_hook_into_Firefox_to_translate_the_domain_463        <h5 name="How_to_hook_into_Firefox_to_translate_the_domai
>user_inputed.3F">>n_user_inputed.3F">
448        <a class="external" href="http://groups.google.com/group/464          <a class="external" href="http://groups.google.com/grou
>mozilla.dev.extensions/browse_thread/thread/b5bb0d7c54b0277c">How>p/mozilla.dev.extensions/browse_thread/thread/b5bb0d7c54b0277c">H
> to hook into Firefox to translate the domain user inputed?</a>>ow to hook into Firefox to translate the domain user inputed?</a>
449      </h5>465        </h5>
450    </div>466      </div>
451    <div class="note">467      <div class="note">
452      <h5 name="How_to_do_a_File.2FSave_Page_As.3F_How_to_grab_co468        <h5 name="How_to_do_a_File.2FSave_Page_As.3F_How_to_grab_
>ntent_and_create_a_text_file.3F">>content_and_create_a_text_file.3F">
453        <a class="external" href="http://groups.google.com/group/469          <a class="external" href="http://groups.google.com/grou
>mozilla.dev.extensions/browse_thread/thread/8462a2c7f1508d08">How>p/mozilla.dev.extensions/browse_thread/thread/8462a2c7f1508d08">H
> to do a File/Save Page As? How to grab content and create a text>ow to do a File/Save Page As? How to grab content and create a te
> file?</a>>xt file?</a>
454      </h5>470        </h5>
455    </div>471      </div>
456    <div class="note">472      <div class="note">
457      <h5 name="Is_there_any_listener_in_Thunderbird_that_notifie473        <h5 name="Is_there_any_listener_in_Thunderbird_that_notif
>d_of_outgoing_messages_and_get_the_chance_to_change_some_headers_>ied_of_outgoing_messages_and_get_the_chance_to_change_some_header
>on_the_way_out.3F">>s_on_the_way_out.3F">
458        <a class="external" href="http://groups.google.com/group/474          <a class="external" href="http://groups.google.com/grou
>mozilla.dev.extensions/browse_thread/thread/b27baa21d0ab4270">Is >p/mozilla.dev.extensions/browse_thread/thread/b27baa21d0ab4270">I
>there any listener in Thunderbird that notified of outgoing messa>s there any listener in Thunderbird that notified of outgoing mes
>ges and get the chance to change some headers on the way out?</a>>sages and get the chance to change some headers on the way out?</
 >a>
459      </h5>475        </h5>
476      </div>

Back to History