You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2012/01/07 18:20:02 UTC
DO NOT REPLY [Bug 118736] New: XMailMessage methods fail in BASIC
https://issues.apache.org/ooo/show_bug.cgi?id=118736
Bug #: 118736
Issue Type: DEFECT
Summary: XMailMessage methods fail in BASIC
Classification: Code
Product: api
Version: OOo 3.3
Platform: PC
OS/Version: Windows XP
Status: UNCONFIRMED
Severity: normal
Priority: P5
Component: definition
AssignedTo: tbo@openoffice.org
ReportedBy: donjaime@freenet.de
CC: ooo-issues@incubator.apache.org
With the fix to bug 111508 it is now possible using Basic to create an email
message with a body and an attachment and send it using the XMailServer
interface. (Sample code at
www.oooforum.org/forum/viewtopic.phtml?p=462063#462063)
For this to work the python-UNO bridge has to be installed, which should not be
necessary for Basic scripting.
More seriously, the mail message created by com.sun.star.mail.MailMessage does
not support the documented methods of the XMailMessage interface to add
recipients and attachments: if they are used an error is thrown when an attempt
is made to send the message.
--
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
DO NOT REPLY [Bug 118736] XMailMessage methods do not work
Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118736
DonJaime <do...@freenet.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #77128|0 |1
is obsolete| |
--- Comment #6 from DonJaime <do...@freenet.de> 2012-01-18 13:34:37 UTC ---
Created attachment 77145
--> https://issues.apache.org/ooo/attachment.cgi?id=77145
BASIC mailer with flexible test rig
In one module there is a sendMail macro, in the other a test macro and various
support functions. Varying all the options I can only find two remaining
problems:
1. If I choose a secure connection, I get an error that this Python doesn't
support SSL (independently of the capabilities of the server). (It may be
relevant that I'm using Windows XP)
2. There is no timeout. So if you choose the wrong port or the server is
unresponsive, OOo hangs.
--
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
DO NOT REPLY [Bug 118736] XMailMessage methods do not work
Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118736
--- Comment #7 from Ariel Constenla-Haile <ar...@apache.org> 2012-01-18 14:01:51 UTC ---
(In reply to comment #6)
> Created attachment 77145 [details]
> BASIC mailer with flexible test rig
>
> In one module there is a sendMail macro, in the other a test macro and various
> support functions. Varying all the options I can only find two remaining
> problems:
>
> 1. If I choose a secure connection, I get an error that this Python doesn't
> support SSL (independently of the capabilities of the server). (It may be
> relevant that I'm using Windows XP)
I'll have to investigate this.
> 2. There is no timeout. So if you choose the wrong port or the server is
> unresponsive, OOo hangs.
Can you please open a new issue for this one?
Assign it directly to me.
Thanks for testing.
--
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
DO NOT REPLY [Bug 118736] XMailMessage methods do not work
Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118736
--- Comment #8 from DonJaime <do...@freenet.de> 2012-01-18 16:14:54 UTC ---
> Can you please open a new issue for this one?
> Assign it directly to me.
Bug 118814. I don't think I can assign.
--
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
DO NOT REPLY [Bug 118736] XMailMessage methods fail in BASIC
Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118736
Ariel Constenla-Haile <ar...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |arielch@apache.org
--- Comment #1 from Ariel Constenla-Haile <ar...@apache.org> 2012-01-07 17:39:26 UTC ---
(In reply to comment #0)
> With the fix to bug 111508 it is now possible using Basic to create an email
> message with a body and an attachment and send it using the XMailServer
> interface. (Sample code at
> www.oooforum.org/forum/viewtopic.phtml?p=462063#462063)
>
> For this to work the python-UNO bridge has to be installed, which should not be
> necessary for Basic scripting.
the UNO component is implemented in Python, so you need Python and PyUNO (both
installed by default in vanilla OpenOffice.org).
> More seriously, the mail message created by com.sun.star.mail.MailMessage does
> not support the documented methods of the XMailMessage interface to add
> recipients and attachments: if they are used an error is thrown when an attempt
> is made to send the message.
can you attach a test document with a sample macro?
--
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
DO NOT REPLY [Bug 118736] XMailMessage methods do not work
Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118736
Ariel Constenla-Haile <ar...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|XMailMessage methods fail |XMailMessage methods do not
|in BASIC |work
--
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
DO NOT REPLY [Bug 118736] XMailMessage methods fail in BASIC
Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118736
Ariel Constenla-Haile <ar...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |STARTED
Platform|PC |All
Version|OOo 3.3 |current
AssignedTo|tbo@openoffice.org |arielch@apache.org
Ever Confirmed|0 |1
OS/Version|Windows XP |All
--
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
DO NOT REPLY [Bug 118736] XMailMessage methods do not work
Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118736
Ariel Constenla-Haile <ar...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|definition |code
AssignedTo|arielch@apache.org |tm@openoffice.org
Product|api |framework
--
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
DO NOT REPLY [Bug 118736] XMailMessage methods do not work
Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118736
--- Comment #3 from Ariel Constenla-Haile <ar...@apache.org> 2012-01-16 19:05:21 UTC ---
Created attachment 77138
--> https://issues.apache.org/ooo/attachment.cgi?id=77138
mailmerge.py modified version
--
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
DO NOT REPLY [Bug 118736] XMailMessage methods do not work
Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118736
Ariel Constenla-Haile <ar...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ACCEPTED |RESOLVED
Resolution| |FIXED
--
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
DO NOT REPLY [Bug 118736] XMailMessage methods fail in BASIC
Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118736
--- Comment #2 from DonJaime <do...@freenet.de> 2012-01-13 10:48:07 UTC ---
Created attachment 77128
--> https://issues.apache.org/ooo/attachment.cgi?id=77128
Demo macro: choose your error
Tests the four add...() methods. Errors on send with all but addBccRecipient()
and addAttachment() when there was no existing attachment. But addAttachment()
doesn't add the attachment.
--
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
DO NOT REPLY [Bug 118736] XMailMessage methods do not work
Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118736
Ariel Constenla-Haile <ar...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|tm@openoffice.org |arielch@apache.org
--
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
DO NOT REPLY [Bug 118736] XMailMessage methods do not work
Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118736
--- Comment #4 from Ariel Constenla-Haile <ar...@apache.org> 2012-01-16 19:10:40 UTC ---
@DonJaime: please try the attached version of mailmerge.py
All methods should work now:
* addRecipient
* addCcRecipient
* addBccRecipient
* getRecipients
* getCcRecipients
* getBccRecipients
* addAttachment
* getAttachments
Setting the writable properties
* ReplyToAddress
* Subject
* Body
leads to a deadlock (at least in Linux).
Your code may need some changes.
I'll try to make a AOO Basic demo, when I have time left.
--
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
DO NOT REPLY [Bug 118736] XMailMessage methods do not work
Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118736
--- Comment #5 from Ariel Constenla-Haile <ar...@apache.org> 2012-01-16 19:52:28 UTC ---
Fixed in revision 1232130
--
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.