Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* can't open link
@ 2014-03-10  5:53 jenenliu
  2014-03-10 16:50 ` Adam Sjøgren
  0 siblings, 1 reply; 5+ messages in thread
From: jenenliu @ 2014-03-10  5:53 UTC (permalink / raw)
  To: info-gnus-english

I can't open link when I am reading some posts in gnus, such as in
reddit.python
The error message is:
the link is considered to be unsafe; use the prefix arg to view anyway

How can I fix it, and how can I set the default browser to be w3m
I have w3m installed in Emacs
Thanks

-- 
A lazy Emacser

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: can't open link
  2014-03-10  5:53 can't open link jenenliu
@ 2014-03-10 16:50 ` Adam Sjøgren
  2014-03-11  4:22   ` jenenliu
  0 siblings, 1 reply; 5+ messages in thread
From: Adam Sjøgren @ 2014-03-10 16:50 UTC (permalink / raw)
  To: info-gnus-english

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.
`----

> 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

-- 
 "I'll dye without my hair!"                                  Adam Sjøgren
                                                         asjo@koldfront.dk


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: can't open link
  2014-03-10 16:50 ` Adam Sjøgren
@ 2014-03-11  4:22   ` jenenliu
  2014-03-11 21:29     ` Adam Sjøgren
  0 siblings, 1 reply; 5+ messages in thread
From: jenenliu @ 2014-03-11  4:22 UTC (permalink / raw)
  To: info-gnus-english

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


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: can't open link
  2014-03-11  4:22   ` jenenliu
@ 2014-03-11 21:29     ` Adam Sjøgren
  2014-03-12 12:34       ` jenenliu
  0 siblings, 1 reply; 5+ messages in thread
From: Adam Sjøgren @ 2014-03-11 21:29 UTC (permalink / raw)
  To: info-gnus-english

jenenliu <jenenliu@gmail.com> writes:

> Can I set the mm-w3m-safe-url-regxp variable in my .emacs file, and if
> can, how

In the usual way:

  (setq mm-w3m-safe-url-regexp nil)


  Best regards,

    Adam

-- 
 "Although it is against my will, I think it is               Adam Sjøgren
  needed."                                               asjo@koldfront.dk


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: can't open link
  2014-03-11 21:29     ` Adam Sjøgren
@ 2014-03-12 12:34       ` jenenliu
  0 siblings, 0 replies; 5+ messages in thread
From: jenenliu @ 2014-03-12 12:34 UTC (permalink / raw)
  To: info-gnus-english

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

> jenenliu <jenenliu@gmail.com> writes:
>
>> Can I set the mm-w3m-safe-url-regxp variable in my .emacs file, and if
>> can, how
>
> In the usual way:
>
>   (setq mm-w3m-safe-url-regexp nil)
>
>
>   Best regards,
>
>     Adam

Many thanks ;)
--
A lazy Emacser


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-03-12 12:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-10  5:53 can't open link jenenliu
2014-03-10 16:50 ` Adam Sjøgren
2014-03-11  4:22   ` jenenliu
2014-03-11 21:29     ` Adam Sjøgren
2014-03-12 12:34       ` jenenliu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).