Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 19 Oct 2019, 02:44
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Making a pseudo mail notifier in Puppy
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
musher0

Joined: 04 Jan 2009
Posts: 14409
Location: Gatineau (Qc), Canada

PostPosted: Fri 17 Jul 2015, 05:32    Post subject:  Making a pseudo mail notifier in Puppy
Subject description: using your default browser and a while loop
 

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:
#!/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!... Smile But we don't want to miss a contract, do we! Sad

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

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)

Last edited by musher0 on Fri 17 Jul 2015, 14:38; edited 1 time in total
Back to top
View user's profile Send private message 
Smithy


Joined: 12 Dec 2011
Posts: 1062

PostPosted: Fri 17 Jul 2015, 06:09    Post subject:  

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.
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 14409
Location: Gatineau (Qc), Canada

PostPosted: Fri 17 Jul 2015, 14:42    Post subject:  

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
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
Smithy


Joined: 12 Dec 2011
Posts: 1062

PostPosted: Sat 18 Jul 2015, 04:42    Post subject:  

Yes it does look rather full, maybe your script is the best way for now!
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 14409
Location: Gatineau (Qc), Canada

PostPosted: Sat 18 Jul 2015, 14:13    Post subject:  

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
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0473s ][ Queries: 12 (0.0196s) ][ GZIP on ]