Hello everybody,
I made a thunderbird extension and It is interesting to share what I have developed.
This extension uses 2 civiCRM API "
crm_get_groups" and
"crm_get_group_contacts".
First, it will search all the groups and smart groups existing in the Data Base.
And then for each selected groups/smart groups, it displays members' email address in CC or BCC.
There are custom "
toolbarbutton" and "
menuitem"
You have to configure the URL to the php file which makes a request. ( Mailing > Change URL ) and add the code below in the end of the SoapServer.php file ( ../civicrm/CRM/Utils/ )
Edit: You can modify the "civicrm_mailing.js" file in the "preferences" directory too.//public function search_group_contacts_tb($key, $param){
public function search_group_contacts_tb($param){
//$this->verify($key);
$params = array( 'title' => $param );
//$return_properties = array('id', 'title' );
$return_properties = array('title' );
$myGroups =& crm_get_groups($params, $return_properties);
foreach($myGroups as $group) {
$return_properties = array( 'email' );
$sort = array("email" => "ASC");
$myContacts =& crm_get_group_contacts(&$group, $return_properties ,'Added',$sort, $offset = 0, $row_count = 25 );
foreach ($myContacts as $contact) {
$display .= $contact->email . ", ";
}
}
return $display;
}
The package are available here :
ZIP format or
XPI formatNote that the authentication is disabled and a "bug" is known.
Email addresses are duplicate or 3 times, it is not for all the email addresses but it is very strange.
I don't think it was in my JS code.
I joined a screen shot too

Any feedback and suggestions are welcome.