[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-pim
Subject: Re: can I change default sending account via DBUS ?
From: Martin Koller <kollix () aon ! at>
Date: 2018-01-19 17:05:02
Message-ID: 6809210.X6ApfMnY3z () lapi ! koller
[Download RAW message or body]
> On Wednesday, 10 January 2018 14:26:47 CET Martin Koller wrote:
> > I have the problem that when I'm connected to the company network via VPN, I
> > can only reach their SMTP server, and when not in VPN, I can no longer
> > reach that server.
> > So is there a DBUS interface for kmail (or which one is the right
> > component?) to change the default sending account so I can implement a
> > script which adapts this when I enable/disable VPN ?
>
>
>
On Freitag, 19. Jänner 2018 17:17:46 CET Daniel Vrátil wrote:
> Hi,
>
> assuming your identities are configured to use the default transport, you
> should be able to change the default transport via DBus:
>
> qdbus org.kde.kmail2 /TransportManager
> org.kde.pim.TransportManager.setDefaultTransport TRANSPORTID
>
> You can find IDs of your transports in ~/.config/mailtransports, it's the
> numerical ID in the [Transport XXXX] group header.
Thanks for the hint. However I get a dbus error, which is unclear to me:
qdbus org.kde.kmail2 /TransportManager \
org.kde.pim.TransportManager.setDefaultTransport 2103849609
Error: org.freedesktop.DBus.Error.UnknownMethod
No such method 'setDefaultTransport' in interface 'org.kde.pim.TransportManager' at \
object path '/TransportManager' (signature 'i')
However asking for the methods shows it:
qdbus org.kde.kmail2 /TransportManager
...
method void org.kde.pim.TransportManager.setDefaultTransport(int id)
puzzled ...
Does it work for you ?
--
Best regards/Schöne Grüße
Martin
A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?
() ascii ribbon campaign - against html e-mail
/\ - against proprietary attachments
Geschenkideen, Accessoires, Seifen, Kulinarisches: www.lillehus.at
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic