trinity-users@lists.pearsoncomputing.net

Message: previous - next
Month: October 2019

Re: [BULK] [trinity-users] Re: [BULK] [trinity-users] Re: [BULK] [trinity-users] more on my kmail 100% problemns

From: Gene Heskett <gheskett@...>
Date: Sat, 19 Oct 2019 15:26:18 -0400
On Saturday 19 October 2019 15:03:49 Gene Heskett wrote:

> On Saturday 19 October 2019 13:54:54 deloptes wrote:
> > Gene Heskett wrote:
> > > 3 hours later its behaving itself. Nothing from kmail is now
> > > anywhere near the top of an htop list. �cpu temps are down about
> > > 8C. I think I've fixed it!
> >
> > Gene, it is what I said before - you should never ever mess up with
> > the Maildir content, except via a single interface, be it imap, or
> > kmail. Let only one application work at a time.
> >
> > regards
>
> But no one has answered my question about how do I move a directory's
> contents en-mass to another directory by way of a dbus command. I need
> to move the contents of the spam directory by first deleting the
> contents of the spam-hold directory, and the move the contents of the
> spam directory into the spam-hold directory, a thing that is repeated
> each 24 hours by the script that drives sa-learn spam, and sa-learn
> ham over selected directory's.
>
> I had to pull teeth w/o novocain just to find out how to send kmail a
> go get mail command from my mailwatcher script, which uses inotifywait
> to see the closing of a mailfile in /var/spool/mail as its indicator
> that a new mail has arrived from a separate fetchmail->procmail
> process.
>
> If those rm's and mv's from outside of kmails knowledge, were
> converted to dbus commands to be executed by kmail, then nothing would
> disturb its database but kmails own actions.
>
> So, where do I find the real docs on how kmail responds to commands
> sent over dbus? That seems to be a secret, and it sucks dead toads
> thru soda straws. I just now rechecked the Handbook, and it has zero
> mention of dbus.  So please explain how, and I WILL fix my scripts.

Need washrag to remove egg on face.  At the time I wrote it there was a 
battle going on as some distro's use dcop, and some dbus. It appears 
that in debian, dcop won that particular war, so thats what I'm using, 
and its coded like this:

Method=dcop
if [[ ${Method} = 'dbus' ]]
then
        Cmd="/usr/bin/qdbus org.kde.kmail /KMail org.kde.kmail.kmail.checkMail"
fi
if [[ ${Method} = 'dcop' ]]
then
#or for dcop, use:
        Cmd="/opt/trinity/bin/dcop kmail KMailIface checkMail"
fi
[... skip some other alternative hpusekeeping options]
                       if test "${InMail}" = "gene"
                        then
                                $Cmd
[...]

So thats the extent of my dcop training. The manpage for dcop is so 
incomplete its worthless. Hardly a full screenfull of very generalized 
info.

What dcop can do for|to kmail should be in the kmail handbook, but there 
seems to not even be the word dcop.  Where can I access what will fix 
that lack?
>
> > --------------------------------------------------------------------
> >- To unsubscribe, e-mail:
> > trinity-users-unsubscribe@... For additional
> > commands, e-mail: trinity-users-help@... Read
> > list messages on the web archive:
> > http://trinity-users.pearsoncomputing.net/ Please remember not to
> > top-post:
> > http://trinity.pearsoncomputing.net/mailing_lists/#top-posting
>
> Cheers, Gene Heskett


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>