info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: can't open link


From: jenenliu
Subject: Re: can't open link
Date: Tue, 11 Mar 2014 12:22:41 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Thanks for reply.
asjo@koldfront.dk (Adam Sjøgren) writes:

> jenenliu <jenenliu@gmail.com> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]