![]() Registered Member ![]()
|
I have been using KMail from kdepim 4.4.11.1 for quite a while and just upgraded to kdepim 4.8.3. I had been using dbusAddMessage provided by Kmail to move already created email messages from send-pr(1) to my outbox from a script. Now it seems dbusAddMessage is gone and I can't seem to find a replacement that works right.
I would set the environment variable MAIL_AGENT=/home/BSDKaffee/src/scripts/sendprbykmail.sh and send-pr would pipe the email through the script. Where sendprbykmail.sh is:
Since dbusAddMessage is gone, is there an equivalent qdbus command I could use? Thanks in advance for any advice. |
![]() Administrator ![]()
|
I think that's because KMail is no longer in control of handling messages directly, but instead Akonadi does so. That said, I'm not sure what kind of interface is exposed over D-Bus by Akonadi itself.
"Violence is the last refuge of the incompetent."
![]() Plasma FAQ maintainer - Plasma programming with Python |
![]() Administrator ![]()
|
If my guess is right, the objective of this is to send a email correct?
If so, you may wish to look at the various command line arguments to KMail, which should allow you to send a email that way (you may have to manually confirm it by clicking send however)
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Administrator ![]()
|
"Violence is the last refuge of the incompetent."
![]() Plasma FAQ maintainer - Plasma programming with Python |
![]() Registered Member ![]()
|
I want to send a prepared email with the headers already filled out and feed it to KMail. I have looked at the command line args for kmail and ksendemail and it appears that they can only read the message body from a file. I would still have to supply the subject, address, cc, etc. on the command line. That wouldn't work for me since send-pr creates an actual email that should just be able to be sent as is. The old dbus interface allowed for a whole email message to be queued in the outbox. For now I am using esmtp to mail my messages. Of course, the whole point of this was to avoid setting up another SMTP client. |
![]() Administrator ![]()
|
You may wish to file a feature request in regards to this.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: Baidu [Spider], Bing [Bot], Google [Bot]