XMail plugin www

Xlobby plugin development

Re: XMail plugin www

Postby dalanik on Tue Jun 10, 2008 1:18 pm

S Pittaway wrote:i am guessing you are writing your own xml file? because something is forgeting to replace the special xml chars (&, >, < etc)


Yes, It was easier at the time :-) I'll have a look...
dalanik
 
Posts: 885
Joined: Mon Apr 19, 2004 12:35 pm
Location: Prague, Czech Republic

Re: XMail plugin www

Postby dalanik on Tue Jun 10, 2008 8:56 pm

Can you try this, if it fixes invalid XML characters?

http://xlobby.lanik.org/XMail.dll

D.
dalanik
 
Posts: 885
Joined: Mon Apr 19, 2004 12:35 pm
Location: Prague, Czech Republic

Re: XMail plugin www

Postby S Pittaway on Wed Jun 11, 2008 8:19 am

cheers, i will give it a try later.
S Pittaway
 
Posts: 651
Joined: Wed Jan 25, 2006 11:08 am
Location: Manchester, England

Re: XMail plugin www

Postby S Pittaway on Wed Jun 11, 2008 3:19 pm

I gave it a quick try, but I now get a crash when i call XMail>GetMail.

Code: Select all
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at XMail.XMail.Clean(String TexStr)
   at XMail.XMail.GetMail()
   at XMail.XMail.Execute(String fullcommand)
   at xlobby2.Command.Run(Control control)
   at xlobby2.Setup.button56_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
xlobby2
    Assembly Version: 2.0.8150.5
    Win32 Version: 2.0.08150.05
    CodeBase: file:///C:/Program%20Files/xlobby/xlobby2.exe
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Interop.ActiveHomeScriptLib
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/xlobby/Interop.ActiveHomeScriptLib.DLL
----------------------------------------
XPluginSDK
    Assembly Version: 1.0.2817.26334
    Win32 Version: 1.0.2817.26334
    CodeBase: file:///C:/Program%20Files/xlobby/XPluginSDK.DLL
----------------------------------------
System.Management
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
Interop.X10
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/xlobby/Interop.X10.DLL
----------------------------------------
System.Runtime.Remoting
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
DShowPlayer
    Assembly Version: 0.0.0.0
    Win32 Version:
    CodeBase: file:///C:/Program%20Files/xlobby/DShowPlayer.DLL
----------------------------------------
msvcm80
    Assembly Version: 8.0.50727.1433
    Win32 Version: 8.00.50727.1433
    CodeBase: file:///C:/WINDOWS/WinSxS/x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.1433_x-ww_5cf844d2/msvcm80.dll
----------------------------------------
xlobbydvdcopy
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/xlobby/plugins/xlobbydvdcopy.dll
----------------------------------------
xusbuirt
    Assembly Version: 1.0.2988.30813
    Win32 Version: 1.0.2988.30813
    CodeBase: file:///C:/Program%20Files/xlobby/plugins/xusbuirt.dll
----------------------------------------
xDatabase
    Assembly Version: 1.0.3077.28542
    Win32 Version: 1.0.3077.28542
    CodeBase: file:///C:/Program%20Files/xlobby/plugins/xDataBase/xDatabase.dll
----------------------------------------
xDigiTv
    Assembly Version: 1.0.2902.16818
    Win32 Version: 1.0.2902.16818
    CodeBase: file:///C:/Program%20Files/xlobby/plugins/xDigiTv/xDigiTv.dll
----------------------------------------
Mail
    Assembly Version: 2.5.2352.26470
    Win32 Version: 2.5.2352.26470
    CodeBase: file:///C:/Program%20Files/xlobby/plugins/XMail/Mail.dll
----------------------------------------
XMail
    Assembly Version: 0.0.0.0
    Win32 Version: 0.0.0.0
    CodeBase: file:///C:/Program%20Files/xlobby/plugins/XMail/XMail.dll
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
xMono
    Assembly Version: 1.0.3028.28150
    Win32 Version: 1.0.3028.28150
    CodeBase: file:///C:/Program%20Files/xlobby/plugins/xMono/xMono.dll
----------------------------------------
xMusic
    Assembly Version: 1.0.3042.26920
    Win32 Version: 1.0.3042.26920
    CodeBase: file:///C:/Program%20Files/xlobby/plugins/xMusic/xMusic.dll
----------------------------------------
XRemote
    Assembly Version: 0.2.1966.29535
    Win32 Version: 0.2.1966.29535
    CodeBase: file:///C:/Program%20Files/xlobby/plugins/XRemote/XRemote.dll
----------------------------------------
texluygc
    Assembly Version: 0.2.1966.29535
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
bc_xbjhm
    Assembly Version: 0.2.1966.29535
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
xSleep
    Assembly Version: 1.0.2942.31190
    Win32 Version: 1.0.2942.31190
    CodeBase: file:///C:/Program%20Files/xlobby/plugins/xSleep/xSleep.dll
----------------------------------------
xTopPicks
    Assembly Version: 1.6.0.0
    Win32 Version: 1.6.0.0
    CodeBase: file:///C:/Program%20Files/xlobby/plugins/xTopPicks/xTopPicks.dll
----------------------------------------
XWeather
    Assembly Version: 1.0.3023.23285
    Win32 Version: 1.0.3023.23285
    CodeBase: file:///C:/Program%20Files/xlobby/plugins/xweather/XWeather.dll
----------------------------------------
Interop.Shell32
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/xlobby/Interop.Shell32.DLL
----------------------------------------
Mail
    Assembly Version: 2.5.2352.26470
    Win32 Version: 2.5.2352.26470
    CodeBase: file:///C:/Program%20Files/xlobby/Mail.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.



I end up with a empty xmail.xml file so i guess its poping on the file write.



Cheers, Sean.
S Pittaway
 
Posts: 651
Joined: Wed Jan 25, 2006 11:08 am
Location: Manchester, England

Re: XMail plugin www

Postby S Pittaway on Wed Jun 11, 2008 3:24 pm

:)

if you are using that function i posted try


Code: Select all
static public string XmlEncodeString(string XMLString)
{
  if (XMLString == null || XMLString == "" )
  {
    //its already safe
  }
  else
  {
      XMLString = XMLString.Replace("\001", ".");
      XMLString = XMLString.Replace("\002", ".");
      XMLString = XMLString.Replace("\002", ".");
      XMLString = XMLString.Replace("\003", ".");
      XMLString = XMLString.Replace("\004", ".");
      XMLString = XMLString.Replace("\005", ".");
      XMLString = XMLString.Replace("\006", ".");
      XMLString = XMLString.Replace("\007", ".");
      XMLString = XMLString.Replace("\008", ".");
      XMLString = XMLString.Replace("\009", ".");
      XMLString = XMLString.Replace("&", "&amp;");
      XMLString = XMLString.Replace("<", "&lt;");
      XMLString = XMLString.Replace(">", "&gt;");
  }
  return XMLString;
}//XmlEncodeString


I never let nulls into my plugin, so i don't bother checking for them :)
S Pittaway
 
Posts: 651
Joined: Wed Jan 25, 2006 11:08 am
Location: Manchester, England

Re: XMail plugin www

Postby dalanik on Thu Jun 12, 2008 7:01 am

Could be anything, I just edited it and compled w/o checking :-)

I already have similar function to which I added codes in your source. I'll have a look....

D.
dalanik
 
Posts: 885
Joined: Mon Apr 19, 2004 12:35 pm
Location: Prague, Czech Republic

Re: XMail plugin www

Postby smarty on Sun Dec 14, 2008 6:19 pm

Folks,
Is this plugin now working?

I just tried V.10b, and it appear to check my e-mail (confiremed by the log file), but when I re-start, the mail.xml database causes the system to crash. I am no sofware guy, so this could be the same issues as mentioned previously.

Thanks
smarty
 
Posts: 179
Joined: Thu Jul 27, 2006 12:04 am
Location: San Antonio, TX USA

Re: XMail plugin www

Postby smarty on Mon Jun 15, 2009 12:44 pm

Bump.... Dalanik are you still out there????
smarty
 
Posts: 179
Joined: Thu Jul 27, 2006 12:04 am
Location: San Antonio, TX USA

Re: XMail plugin www

Postby dalanik on Tue Jul 07, 2009 9:10 am

Hello,

I'm still here but have been busy with other things ;-) I will try to force myself to have a look at this one during summer.

D.
dalanik
 
Posts: 885
Joined: Mon Apr 19, 2004 12:35 pm
Location: Prague, Czech Republic

Previous