Issue Details (XML | Word | Printable)

Key: JDIC-374
Type: Bug Bug
Status: Resolved Resolved
Resolution: Won't Fix
Priority: Trivial Trivial
Assignee: armin_chen
Reporter: bflorat
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
jdic

Void messages with Thunderbird under Windows

Created: 27/Feb/06 05:50 AM   Updated: 19/Jun/06 12:13 AM   Resolved: 19/Jun/06 12:13 AM
Component/s: JDIC API (package org.jdesktop.jdic.desktop)
Affects Version/s: current
Fix Version/s: None

Time Tracking:
Not Specified

Environment:

Operating System: Windows XP
Platform: PC


Issuezilla Id: 374
Tags:
Participants: armin_chen, bflorat and dongdongyang


 Description  « Hide

Hi,

Scope:
JDIC: JDIC 20050930
OS: Windows XP SP2
Thunderbird: 1.5
JRE: Sun 1.5.0_06

Description:
When using mail(message) method with a predefined message, default mail app
appears correctly but mail window is void (no title, no body, to sender).

Note:
o That the same code works perfectly with Outlook Express under Windows

o That the same code works perfectly with Thunderbird under Linux

Here's my code:

************************
/* (non-Javadoc)

  • @see
    java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
    */
    public void actionPerformed(ActionEvent ae) {
    if (ae.getSource().equals(this.okp.getOKButton())){
    final Message message = new Message();
    message.setSubject(jtfDesc.getText());
    ArrayList alTo = new ArrayList();
    alTo.add(FEEDBACK_EMAIL);
    message.setToAddrs(alTo);
    String sBody = ""; //$NON-NLS-1$
    sBody += "Type: "+jcbType.getSelectedItem() +'\n'; //$NON-NLS-1$
    sBody = "From: "+jtfFrom.getText()'\n'; //$NON-NLS-1$
    sBody = "Subject: "+jtfDesc.getText()'\n'; //$NON-NLS-1$
    sBody = "Details: "+jtaDetail.getText()'\n'; //$NON-NLS-1$
    sBody = "Version: "+JAJUK_VERSION'\n'; //$NON-NLS-1$
    if (jcbType.getSelectedIndex() == 0)
    Unknown macro: { //bug sBody += Util.getAnonymizedSystemProperties().toString()+'n'; sBody += Util.getAnonymizedJajukProperties().toString()+'n'; Iterator it = Log.getSpool(); while (it.hasNext()){ sBody += it.next().toString() +'\n'; } }

    message.setBody(sBody);
    new Thread(){
    public void run()
    Unknown macro: { try{ Desktop.mail(message); } catch(Exception e){ Messages.showErrorMessage("136"); //$NON-NLS-1$ Log.error(e); } }

    }.start();
    dispose();
    }
    else if (ae.getSource().equals(this.okp.getCancelButton())){ dispose(); }
    }
    ************************

Thanks for the great work.



dongdongyang added a comment - 19/Jun/06 12:13 AM

Being it now belonging to mustang, advise to report it to mustang:
https://mustang.dev.java.net/
Thanks.