From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/27139 Path: main.gmane.org!not-for-mail From: Shenghuo ZHU Newsgroups: gmane.emacs.gnus.general Subject: ANNOUNCE: webmail, a mail source for HoTMaiL Date: 22 Nov 1999 04:51:24 -0500 Organization: U of Rochester Sender: owner-ding@hpc.uh.edu Message-ID: <2nhfiedfc3.fsf@tiger.jia.vnet> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1035164220 23057 80.91.224.250 (21 Oct 2002 01:37:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:37:00 +0000 (UTC) Return-Path: Original-Received: from bart.math.uh.edu (bart.math.uh.edu [129.7.128.48]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id EAA02781 for ; Mon, 22 Nov 1999 04:54:03 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by bart.math.uh.edu (8.9.1/8.9.1) with ESMTP id DAB14202; Mon, 22 Nov 1999 03:52:39 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 22 Nov 1999 03:52:48 -0600 (CST) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id DAA09403 for ; Mon, 22 Nov 1999 03:52:38 -0600 (CST) Original-Received: from mailout1.nyroc.rr.com (mailout1-0.nyroc.rr.com [24.92.226.81]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id EAA01980 for ; Mon, 22 Nov 1999 04:52:05 -0500 (EST) Original-Received: from heart.cs.rochester.edu ([24.24.58.252]) by mailout1.nyroc.rr.com (Post.Office MTA v3.5.3 release 223 ID# 0-59787U250000L250000S0V35) with ESMTP id com for ; Mon, 22 Nov 1999 04:50:12 -0500 Original-Received: (from zsh@localhost) by heart.cs.rochester.edu (8.9.3/8.9.3) id EAA08052; Mon, 22 Nov 1999 04:51:24 -0500 Original-To: Gnus Mailing List X-Attribution: ZSH X-Face: 'IF:e51ib'Qbl^(}l^&4-J`'P!@[4~O|&k#:@Gld#b/]oMq&`&FVY._3+b`mzp~Jeve~/#/ ERD!OTe<86UhyN=l`mrPY)M7_}`Ktt\K+58Z!hu7>qU,i.N7TotU[FYE(f1;}`g2xj!u*l`^&=Q!g{ *q|ddto|nkt"$r,K$[)"|6,elPH= GJ6Q Original-Lines: 16 User-Agent: Gnus/5.070099 (Pterodactyl Gnus v0.99) XEmacs/21.2 (Shinjuku) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:27139 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:27139 --=-=-= 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 --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=w3-zsh1.diff 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) --=-=-=--