Making a pseudo mail notifier in Puppy

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

Making a pseudo mail notifier in Puppy

#1 Post by musher0 »

Hello, all!

Spent the day yesterday looking for a decent mail notifier in Linux.
Came up with zilch.

Except maybe Poppler, but the python in vividpup is lacking a couple of
things to run it properly. Also, Poppler development is at a standstill.

Except maybe asmail, an old but well thought-out Afterstep dockapp, but
you need a valid "slit" or "harbour" to use it, and jwm certainly doesn't
have one. (pekwm does, though; and fluxbox, and Afterstep, and
WindowMaker, and surprisingly even icewm.)

In any case, here's a workaround:

Code: Select all

#!/bin/ash
# verif-courriel-2-hres.sh
# En attendant un logiciel de notification convenable !
# musher0, 16-17 juillet 2015, 13 h 23
# D'après un script de Médor inspiré d'un script de Barry Kauler.
#### set -xe
sleep 10m # To let starting apps settle down (incl. slocate).
while [ 1 ]; do
HRE="`date '+%H'`" # Check what time it is.
[ "$HRE" -gt "08" ] && [ "$HRE" -lt "17" ] && ionice -c 3 nice -n 19 defaultbrowser https://www.crawler.com/login.aspx https://www.inbox.com/login.aspx
# Check mail between 9 a.m. and 5 p.m. (working hours).
sync ; echo 3 > /proc/sys/vm/drop_caches;wait
sleep 2.33h
# Every 2 h 20 m, approx. at 9 h 10, 11 h 30, 13 h 50 and 16 h 10 
# (Four times a day should be enough.)
done # set +xe
The above uses the default browser in a while loop, plus hour checking, to
open webmail pages four times during the working day. Talk about putting
it in your face!... :) But we don't want to miss a contract, do we! :(

You can play with the hours in the conditions part of the script (line 10) to
extend or reduce them, and with the number to the right of the sleep
command (line 13) to check your mail more or less often during the day.

It's a stop-gap. If anybody can direct me to a decent email notifier
running on Linux, something of nPOPuk quality, I'm open!

BFN.

musher0
Last edited by musher0 on Fri 17 Jul 2015, 18:38, edited 1 time in total.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
Smithy
Posts: 1151
Joined: Mon 12 Dec 2011, 11:17

#2 Post by Smithy »

Hi Musher, not sure if this would be useful http://gkrellm.srcbox.net/
but it contains a mail notifier, "A mailbox monitor which can launch a mail reader, a mail fetch/check program, and a sound notify command. Builtin new mail message checking for mbox, maildir, MH, POP3, and IMAP mailboxes".

And a couple of plugins that might do mail notification.
http://www.claws-mail.org/plugins.php?section=downloads

Not sure if this stuff notifies from "webmail" though.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#3 Post by musher0 »

Thanks Smithy.

I've used gkrellm in the past, and it's a nice piece of software. However,
pekwm already has a "harbour" similar to grellm and I don't want to
overload my desktop. I'm looking for something that will fit in pekwm's
harbour or show in the icon tray.

BFN.

musher0
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
Smithy
Posts: 1151
Joined: Mon 12 Dec 2011, 11:17

#4 Post by Smithy »

Yes it does look rather full, maybe your script is the best way for now!

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#5 Post by musher0 »

Hello.

I think I found a partial solution here.

If interested, ask me and I'll translate the comments.

Again, if interested, the thread on mail notifiers on the French side of the
forum has been revived, starting here.

Comments welcome.

BFN.

musher0
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

Post Reply