[tdf-discuss] Who does the maintenance Phyton Mailmerge script
I found that we can send Emails using Basic and the API using the Phyton Mailmerge stuff. There is a small problem to send Emails with non us-ascii characters. I solved the problem in the Python script, just wondering how do i pass this correction to the original script who is delivered by the native installion files I supose filling a issue ? Thanks, Fernand -- Unsubscribe instructions: E-mail to discuss+h...@documentfoundation.org Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette List archive: http://listarchives.documentfoundation.org/www/discuss/ All messages sent to this list will be publicly archived and cannot be deleted
Re: [tdf-discuss] Who does the maintenance Phyton Mailmerge script
On Mon, Jun 27, 2011 at 1:45 PM, Fernand Vanrie s...@pmgroup.be wrote: I found that we can send Emails using Basic and the API using the Phyton Mailmerge stuff. There is a small problem to send Emails with non us-ascii characters. I solved the problem in the Python script, just wondering how do i pass this correction to the original script who is delivered by the native installion files I supose filling a issue ? Is this the file you were working on? http://cgit.freedesktop.org/libreoffice/libs-core/tree/scripting/source/pyprov/mailmerge.py If so, then the way to go for this is: 1. create a patch (diff file) which highlights the changes you did to the Python code. If you can put your final version of mailmerge.py online, I can help you create the appropriate patch. 2. file a bug report at https://bugs.freedesktop.org/enter_bug.cgi?product=LibreOffice Select the the component 'LibreOffice'. 3. tell us here the URL of this bug report so that we can have a look. There are several encoding issues with the Python scripts, so it would be nice to find a way to fix them all in one go. Simos -- Unsubscribe instructions: E-mail to discuss+h...@documentfoundation.org Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette List archive: http://listarchives.documentfoundation.org/www/discuss/ All messages sent to this list will be publicly archived and cannot be deleted
Re: [tdf-discuss] Who does the maintenance Phyton Mailmerge script
Simos, The repair in Mailmerge.py is quite simple at line 154 we have textbody = textbody.encode('utf-8') where the textbody contains non-ascii characters like (éèà etc...) so just insert textbody = unicode( textbody, utf-8 ) before line 154 and everyting works fine ! i make also the bug report with the correct mailmerge.py attacheted Thanks Fernand On Mon, Jun 27, 2011 at 1:45 PM, Fernand Vanries...@pmgroup.be wrote: I found that we can send Emails using Basic and the API using the Phyton Mailmerge stuff. There is a small problem to send Emails with non us-ascii characters. I solved the problem in the Python script, just wondering how do i pass this correction to the original script who is delivered by the native installion files I supose filling a issue ? Is this the file you were working on? http://cgit.freedesktop.org/libreoffice/libs-core/tree/scripting/source/pyprov/mailmerge.py If so, then the way to go for this is: 1. create a patch (diff file) which highlights the changes you did to the Python code. If you can put your final version of mailmerge.py online, I can help you create the appropriate patch. 2. file a bug report at https://bugs.freedesktop.org/enter_bug.cgi?product=LibreOffice Select the the component 'LibreOffice'. 3. tell us here the URL of this bug report so that we can have a look. There are several encoding issues with the Python scripts, so it would be nice to find a way to fix them all in one go. Simos -- Unsubscribe instructions: E-mail to discuss+h...@documentfoundation.org Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette List archive: http://listarchives.documentfoundation.org/www/discuss/ All messages sent to this list will be publicly archived and cannot be deleted
Re: [tdf-discuss] Who does the maintenance Phyton Mailmerge script
Simos, the bug report https://bugs.freedesktop.org/show_bug.cgi?id=38713 Simos, The repair in Mailmerge.py is quite simple at line 154 we have textbody = textbody.encode('utf-8') where the textbody contains non-ascii characters like (éèà etc...) so just insert textbody = unicode( textbody, utf-8 ) before line 154 and everyting works fine ! i make also the bug report with the correct mailmerge.py attacheted Thanks Fernand On Mon, Jun 27, 2011 at 1:45 PM, Fernand Vanries...@pmgroup.be wrote: I found that we can send Emails using Basic and the API using the Phyton Mailmerge stuff. There is a small problem to send Emails with non us-ascii characters. I solved the problem in the Python script, just wondering how do i pass this correction to the original script who is delivered by the native installion files I supose filling a issue ? Is this the file you were working on? http://cgit.freedesktop.org/libreoffice/libs-core/tree/scripting/source/pyprov/mailmerge.py If so, then the way to go for this is: 1. create a patch (diff file) which highlights the changes you did to the Python code. If you can put your final version of mailmerge.py online, I can help you create the appropriate patch. 2. file a bug report at https://bugs.freedesktop.org/enter_bug.cgi?product=LibreOffice Select the the component 'LibreOffice'. 3. tell us here the URL of this bug report so that we can have a look. There are several encoding issues with the Python scripts, so it would be nice to find a way to fix them all in one go. Simos -- Unsubscribe instructions: E-mail to discuss+h...@documentfoundation.org Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette List archive: http://listarchives.documentfoundation.org/www/discuss/ All messages sent to this list will be publicly archived and cannot be deleted
Re: [tdf-discuss] Who does the maintenance Phyton Mailmerge script
On Mon, Jun 27, 2011 at 4:04 PM, Fernand Vanrie s...@pmgroup.be wrote: Simos, the bug report https://bugs.freedesktop.org/show_bug.cgi?id=38713 Simos, The repair in Mailmerge.py is quite simple at line 154 we have textbody = textbody.encode('utf-8') where the textbody contains non-ascii characters like (éèà etc...) so just insert textbody = unicode( textbody, utf-8 ) before line 154 and everyting works fine ! i make also the bug report with the correct mailmerge.py attacheted Thanks Fernand On Mon, Jun 27, 2011 at 1:45 PM, Fernand Vanries...@pmgroup.be wrote: I found that we can send Emails using Basic and the API using the Phyton Mailmerge stuff. There is a small problem to send Emails with non us-ascii characters. I solved the problem in the Python script, just wondering how do i pass this correction to the original script who is delivered by the native installion files I supose filling a issue ? Is this the file you were working on? http://cgit.freedesktop.org/libreoffice/libs-core/tree/scripting/source/pyprov/mailmerge.py If so, then the way to go for this is: 1. create a patch (diff file) which highlights the changes you did to the Python code. If you can put your final version of mailmerge.py online, I can help you create the appropriate patch. 2. file a bug report at https://bugs.freedesktop.org/enter_bug.cgi?product=LibreOffice Select the the component 'LibreOffice'. 3. tell us here the URL of this bug report so that we can have a look. There are several encoding issues with the Python scripts, so it would be nice to find a way to fix them all in one go. Simos I created a patch for https://bugs.freedesktop.org/show_bug.cgi?id=38713 The way to create a patch is quite simple, 1. Install 'git' for your operating system. Google for more or ask here. 2. Run git clone git://anongit.freedesktop.org/libreoffice/libs-core 3. Then, enter the libs-core/ directory, find your file and perform the change. 4. Finally, run git diff and it will create a diff that can be sent to bug reports. Simos -- Unsubscribe instructions: E-mail to discuss+h...@documentfoundation.org Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette List archive: http://listarchives.documentfoundation.org/www/discuss/ All messages sent to this list will be publicly archived and cannot be deleted