Firefox mailto:

Submitted by ormiret on Sun, 18/02/2007 - 06:07.

To make firefox call an external command to handle mailto: links:

  • Goto about:config in firefox.
  • Enter network.protocol-handler into the filter box. This should leave a few config values.
  • Find network.protocol-handler.external.mailto in the list and verify that it's set to true
  • Add a new preference of String type called network.protocol-handler.app.mailto and give it the value of the path to the command that you want firefox to call with the email address as the first argument.

For sylpheed-claws we need to put a wrapper round that call to turn the command into sylpheed-claws-gtk2 --compose $email_address.

  • Make a script something like:

    #! /bin/bash
    # -*- shell-script -*-

    sylpheed-claws-gtk2 --compose $*

  • Point network.protocol-handler.app.mailto in firefox at the script.
( categories: )