https://bugs.documentfoundation.org/show_bug.cgi?id=105288

--- Comment #3 from Alex Kempshall <mcmurchy1917-bugzi...@yahoo.co.uk> ---
In MailMerge there are two processes going on in parallel. 

1. 
Format messages and place them on a dispatcher queue. When all messages have
been placed on the dispatcher queue the queue is stopped.

2.
Take messages off the dispatcher queue and send and await reply from smtp
server.


If step 2 above takes a lot longer than step 1 the queue is closed prematurely.

The code that closes the queue is here in sw/source/uibase/dbui/dbmgr.cxx 
SwDBManager::MergeMailFiles

    if( xMailDispatcher.is() )
    {
        xMailDispatcher->stop();
        xMailDispatcher->shutdown();
    }

If this is  changed to 

    while(xMailDispatcher->messageCount());

    if( xMailDispatcher.is() )
    {
        xMailDispatcher->stop();
        xMailDispatcher->shutdown();
    }


Where xMailDispatcher->messageCount() is in
sw/source/uibase/dbui/maildispatcher.cxx and looks like

int MailDispatcher::messageCount()
{
    return messages_.size();
}

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to