--===============0003072667== Content-Type: multipart/signed; boundary="nextPart1598158.nXF6DQbRNM"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1598158.nXF6DQbRNM Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Gene, On Tuesday, 2011-01-18, gene heskett wrote: > On Tuesday, January 18, 2011 06:24:28 am Kevin Krammer did opine: > > On Monday, 2011-01-17, gene heskett wrote: > > > Greetings; > > >=20 > > > Is there a way I can mate an output from the above command line, > > > watching /var/spool/mail, to trigger a 'check mail' function in the > > > recent kmail? > > >=20 > > > This is a case of not needing the text output, but just the occurrence > > > of the output, used as an interrupt to kmail. This would synchronize > > > kmail with the activities of fetchmail and procmail/SA so I see > > > incoming mail several minutes quicker. > >=20 > > You could execute the checkMail action (check all accounts for new mail) > > via D-Bus: > >=20 > > qdbus org.kde.kmail /KMail org.kde.kmail.kmail.checkMail >=20 > Thank you very much, Kevin. >=20 > I grepped the dbus tree in /etc w/o finding such a qdbus example, but fou= nd > that it has the desired effect when issued from a terminal shell. D-Bus interfaces or rather their descriptions don't have to be installed, t= hey=20 can be queried at runtime. A GUI tool to do that is qdbusviewer, but qdbus can also do this: =2D when invoked wihout any parameter, it will list all D-Bus "names" (one= =20 process can have several names). =2D when invoked with such a name it will list all objects in this process. =2D when invoked with name and object path, it will list the available meth= ods=20 on said object. > I have a special mail spool for a niece whose emails, while personal fami= ly > stuff, look a lot like spam to SA, so I have a procmail rule that bypasses > SA. >=20 > I put this in ~/gene/bin/watchmail >=20 > Is there a way I can put this in the kmail startup so it runs as soon as I > run kmail? One way would be to have a "kmail" script in your path before the kmail bin= ary=20 and let it start the watchmail and then the actual kmail by full path. Another option would be to take the KMail.desktop file (which is used by th= e=20 laucher menu, etc), copy it to the respective user local path (see kde4-con= fig=20 =2D-path xdgdata-apps) and modify it so its "Exec" line runs this wrapper=20 script. Renaming the kmail binary and putting a wrapper script in its place would w= ork=20 for as well for a short time, but it would be overwritten the next time you= =20 update the kmail package. Cheers, Kevin =2D-=20 Kevin Krammer, KDE developer, xdg-utils developer KDE user support, developer mentoring --nextPart1598158.nXF6DQbRNM Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD4DBQBNNY+OnKMhG6pzZJIRAuRcAJjlnHDlFb1a2ncPKBTAwdeYloWiAJ9byZyK S4VrhhY+LRd1LinRBWS+hw== =Hguh -----END PGP SIGNATURE----- --nextPart1598158.nXF6DQbRNM-- --===============0003072667== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________ This message is from the kde mailing list. Account management: https://mail.kde.org/mailman/listinfo/kde. Archives: http://lists.kde.org/. More info: http://www.kde.org/faq.html. --===============0003072667==--