Gnus development mailing list
 help / color / mirror / Atom feed
* ANNOUNCE: webmail, a mail source for HoTMaiL
@ 1999-11-22  9:51 Shenghuo ZHU
  1999-11-22 10:23 ` Hrvoje Niksic
  1999-11-23  7:53 ` Shenghuo ZHU
  0 siblings, 2 replies; 5+ messages in thread
From: Shenghuo ZHU @ 1999-11-22  9:51 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 376 bytes --]


Now gnus can grab mails from HoTMaiL. I've checked it into CVS (0.99).

Usage:
(push '(webmail :wmtype hotmail :user "your_account" 
        :password "top_security") mail-sources)

Known problem: HoTMaiL only accepts one line cookie, while w3
(4.0pre.46) breaks cookie into several lines and is not customizable.
The attached patch works around this problem.

-- 
Shenghuo


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: w3-zsh1.diff --]
[-- Type: text/x-patch, Size: 1032 bytes --]

Index: url-cookie.el
===================================================================
RCS file: /gd/gnu/anoncvsroot/w3/lisp/url-cookie.el,v
retrieving revision 1.4
diff -u -r1.4 url-cookie.el
--- url-cookie.el	1999/11/09 14:52:19	1.4
+++ url-cookie.el	1999/11/22 03:05:49
@@ -240,6 +240,10 @@
 		(setq retval (cons cur retval))))))
     retval))
 
+(defvar url-cookie-multiple-line t
+  "If nil, use one line cookie.
+Some web servers, such as hotmail, only accept one line cookie.")
+
 ;;;###autolaod
 (defun url-cookie-generate-header-lines (host path secure)
   (let* ((cookies (url-cookie-retrieve host path secure))
@@ -257,7 +261,8 @@
       (setq cur (car cookies)
 	    cookies (cdr cookies)
 	    chunk (format "%s=%s" (url-cookie-name cur) (url-cookie-value cur))
-	    retval (if (< 80 (+ (length retval) (length chunk) 4))
+	    retval (if (and url-cookie-multiple-line
+			(< 80 (+ (length retval) (length chunk) 4)))
 		       (concat retval "\r\nCookie: " chunk)
 		     (if retval
 			 (concat retval "; " chunk)

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

end of thread, other threads:[~1999-11-23 15:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-22  9:51 ANNOUNCE: webmail, a mail source for HoTMaiL Shenghuo ZHU
1999-11-22 10:23 ` Hrvoje Niksic
1999-11-22 15:26   ` Shenghuo ZHU
1999-11-23 15:33     ` Hrvoje Niksic
1999-11-23  7:53 ` Shenghuo ZHU

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