[kde-de] KMail und DCOP

Sven Niese sven at denkdochmal.de
Mi Mär 28 17:11:35 CEST 2007


Hallo Peter,

Peter Mack schrieb:
> ich versuche mal wieder verzweifel per DCOP eine E-Mail zu
> verschicken. Dazu verwende ich folgenden Aufruf:
> dcop kmail MailTransportServiceIface "sendMessage(QString
> from,QString to,QString cc,QString bcc,QString subject,QString
> body,KURL::List attachments)" "from" "to" "" "" "Test" "Das ist ein
> Test" '[' "/tmp/test.pdf" ']'

Interessante Funktion, hab's mal ausprobiert - bei mir funktioniert's 
auch mit Anhang:
Gentoo Linux, KMail 1.9.6, KDE 3.5.6

> Das File /tmp/test.pdf ist natürlich "world readable".

> Es wird auch eine E-Mail verschickt, doch fehlt das Attachment.
> Eine Fehlermeldung sehe ich auch nicht.

Lasse mal auf einer Konsole 
  tail -fn 0 ~/.xsession-errors
laufen und sende auf einer anderen den dcop-Befehl ab. Bei mir kommt da 
nur folgendes:

kmail: WARNING: KMMessagePart::setCharset(): trying to set a charset for 
a non-textual mimetype.
kmail: Fix this caller:
kmail: ============================================
kmail:
kmail: ============================================
kmail: WARNING: KMMessagePart::setCharset(): trying to set a charset for 
a non-textual mimetype.
kmail: Fix this caller:
kmail: ============================================
kmail:
kmail: ============================================
true

Vielleicht findest du dort einen Hinweis oder aber das Update auf KDE 
3.5.6 behebt das Problem.

Wenn KMail die Datei nicht findet, kommt (bei mir) übrigens eine 
entsprechende Fehlermeldung.


Gruß,

Sven