Re: problems with rss feeds

2008-04-20 Thread David Hansen
On Sat, 12 Apr 2008 07:46:14 +0200 Gour [EMAIL PROTECTED] wrote:

 Gour == Gour  [EMAIL PROTECTED] writes:

 Gour Any idea what's wrong?

 Now I see there is some problem with w3:

 nnrss: http://www.xkcd.com/rss.xml: Not valid XML (error XML:
 (Well-Formed) Couldn't parse tag: [\374\334Rr\271)\367/) and 
 w3-parse doesn't work (void-function w3-parse-buffer)
 XML-RPC is not available... not checking Syndic8.
 gnus-group-make-rss-group: No feeds found for http://www.xkcd.com/rss.xml


 Any idea? (i'm using CVS version of w3m-cvs)

I don't have w3 installed and no problem reading the xkcd rss feed.
What is w3 used for anyway?  I use w3m to display the articles, I think
the xml parsing happens with the xml parser that comes with emacs.

David



___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: html-Mail

2007-03-26 Thread David Hansen
On 26 Mar 2007 01:08:17 -0700 gerhard eber wrote:

 I'm using gnus some years now as mail reader and always rejected e-
 mails written in html. But it seems that this is no longer possible.

 Is there a simple way to show a html e-mail in the default browser? At
 the moment I have to store it into a file, then go to the browser and
 read in this file from there.

Get emacs-w3m [1] and (setq mm-text-html-renderer 'w3m)

David

Footnotes: 
[1]  http://emacs-w3m.namazu.org/




___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


[nnrss.el patch] Only Use Subject, Author, URL and Date to build the Hash Index

2007-02-03 Thread David Hansen
Hello,

so far this works well with the feeds i read, no nasty duplicates
anymore.  Should be easy to extend to other fields if necessary.

David

*** nnrss.el	30 Jan 2007 21:50:55 +0100	7.47
--- nnrss.el	03 Feb 2007 11:42:52 +0100	
***
*** 691,750 
  	  rss-ns (nnrss-get-namespace-prefix xml http://purl.org/rss/1.0/;)
  	  content-ns (nnrss-get-namespace-prefix xml http://purl.org/rss/1.0/modules/content/;))
  (dolist (item (nreverse (nnrss-find-el (intern (concat rss-ns item)) xml)))
!   (when (and (listp item)
! 		 (string= (concat rss-ns item) (car item))
! 		 (progn (setq hash-index (md5 (gnus-prin1-to-string item)))
! 			(not (gethash hash-index nnrss-group-hashtb
  	(setq subject (nnrss-node-text rss-ns 'title item))
! 	(setq url (nnrss-decode-entities-string
! 		   (nnrss-node-text rss-ns 'link (cddr item
! 	(setq extra (or (nnrss-node-text content-ns 'encoded item)
! 			(nnrss-node-text rss-ns 'description item)))
! 	(if (setq feed-subject (nnrss-node-text dc-ns 'subject item))
! 	(setq extra (concat feed-subject br /br / extra)))
! 	(setq author (or (nnrss-node-text rss-ns 'author item)
  			 (nnrss-node-text dc-ns 'creator item)
  			 (nnrss-node-text dc-ns 'contributor item)))
! 	(setq date (nnrss-normalize-date
! 		(or (nnrss-node-text dc-ns 'date item)
! 			(nnrss-node-text rss-ns 'pubDate item
! 	(setq comments (nnrss-node-text rss-ns 'comments item))
! 	(when (setq enclosure (cadr (assq (intern (concat rss-ns enclosure)) item)))
! 	  (let ((url (cdr (assq 'url enclosure)))
! 		(len (cdr (assq 'length enclosure)))
! 		(type (cdr (assq 'type enclosure)))
! 		(name))
! 	(setq len
! 		  (if (and len (integerp (setq len (string-to-number len
! 		  ;; actually already in `ls-lisp-format-file-size' but
! 		  ;; probably not worth to require it for one function
! 		  (do ((size (/ len 1.0) (/ size 1024.0))
! 			   (post-fixes (list  k M G T P E)
!    (cdr post-fixes)))
! 			  (( size 1024)
! 			   (format %.1f%s size (car post-fixes
! 		0))
! 	(setq url (or url ))
! 	(setq name (if (string-match /\\([^/]*\\)$ url)
! 			   (match-string 1 url)
! 			 file))
! 	(setq type (or type ))
! 	(setq enclosure (list url name len type
! 	(push
! 	 (list
! 	  (incf nnrss-group-max)
! 	  (current-time)
! 	  url
! 	  (and subject (nnrss-mime-encode-string subject))
! 	  (and author (nnrss-mime-encode-string author))
! 	  date
! 	  (and extra (nnrss-decode-entities-string extra))
! 	  enclosure
! 	  comments
! 	  hash-index)
! 	 nnrss-group-data)
! 	(puthash hash-index t nnrss-group-hashtb)
! 	(setq changed t))
(setq extra nil))
  (when changed
(nnrss-save-group-data group server)
--- 691,754 
  	  rss-ns (nnrss-get-namespace-prefix xml http://purl.org/rss/1.0/;)
  	  content-ns (nnrss-get-namespace-prefix xml http://purl.org/rss/1.0/modules/content/;))
  (dolist (item (nreverse (nnrss-find-el (intern (concat rss-ns item)) xml)))
!   (when (and (listp item) (string= (concat rss-ns item) (car item)))
! ;; for hashing use subject, author, url and date
  	(setq subject (nnrss-node-text rss-ns 'title item))
! (setq author (or (nnrss-node-text rss-ns 'author item)
  			 (nnrss-node-text dc-ns 'creator item)
  			 (nnrss-node-text dc-ns 'contributor item)))
! (setq url (nnrss-decode-entities-string
! 		   (nnrss-node-text rss-ns 'link (cddr item
! (setq date (or (nnrss-node-text dc-ns 'date item)
!(nnrss-node-text rss-ns 'pubDate item)))
! (when (progn
! (setq hash-index (md5 (concat (or subject )
!   (or author )
!   (or url )
!   (or date 
! (not (gethash hash-index nnrss-group-hashtb)))
!   (setq date (nnrss-normalize-date date))
!   (setq extra (or (nnrss-node-text content-ns 'encoded item)
!   (nnrss-node-text rss-ns 'description item)))
!   (if (setq feed-subject (nnrss-node-text dc-ns 'subject item))
!   (setq extra (concat feed-subject br /br / extra)))
!   (setq comments (nnrss-node-text rss-ns 'comments item))
!   (when (setq enclosure (cadr (assq (intern (concat rss-ns enclosure)) item)))
! (let ((url (cdr (assq 'url enclosure)))
!   (len (cdr (assq 'length enclosure)))
!   (type (cdr (assq 'type enclosure)))
!   (name))
!   (setq len
! (if (and len (integerp (setq len (string-to-number len
! ;; actually already in `ls-lisp-format-file-size' but
! ;; probably not worth to require it for one function
! (do ((size (/ len 1.0) (/ size 1024.0))
!  (post-fixes (list  k M G T P E)
! 

Re: can gnus support fake mail address?

2006-09-01 Thread David Hansen
On 31 Aug 2006 22:28:15 -0700 [EMAIL PROTECTED] wrote:

 in this case, i use a fake mail address (setq user-mail-address
 [EMAIL PROTECTED]) , and now it fails on sending mail when smtp server
 authenticate it.

It's most probably the SMPT server which rejects your Mail.

 on the other hand, if i use my true address, i worry
 about when i use newsgroup, i will get many spams.
 anyone can provide a good way?

Use a SPAM filter like everyone else is doing.  Otherwise
ppl can't reply to your postings via Mail.

David



___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: can gnus support fake mail address?

2006-09-01 Thread David Hansen
On 1 Sep 2006 01:19:22 -0700 [EMAIL PROTECTED] wrote:

 David Hansen 写道:

 Use a SPAM filter like everyone else is doing.  Otherwise
 ppl can't reply to your postings via Mail.

 where can i get a good spam filter for gnus?

I don't use gnus Spam filtering.  I must admit that I just
don't understand it.

On my setup I use Spamassasin and procmail to sort out
probable Spam to a different mbox and send the worst crap
directly to /dev/null.

I don't know about the stable gnus release but the version
from CVS claims to support external spam filters (at least
Spamassasin and bogofilter) and comes with a built in spam
filter as well.  But it's terrible complicated (or I'm just
to stupid to understand it).

David



___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: How to follow URL links in Gnus

2006-08-08 Thread David Hansen
On Tue, 08 Aug 2006 16:33:20 +0100 Chunhua Li wrote:

 Hi, lists,

 I just started using Emacs/Gnus to read news. When I read messages in article
 buffer, I always need to follow url links, so I position cursor on a URL
 link and press RET, or position mouse on the link and press mouse-2. 
 With both methods, the following message is displayed in minibuffer, 

 *Searching for program: no such file or directory, netscape*

 Actually, I have w3m installed with these lines in  ~/.emacs
   (require 'w3m-load)
   (setq mm-text-html-renderer 'w3m)

 1. How to instruct Gnus to follow the link with w3m?

(setq browse-url-browser-function 'w3m-browse-url)

David



___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: gnus with firefox

2006-05-13 Thread David Hansen
On 14 May 2006 09:10:48 +1000 Gary Wessle wrote:

 how can I use gnus as a mail client to send mail when I click on a
 link while browser in firefox?

Not sure though if it still exists but some time there was a
mozilla and firefox extension mozex that lets you run an
arbitrarily program for mailto: links.  Just use

emacsclient -eval ...

David



___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Get level 4 doesn't get from groups with level 4

2006-03-31 Thread David Hansen
On Fri, 31 Mar 2006 08:42:10 GMT Andrew Markebo wrote:

 Hi!

 Well I am sitting on a linux-machine with a gnus 5.10.3 on my emacs
 21.3. I want to get the news from my groups marked with level 4, so I
 do 4 g bit gnus only updates the groups at level 3, not the level 4
 groups (they are still *-ed after start). 


Try C-u 4 g

David



___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: can gnus remember what I post in newgroups?

2005-12-22 Thread David Hansen
On 22 Dec 2005 15:59:48 +0800 ZC Miao wrote:

 After I post a message in a group, I must enter the group
 again and search my name next time to see if it's followed.
 Can GNUS automaticaly remind it to me? 

It's in the FAQ:

Question 4.11
.

Can I highlight messages written by me and follow-ups to those?

Answer
..

Stop those Can I ... questions, the answer is always yes in Gnus
Country :-). It's a three step process: First we make faces
(specifications of how summary-line shall look like) for those
postings, then we'll give them some special score and finally we'll
tell Gnus to use the new faces. You can find detailed instructions on
how to do it on my.gnus.org (http://my.gnus.org/node/view/224)


David
___
Info-gnus-english mailing list
Info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: How to skip slow foreign servers on startup ?

2005-08-22 Thread David Hansen
On Mon, 22 Aug 2005 21:17:25 +0800 Steven Woody wrote:

 Bernard Adrian [EMAIL PROTECTED] writes:

 i suggest you type 'u' (for unsubscribe) when the point is on the
 group in the summary buffer.

 it a way, but unsubscribed group will not get listed normally.

For nnrss and nnshimbun groups i lowered the level (S l) to
prevent fetching the headers for this groups when i hit 'g'.

Hope this helps.

David
___
Info-gnus-english mailing list
Info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Slashdot RSS feed.

2005-04-27 Thread David Hansen
On Tue, 26 Apr 2005 21:22:07 +0200 Bruno Hertz wrote:

 Anybody else having problems with the Slashdot RSS feed
 http://slashdot.org/rss/index.rss
 today?

 nnrss hangs with message Saw end of trailers and consumes almost
 100% CPU here.

 Happened just this afternoon. Their feed broke at some point, even
 Firefox reported an error, but then they somehow fixed it. At least
 for Firefox it's OK again.

 In Emacs still no luck though (No Gnus v0.3).

Do M-x toggle-debug-on-quit RET and then try to abort with C-g
and send the backtrace to the gnus developer list (M-x gnus-bug
RET should be fine).

David
___
Info-gnus-english mailing list
Info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: browse-url

2005-03-12 Thread David Hansen
On Sat, 12 Mar 2005 11:02:19 -0500 Kenneth Jacker wrote:

   (setq browse-url-browser-function 'browse-url-w3m)

(setq browse-url-browser-function 'w3m-browse-url)

should work.

David
___
Info-gnus-english mailing list
Info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english