can I change default sending account via DBUS ?

Daniel Vrátil dvratil at kde.org
Fri Jan 19 16:17:46 GMT 2018


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.

Daniel

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 ?


-- 
Daniel Vrátil
www.dvratil.cz | dvratil at kde.org
IRC: dvratil on Freenode (#kde, #kontact, #akonadi, #fedora-kde)

GPG Key: 0x4D69557AECB13683
Fingerprint: 0ABD FA55 A4E6 BEA9 9A83 EA97 4D69 557A ECB1 3683
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20180119/0a89c431/attachment.sig>


More information about the kde-pim mailing list