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

* Re: ANNOUNCE: webmail, a mail source for HoTMaiL
  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  7:53 ` Shenghuo ZHU
  1 sibling, 1 reply; 5+ messages in thread
From: Hrvoje Niksic @ 1999-11-22 10:23 UTC (permalink / raw)


Shenghuo ZHU <zsh@cs.rochester.edu> writes:

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

Just a nitpick design note: don't you think :wmtype keyword should be
just :type?  It is parsed in the context of `webmail' list, so there
can be no namespace collision.  Besides, it is not consistent with
:user (:wmuser?) and :password.


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

* Re: ANNOUNCE: webmail, a mail source for HoTMaiL
  1999-11-22 10:23 ` Hrvoje Niksic
@ 1999-11-22 15:26   ` Shenghuo ZHU
  1999-11-23 15:33     ` Hrvoje Niksic
  0 siblings, 1 reply; 5+ messages in thread
From: Shenghuo ZHU @ 1999-11-22 15:26 UTC (permalink / raw)


>>>>> "Hrvoje" == Hrvoje Niksic <hniksic@iskon.hr> writes:

[...]

Hrvoje> Just a nitpick design note: don't you think :wmtype keyword
Hrvoje> should be just :type?  It is parsed in the context of
Hrvoje> `webmail' list, so there can be no namespace collision.
Hrvoje> Besides, it is not consistent with :user (:wmuser?) and
Hrvoje> :password.

The `webmail' is the type, `wmtype' is a kind of subtype. Maybe I
should use :subtype.

-- 
Shenghuo


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

* Re: ANNOUNCE: webmail, a mail source for HoTMaiL
  1999-11-22  9:51 ANNOUNCE: webmail, a mail source for HoTMaiL Shenghuo ZHU
  1999-11-22 10:23 ` Hrvoje Niksic
@ 1999-11-23  7:53 ` Shenghuo ZHU
  1 sibling, 0 replies; 5+ messages in thread
From: Shenghuo ZHU @ 1999-11-23  7:53 UTC (permalink / raw)


>>>>> "ZSH" == Shenghuo ZHU <zsh@cs.rochester.edu> writes:

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

ZSH> Usage:
ZSH> (push '(webmail :wmtype hotmail :user "your_account" 

[...]

Now it supports mail.yahoo.com. Using `:subtype' instead of `:wmtype'.

-- 
Shenghuo


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

* Re: ANNOUNCE: webmail, a mail source for HoTMaiL
  1999-11-22 15:26   ` Shenghuo ZHU
@ 1999-11-23 15:33     ` Hrvoje Niksic
  0 siblings, 0 replies; 5+ messages in thread
From: Hrvoje Niksic @ 1999-11-23 15:33 UTC (permalink / raw)


Shenghuo ZHU <zsh@cs.rochester.edu> writes:

> >>>>> "Hrvoje" == Hrvoje Niksic <hniksic@iskon.hr> writes:
> 
> [...]
> 
> Hrvoje> Just a nitpick design note: don't you think :wmtype keyword
> Hrvoje> should be just :type?  It is parsed in the context of
> Hrvoje> `webmail' list, so there can be no namespace collision.
> Hrvoje> Besides, it is not consistent with :user (:wmuser?) and
> Hrvoje> :password.
> 
> The `webmail' is the type, `wmtype' is a kind of subtype. Maybe I
> should use :subtype.

Obviously, webmail is the type of a mail source, but in the context of
its proplist, isn't using `:type' quite non-ambiguous?  Anyway,
:subtype is just as fine.  It was a nitpick remark anyway.  :-)


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