Bottle patch
(I sent this a moment ago from the wrong address. My apologies to anyone who
sees it twice)
G'day,
The patch below (for 2.0.3) modifies the behaviour of the message bottle:
o When fresh new mail arrives, or the applet is started while mail is
already present (new or not), drop a bottle.
o An unopened (mtime > atime) mailbox keeps the bottle floating, as before.
o An opened mailbox (atime >= mtime) makes the bottle sink to the bottom (and
stay there).
o Only when the mailbox is actually empty (size == 0) or unreadable is no
bottle shown.
I just started using bubblemon after the Freshmeat announcement a few days
ago and I think it's great (it even got a "Wow, that's cool!" from my
non-geek girlfriend). There's just a couple of things I'd like to see added,
which are a little beyond my knowledge: play a sound (plop) when new email
arrives, and run an application when the applet is clicked. If bubblemon did
these, I could remove Inbox Monitor from my panel.
diff -upPr bubblemon-2.0.3.old/src/bubblemon.c bubblemon-2.0.3/src/bubblemon.c
--- bubblemon-2.0.3.old/src/bubblemon.c 2005-01-09 20:58:06.000000000 +1100
+++ bubblemon-2.0.3/src/bubblemon.c 2005-01-15 18:10:20.000000000 +1100
@@ -456,17 +456,20 @@ static void bubblemon_updateBottle(int m
physics.bottle_y < MIN(physics.waterLevels[bubblePic.width / 2].y,
bubblePic.height - msgInBottle.height / 2);
- if (youveGotMail) {
(Continue reading)