Address harvest recurse folders.
[claws.git] / src / addressbook.c
index a0a7501dabcee54f410ada27d021ad57c6ac63c2..00323e0c0d68956890ddf4a3f3d58ac723e1fbdd 100644 (file)
@@ -3967,18 +3967,22 @@ static void addressbook_import_pine_cb() {
 }
 
 /*
- * Gather addresses.
+ * Harvest addresses.
  * Enter: folderItem Folder to import.
+ *        sourceInd  Source indicator: FALSE - Folder, TRUE - Messages.
  *        msgList    List of message numbers, or NULL to process folder.
  */
-void addressbook_gather( FolderItem *folderItem, GList *msgList ) {
+void addressbook_harvest(
+       FolderItem *folderItem, gboolean sourceInd, GList *msgList )
+{
        AddressDataSource *ds = NULL;
        AdapterDSource *ads = NULL;
        AddressBookFile *abf = NULL;
        AdapterInterface *adapter;
        GtkCTreeNode *newNode;
 
-       abf = addrgather_dlg_execute( folderItem, _addressIndex_, msgList );
+       abf = addrgather_dlg_execute(
+               folderItem, _addressIndex_, sourceInd, msgList );
        if( abf ) {
                ds = addrindex_index_add_datasource(
                        _addressIndex_, ADDR_IF_BOOK, abf );