From kde-bindings Mon Nov 05 21:41:57 2007 From: Chris Gow Date: Mon, 05 Nov 2007 21:41:57 +0000 To: kde-bindings Subject: [Kde-bindings] sending an email using korundum and dcop Message-Id: <200711051641.57974.sniffy () rogers ! com> X-MARC-Message: https://marc.info/?l=kde-bindings&m=119429897324101 Hello: I am trying to use dcop to send an email message from within my ruby app. The dcop function I am trying to call is: kontact MailTransportServiceIface sendMessage My test app is below. Depending on what I pass as the last argument, I get either core dumps or stack overflows. I understand why I get the stack overflow error: The two sendMessage calls take the same number of parameters and only differ in the last parameter: The way the attachment is passed. In my case I don't have any attachments that I want to send so I am attempting to send nil. I have tried to make the dcop call two ways. The first is as below. The second is using DCOPRef.send(). If I use send() I get the kcrash handler showing up. require 'korundum' about = KDE::AboutData.new("test", "test", "0.1") KDE::CmdLineArgs.init(ARGV, about) kapp = KDE::Application.new() dcopref = KDE::DCOPRef.new("kontact", "MailTransportServiceIface") dcopref.sendMessage("frob@flug.com", "fakeaddress@does_not_exist_domain.com", nil, nil, "test dcop message", "body of message",[]) So, how do I get korundum to call the correct dcop function? - KDE 3.5.8 - ruby 1.8.6 - korundum 3.5.7 - kubuntu 7.10 thanks -- chris _______________________________________________ Kde-bindings mailing list Kde-bindings@kde.org https://mail.kde.org/mailman/listinfo/kde-bindings