mailwatcher is this script:
#!/bin/bash
# set -x
# this was a test, was /bin/sh above, but /bin/sh is a softlink to /bin/dash
# REQUIRES your distros inotify-tools package, assume kde/kmail in use
# but might be adaptable to other agents too
# requires a ~/log directory, so mkdir it before running it
# you will also need to either do the housekeeping of this file, or
# figure out how to make logrotate do it for you.
WatchDir=/var/spool/mail/
# Setup temporary log
Log=mail.log
# put it in my home dir like fetchmail and procmail
Mlog=~/log
# in case it doesn't exist, make it
touch ${Mlog}/${Log}
# the command to send over dbus/dcop to make kmail pull the mailfile
#in /var/spool/mail
# First set method
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
# Now, do forever
while :
do
sleep 1
if [ $(pidof -s kmail) ]
then
echo -n "Kmail is running " >>${Mlog}/${Log}
date -R >>${Mlog}/${Log}
sleep 1 # delay to give kmail a chance to settle in
# only start fetchmail once!
if [ $(pidof -s fetchmail) ]
then
sleep 1
echo -n "fetchmail already running " >>${Mlog}/${Log}
date -R >>${Mlog}/${Log}
else
echo -n "starting fetchmail at " >>${Mlog}/${Log}
/usr/local/bin/fetchmail --fetchmailrc /home/gene/.fetchmailrc >>${Mlog}/${Log} &
date -R >>${Mlog}/${Log}
fi
sleep 1 # delay to give kmail a chance to get its dcop/dbus sockets setup?
$cmd
while [ $(pidof -s kmail) ]
do
# I've found that stderr needs dumped to /dev/null, so
InMail=`/usr/bin/inotifywait -q -e close_write --format %f ${WatchDir}` # 2>&1 >/dev/null
# and here it sits until inotifywait exits because of an incoming mail
# and time later it will exit, setting $InMail to something, so
# recheck to make sure kmail is still about before sending the signal
# as dbus/dcop seems to get a tummy ache if there is no receiver
if test "${InMail}" = "gene"
then
$Cmd
# sleep 1
# log it
echo -n ${InMail} >>${Mlog}/${Log}
echo -n " @ " >>${Mlog}/${Log}
date -R >>${Mlog}/${Log}
elif test "${InMail}" = "gene-from_linda"
then
$Cmd
# sleep 1
# log it
echo -n ${InMail} >>${Mlog}/${Log}
echo -n " @ " >>${Mlog}/${Log}
date -R >>${Mlog}/${Log}
elif test "${InMail}" = "amanda"
then
$Cmd
# sleep 1
# log it
echo -n ${InMail} >>${Mlog}/${Log}
echo -n " @ " >>${Mlog}/${Log}
date -R >>${Mlog}/${Log}
fi
done
# we don't have a pidof kmail, log that its gone
echo -n "Kmails pid is missing - it has stopped ">>${Mlog}/${Log}
date -R >>${Mlog}/${Log}
# Now, kill fetchmail too, and this is ok to do
killall fetchmail
# get rid of a waiting inotifywait, but this is not inotifywait instance
# sensitive and may kill the one for cocoprint.
killall inotifywait
fi
# and should be back in the outer loop, waiting for a kmail PID
done
but... its Apparentely not getting the dbus msg to kmail. and to me its magic so what do I check next?
dbus is running:
root@coyote:/home/gene# ps -ea|grep dbus
696 ? 00:01:11 dbus-daemon
1768 ? 00:00:02 dbus-daemon
1975 ? 00:00:01 dbus-daemon
2955 pts/0 00:00:00 dbus-launch
2956 ? 00:00:00 dbus-daemon
13857 ? 00:00:00 dbus
13868 ? 00:00:00 dbus
thank you Steven, gene
no, it works fine with no reported errors.
And I just found kmail-1.9, hidden away in /opt, and it sees all my old mail!
So, rescue all my old scripts and see if I can get them started. Then I'll have a
real email agent again. If they will run :-/
Cheers Mike, Gene
As a normal user do "grep '^root:' /etc/passwd". Don't post the
result here. Does it end in /bin/bash or /usr/sbin/nologin
or something else?
Also if you haven't tried "sudo bash" please try that as it
is only the same as "sudo -i" if root's login shell is bash.
Which it is, /bin/bash.
Next?
Thanks Mike, Gene
>Please keep replies on list so they're available for others to see and
>learn from or to correct my mistakes. I'm moving this back on list but
>privacy rules prevent me from quoting to the list what you sent me off
>list.
>Sorry, but webmail seems to be allergic to mailing lists.
>>You have told us that you have used "sudo -E ..." although you haven't
>>told us why you used "-E". What "-E" does is run as root but on your
>>own home folder, not root's. This can easily leave stuff in your home
>>folder which is owned by root and cannot be handled by your regular
>>user account and that can cause all kinds of breakage. You might be
>>able to fix it with something like "chown -R ..." and "chgrp -R ..."
>>but that might make things worse.
>I'm well aware of that, but since wheezy to now, it was required because root had no
>permissions to use the users xwindows. So if I wanted to run synaptic, I had to use the -E.
>There was no other choice till now. If I don't need it now, and apparently I don't, the >biggest pain in the ass ever has finally been fixed after at least 4 major debian updates
>but now I'll have to learn to "sudo chown -R gene:gene /absolute/path" else I change
>root's account with a * in place of the /absolute/path. Based on you statement, I just went
>to a buster install and typed "sudo synaptic", and it worked on an xfce4 system, so that
>was silently fixed, but I had to use -E on wheezy,jessie,and stretch.
>And maybe I just found another oddity. The /root directory is empty. I thought it would
>have at least a copy of skel in it. Is that a product of using a no root login but sudo style?
When I was able to get to a terminal, an ls -la showed around a dozen .something files,
so its not quite empty.
So, why do I lose sudo when I use tdm-trinity? Or lightdm?
Thanks Gene
Hello,
Why kmail-trinity does'nt accept more than 5 emails to be sended ?
I receive a message "not sure that your emails will be received,
accept or not accept".
Thank you, cheers,
André
So do I normally, using fetchmail to keep an imap server (dovecot) at my ISP empty. And I have that part workiing, but it will not install anything from R14 despite updating the keyring. Synaptic turns the doit button red and proclaims I have held, broken packages, but refuses to ID them. So just to get a gui, i've quite a bit of xfce4 installed but can't find anything that will assign multiple workspaces, so I'm stuck with only one shell at a time to tyry and see whats going on.
My 7 gigs of old mail is because there are several lists I've never expired, so of it going back to 2002. Even getting xfce's default of 4 workspaces would be a huge help. And I'd be double blessed if I could install tde, the whole maryann.
trying to run synaptic gets me this gets me a msgs that says use the broken filter to locate 3 broken packages, but theres no such "filter". clearing that and clicking on the fix-broken meno item gets me this:
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi'
E: Sub-process returned an error code
searching locate doesn't find cnf-update-db, but an "ls -l /usr/lib" shows:
lrwxrwxrwx 1 root root 40 Jan 6 2021 cnf-update-db -> ../share/command-not-found/cnf-update-db
drwxr-xr-x 2 root root 4096 Nov 29 06:07 colobot
lrwxrwxrwx 1 root root 44 Jan 6 2021 command-not-found -> ../share/command-not-found/command-not-found
And that leaves me bum-fuzzled. I could do another, 4th install but that is around an 8 hour job just to clear the raid10's. I did find thebroken filter finally:
fig2dev
mono-runtime-sgen
python-is-python2
I'll see if they can be renoved.
took some doing, then desktop-base had to be removed and desktop-trinity added, but now its updateing 263 trinity pkgs, I'll send this, quite FF and reboot to see if I'm making progress.
In the meantime, Thanks hunter
On Mon, 29 Nov, 2021 at 3:04 PM, Hunter Ellett via tde-users <users(a)trinitydesktop.org> wrote:
To: tde users
Cc: hunter2k1(a)disroot.org
On November 29, 2021 1:11:24 PM CST, Gene Heskett <gheskett(a)shentel.net<mailto:gheskett@shentel.net>> wrote:
>Some of kde did install but the new kmail 5something doesn't see 7 gigs of old mail, nor will it create ANYTHING not even a new folder.
>
>
>So this is from ff doing webmail, which I would rather use for target practice.
>
>
>Does anyone have a fix for either problem?
Hi Gene,
Are you talking about tde or kde? Im assuming tde by the title and the context of your message but then you say "kmail 5something". Are you using Plasma Kmail on TDE? Clearing this up will help us diagnose the problem.
Either way, 7 GB of mail is a lot. Im guessing this is POP which I know nothing about, for I use IMAP.
Some of kde did install but the new kmail 5something doesn't see 7 gigs of old mail, nor will it create ANYTHING not even a new folder.
So this is from ff doing webmail, which I would rather use for target practice.
Does anyone have a fix for either problem?
Thanks all.
Gene
Out of curiosity, does anyone know the source of some of the wallpapers used in Trinity? Some of them are in 4:3 such as Fulmine, Triple Gears, etc. and they're quite low quality on newer 1080p+ monitors. I really like these and wonder if there's higher resolution versions anywhere that aren't stretched.
Have you deep desire to learn out your pursuing subject as much as you can? Well, you should connect with the firm-minded Assignment Help firm to pass your subject matter problem to them. Nobody should believe in the prospectus of only letting impress other professionals and hold those knowledge beams which you really hold. Survival in academic life is not easy as you ever think. An individual should have to sacrifice various concerns in this, which they hardly hear it. Do not let confuse your teacher with the act of late submission. So, you do not take any blunder mistake and hide this demerit to submit an assignment with someone else effort. The association of our experts helps you to get outshining performance. View our website to proceed with submission work which way.
https://www.greatassignmenthelp.co.uk/