Package: gbuffy
Version: 0.2.6-11
Severity: normal
Tags: patch
The following either beeps, or runs a program of the user's choice,
upon recieving new mail in any of the inboxes (not tested for anything
other than imap and mbox mail though -- no idea what it would do if
presented with new usenet messages.
If you don't want beeping, then you can
> export GBUFFY_BEEP true
or, gbuffy can be modified to perhaps accept another argument to turn
off beeping.
--- gbuffy-0.2.6/gbuffy.c 2006-11-24 23:57:11.000000000 +1100
+++ gbuffy-0.2.6.beep/gbuffy.c 2006-11-25 00:03:37.000000000 +1100
@@ -66,6 +66,17 @@
{ "external", external_folder_count, 0 }
};
+void beep()
+{
+ char *p;
+
+ if ((p = getenv ("GBUFFY_BEEP"))) {
+ system(p);
+ } else {
+ gdk_beep();
+ }
+}
+
void gbuffy_exit (GtkWidget *widget, gpointer data)
{
if (!DontExit)
@@ -557,6 +568,9 @@
{
char buf[STRING];
+ if (mbox->new_messages > 0) {
+ beep();
+ }
snprintf (buf, sizeof (buf), "%s: %d", mbox->title, mbox->new_messages);
gtk_label_set (GTK_LABEL (GTK_BUTTON (mbox->button)->child), buf);
if (mbox->new_messages)
-- System Information:
Debian Release: 4.0
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-1-686
Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1)
Versions of packages gbuffy depends on:
ii libc6 2.3.6.ds1-8 GNU C Library: Shared libraries
ii libcompfaceg1 1:1.5.2-3 Compress/decompress images for mai
ii libglib1.2 1.2.10-14 The GLib library of C routines
ii libgtk1.2 1.2.10-18 The GIMP Toolkit set of widgets fo
ii libssl0.9.8 0.9.8c-3 SSL shared libraries
ii libx11-6 2:1.0.3-3 X11 client-side library
ii libxext6 1:1.0.1-2 X11 miscellaneous extension librar
ii libxi6 1:1.0.1-3 X11 Input extension library
gbuffy recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]