[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: can't open link
Re: can't open link
Mon, 10 Mar 2014 17:50:24 +0100
Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3.50 (gnu/linux)
jenenliu <firstname.lastname@example.org> writes:
> the link is considered to be unsafe; use the prefix arg to view anyway
> How can I fix it,
Either you can do as it says, and use C-u before opening the link, or
you can change the variable mm-w3m-safe-url-regexp:
,----[ C-h v mm-w3m-safe-url-regexp RET ]
| mm-w3m-safe-url-regexp is a variable defined in `mm-decode.el'.
| Its value is nil
| Original value was "\\`cid:"
| Regexp matching URLs which are considered to be safe.
| Some HTML mails might contain a nasty trick used by spammers, using
| the <img> tag which is far more evil than the [Click Here!] button.
| It is most likely intended to check whether the ominous spam mail has
| reached your eyes or not, in which case the spammer knows for sure
| that your email address is valid. It is done by embedding an
| identifier string into a URL that you might automatically retrieve
| when displaying the image. The default value is "\\`cid:" which only
| matches parts embedded to the Multipart/Related type MIME contents and
| Gnus will never connect to the spammer's site arbitrarily. You may
| set this variable to nil if you consider all urls to be safe.
> and how can I set the default browser to be w3m
Maybe by setting browse-url-browser-function:
,----[ C-h v browse-url-browser-function RET ]
| browse-url-browser-function is a variable defined in `browse-url.el'.
| Its value is browse-url-firefox
| Original value was
| This variable may be risky if used as a file-local variable.
| Function to display the current buffer in a WWW browser.
| This is used by the `browse-url-at-point', `browse-url-at-mouse', and
| `browse-url-of-file' commands.
| If the value is not a function it should be a list of pairs
| (REGEXP . FUNCTION). In this case the function called will be the one
| associated with the first REGEXP which matches the current URL. The
| function is passed the URL and any other args of `browse-url'. The last
| regexp should probably be "." to specify a default browser.
"I'll dye without my hair!" Adam Sjøgren