Thanks for reply. [email protected] (Adam Sjøgren) writes: > jenenliu <[email protected]> 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:" > | > | Documentation: > | 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. > `---- > I run 'locate mm-decode.el', but I just can find a mm-decode.elc file. Can I set the mm-w3m-safe-url-regxp variable in my .emacs file, and if can, how Thanks >> 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 > | browse-url-default-browser > | > | This variable may be risky if used as a file-local variable. > | > | Documentation: > | 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. > `---- > > Best regards, > > Adam
-- A lazy Emacser _______________________________________________ info-gnus-english mailing list [email protected] https://lists.gnu.org/mailman/listinfo/info-gnus-english
