Category: Computers

  • Old stuff moving over here

    I’m moving most of my old Linux related material over here, to have it all in a single location. Since the material is old, I backdate the pages so they won’t appear on the front page.

    Currently, migrated are:

  • Using the Mail led with remote mail

    I recently switched all my mail reading over to using IMAP over SSL, and needed to get GNOME’s Inbox Monitor applet to handle it. It doesn’t do it natively, so I had to use a script to do the check. It is done easily with fetchmail.

    I have found a way to use the extra leds on the Asus M2400N, which I have added to the script.

    The script is this:

    #!/bin/sh
    MBOX=$HOME/.newmail
    MLED=/proc/acpi/asus/mled
    test -x /usr/bin/fetchmail || exit 0
    if fetchmail --ssl -c > $MBOX+; then
        mv -f $MBOX+ $MBOX
        test -w $MLED && echo 1 > $MLED
    else
        rm -f $MBOX+ $MBOX
        test -w $MLED && echo 0 > $MLED
    fi
    

    In the preferences of GNOME’s Inbox Monitor, the script runs before each update, and the Mail Spool File is set to $HOME/.newmail.

    That’s it.