You are here

Configuring Thunderbird As KNotes Mail Action

The steps are really simple.

  1. Save the below script to /usr/local/bin/

    set -eu
    # See /usr/share/doc/util-linux/examples/getopt-parse.bash for getopt example
    TEMP=$(getopt --name "$0" --options s:,b: --longoptions "subject:,body:" -- "$@")
    # Bad arguments, something has gone wrong with the getopt command.
    if [ $? -ne 0 ]; then
      echo "Termintaing ..." >&2
      exit 1
    # Note the quotes around `$TEMP': they are essential!
    eval set -- "$TEMP"
    # Now go through all the options
    while true; do
      case "$1" in
          shift 2;;
          shift 2;;
          echo "Error parsing arguments" >&2
          exit 1;;
    thunderbird_command=$(command -v icedove >/dev/null 2>&1 && echo icedove || echo thunderbird)
    $thunderbird_command -compose "subject='$subject',body='$body'"
  2. Make the script executable.
    $ chmod +x /usr/local/bin/
  3. Go to Configure Knotes... -> Actions and in mail action set it to "/usr/local/bin/ --subject %t --body %f".

Now whenever you right click on a note toolbar and click on Mail..., thunderbird compose window should pop-up with the subject as the note title and body as the content of the note.



Simpler here :

1) Open KNotes.
2) Right-click on the knotes icon in KDE's "system tray" - Choose "KNotes einrichten" (Knotes settings?)
3) On the left, choose "Actions" (Blue KDE wheel)
4) Replace the "KMail" calling string with

mozilla-thunderbird -compose subject= %t ,body= %f

Note:The spaces before and after %t and %f are important, because otherwise, KNotes' parser won't see them.

Add new comment