<<< Date Index >>>     <<< Thread Index >>>

Re: Mutt - OS X integration



On Wed, Mar 17, 2004 at 08:49:27AM +0100, Andre Bonhote wrote:
} I am using mutt on Mac OS X. I managed to create a nice dock button and
} let mutt read my Address Book entries.
} 
} Everything works fine as long as I don't want to click on a "mailto:";
} link. I would _really_ love to fully integrate mutt as my default mail
} application. This would mean
} 
}  - create an .app out of it, so Mail.app can set it as default
}  - somehow pass mail addresses to this .app
} 
} Anyone achieved this already?

You don't need it to be a .app to have it used for mailto URLs. At
least, you don't if you are using Mozilla. See mozex.mozdev.org. It
claims that Mac isn't supported, but I assure you that the *NIX install
works just fine under MacOS X. In addition, it is pretty easy to get
urlview to use the default web browser if you set it to use the
following script in your .urlview:

#!/bin/sh

if test $# -eq 0
then
        echo "Usage: $0 <URL> [URL...]" >&2
        exit 1
fi

for url in "$@"
do
        trimurl="`echo \"$url\" | sed 's/^[     ]*\([^  ]*\)[   ]*$/\1/'`"
        if ! expr "$trimurl" : '[a-zA-Z][a-zA-Z]*:' >/dev/null
        then
                trimurl=http://"$trimurl";
        fi
        osascript -e "open location \"$trimurl\""
done

I use this same script with xchat and some other programs and it works
like a charm.

} TIA
} Andr?
--Greg