Opera

Search the knowledge base

Handling of mailto, telnet and news links in Opera

This article explains how you can pass e-mail, telnet and news URLs to an external program.

E-mail

The following placeholders are supported by Opera for Linux when passing mailto-links to an external e-mail client:

  • %t (to) - Replaced by the receiver
  • %c (cc) - Replaced by the cc receiver
  • %b (bcc) - Replaced by the bcc receiver
  • %s (subject) - Replaced by the subject text
  • %m (body) - Replaced by the body text
  • %r (raw) - Replaced by the raw URI, including "mailto:"
  • %w (raw) - Replaced by the raw URI, excluding "mailto:"
  • %% - %

Notice that % escapes itself. If a placeholder is contained within square brackets [], and the parameter exists, the content of the square brackets is passed to the program, but without the brackets. If the parameter does not exist, neither the content nor the brackets is passed to the external program.

If brackets are omitted, Opera will pass the entire string, regardless of its content.

A subset of these placeholders is supported by Opera for Windows:

  • %t (to) - Replaced by the receiver
  • %c (cc) - Replaced by the cc receiver
  • %b (bcc) - Replaced by the bcc receiver
  • %s (subject) - Replaced by the subject text
  • %m (body) - Replaced by the body text

Notice in particular that %1 is not supported.

Example 1: UNIX

Opera is set to use kmail as an external e-mail client, using the following placeholders:

kmail [-s %s] [--body %m] [%t]

1. The URL <"mailto:abc@xyz.nn?body=hello"> becomes:

kmail abc@xyz.nn --body hello

2. The URL <"mailto:abc@xyz.nn?body=hello?subject=how are you"> becomes:

kmail abc@xyz.nn --body hello -subject how are you

Example 2: UNIX

Set Evolution as an external e-mail client using the following placeholder:

evolution [%r]

The URL <"mailto:abc@xyz.nn?body=hello?subject=how are you"> becomes:

evolution mailto:abc@xyz.nn?body=hello?subject=how are you

Example 3: Windows

Set Outlook Express as an external e-mail client using the following placeholders:

Open with other application:

"C:\Program Files\Outlook Express\msimn.exe"

Parameter:

/mailurl:mailto:%t?subject=%s&body=%m&cc=%c&bcc=%b

Example 4: Windows

Set Mozilla Thunderbird as an external e-mail client using the following placeholders:

Open with other application:

"C:\Program Files\Mozilla Thunderbird\thunderbird.exe"

Parameter:

mailto:%t?subject=%s&body=%m&cc=%c&bcc=%b


Telnet

Supported flags:

  • %a (address) - Replaced by the address
  • %p (port) - Replaced by the port

If a placeholder is contained within square brackets [], and the parameter exists, the content of the square brackets is passed to the program, but without the brackets. If the parameter does not exist, neither the content nor the brackets is passed to the external program.

Example:

telnet [%a] [%p]


News

Supported flags:

  • %s (server) - Replaced by the server
  • %g (group) - Replaced by the group
  • %r (raw) - The raw string. The result will always start with "news://" and the generic server name ("unknown.newsserver") will be removed if present.
  • %w (raw) - As %r but without the "news://" prefix.

If a placeholder is contained within square brackets [], and the parameter exists, the content of the square brackets is passed to the program, but without the brackets. If the parameter does not exist, neither the content nor the brackets is passed to the external program.

Example:

knode [%r]


Browse through articles in the same categories: mail third-party