Search the knowledgebase


Handling of mailto, telnet and news links in Opera

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


E-mail

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

  • %t (to) - Replaced by the receiver
  • %c (cc) - Replaced by the cc receiver
  • %s (subject) - Replaced by the subject text
  • %b (body) - Replaced by the body text
  • %r (raw) - Replaced by the raw url. The result will always start with "mailto:" (Opera 6.02 and newer only)
  • %w (raw) - As %r but without the "mailto:" prefix (Opera 6.02 and newer only)

The specifiers can be placed within a set of brackets. If the specifiers are not replaced by real data, then the text within the brackets (and the brackets themselves) are removed to avoid confusion when starting the mailer.

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

Example 1:

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

kmail [-s %s] [--body %b] [%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:

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

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


Telnet

Supported flags:

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

The specifiers can be placed within a set of brackets. If the specifiers are not replaced by real data, then the text within the brackets (and the brackets themselves) are removed to avoid confusion when starting the telnet client.

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.

The specifiers can be placed within a set of brackets. If the specifiers are not replaced by real data, then the text within the brackets (and the brackets themselves) are removed to avoid confusion when starting the telnet client.

Example:

knode [%r]


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