projects
/
elisp
/
gnus.git-
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Synch with `t-gnus-6_14'.
[elisp/gnus.git-]
/
lisp
/
webmail.el
diff --git
a/lisp/webmail.el
b/lisp/webmail.el
index
5a845c5
..
38638ef
100644
(file)
--- a/
lisp/webmail.el
+++ b/
lisp/webmail.el
@@
-77,8
+77,8
@@
(login-url
"http://%s/cgi-bin/dologin?login=%s&passwd=%s&enter=Sign+in&sec=no&curmbox=ACTIVE&_lang=&js=yes&id=2&tw=-10000&beta="
webmail-aux user password)
(login-url
"http://%s/cgi-bin/dologin?login=%s&passwd=%s&enter=Sign+in&sec=no&curmbox=ACTIVE&_lang=&js=yes&id=2&tw=-10000&beta="
webmail-aux user password)
- (login-snarf . webmail-hotmail-login)
- (list-url "%s" webmail-aux)
+ ;;(login-snarf . webmail-hotmail-login)
+ ;;(list-url "%s" webmail-aux)
(list-snarf . webmail-hotmail-list)
(article-snarf . webmail-hotmail-article)
(trash-url
(list-snarf . webmail-hotmail-list)
(article-snarf . webmail-hotmail-article)
(trash-url
@@
-278,7
+278,7
@@
(webmail-fetch-form (car xurl) (webmail-eval (cdr xurl))))
(t
(nnweb-insert (apply 'format (webmail-eval xurl)))))))
(webmail-fetch-form (car xurl) (webmail-eval (cdr xurl))))
(t
(nnweb-insert (apply 'format (webmail-eval xurl)))))))
-
+
(defun webmail-init ()
"Initialize buffers and such."
(if (gnus-buffer-live-p webmail-buffer)
(defun webmail-init ()
"Initialize buffers and such."
(if (gnus-buffer-live-p webmail-buffer)
@@
-337,6
+337,7
@@
(url-confirmation-func (if (memq 'post webmail-paranoid)
'webmail-url-confirmation-func
url-confirmation-func))
(url-confirmation-func (if (memq 'post webmail-paranoid)
'webmail-url-confirmation-func
url-confirmation-func))
+ (url-http-silence-on-insecure-redirection t)
url-cookie-storage url-cookie-secure-storage
url-cookie-confirmation
item id (n 0))
url-cookie-storage url-cookie-secure-storage
url-cookie-confirmation
item id (n 0))
@@
-406,7
+407,7
@@
(webmail-error "login@1"))
(goto-char (point-min))
(if (re-search-forward
(webmail-error "login@1"))
(goto-char (point-min))
(if (re-search-forward
- "\\(/cgi-bin/HoTMaiL\\?[^\"]*curmbox=ACTIVE[^\"]*\\)" nil t)
+ "\\(/cgi-bin/HoTMaiL\\?[^\"]*a=b[^\"]*\\)" nil t)
(setq webmail-aux (concat "http://" site (match-string 1)))
(webmail-error "login@2"))))
(setq webmail-aux (concat "http://" site (match-string 1)))
(webmail-error "login@2"))))
@@
-462,7
+463,10
@@
(goto-char (point-min))
(insert "\n\n")
(if (not (looking-at "\n*From "))
(goto-char (point-min))
(insert "\n\n")
(if (not (looking-at "\n*From "))
- (insert "From nobody " (current-time-string) "\n"))
+ (insert "From nobody " (current-time-string) "\n")
+ (forward-line))
+ (insert "X-Gnus-Webmail: " (symbol-value 'user)
+ "@" (symbol-name webmail-type) "\n")
(mm-append-to-file (point-min) (point-max) file))
(defun webmail-hotmail-article-old (file id)
(mm-append-to-file (point-min) (point-max) file))
(defun webmail-hotmail-article-old (file id)
@@
-556,8
+560,10
@@
(goto-char (point-min))
;; Some blank line to seperate mails.
(insert "\n\nFrom nobody " (current-time-string) "\n")
(goto-char (point-min))
;; Some blank line to seperate mails.
(insert "\n\nFrom nobody " (current-time-string) "\n")
+ (insert "X-Gnus-Webmail: " (symbol-value 'user)
+ "@" (symbol-name webmail-type) "\n")
(if id
(if id
- (insert (format "Message-ID: <%s@hotmail.com>\n" id)))
+ (insert (format "X-Message-ID: <%s@hotmail.com>\n" id)))
(unless (looking-at "$")
(if (search-forward "\n\n" nil t)
(forward-line -1)
(unless (looking-at "$")
(if (search-forward "\n\n" nil t)
(forward-line -1)
@@
-685,8
+691,10
@@
(goto-char (point-min))
;; Some blank line to seperate mails.
(insert "\n\nFrom nobody " (current-time-string) "\n")
(goto-char (point-min))
;; Some blank line to seperate mails.
(insert "\n\nFrom nobody " (current-time-string) "\n")
+ (insert "X-Gnus-Webmail: " (symbol-value 'user)
+ "@" (symbol-name webmail-type) "\n")
(if id
(if id
- (insert (format "Message-ID: <%s@yahoo.com>\n" id)))
+ (insert (format "X-Message-ID: <%s@yahoo.com>\n" id)))
(unless (looking-at "$")
(if (search-forward "\n\n" nil t)
(forward-line -1)
(unless (looking-at "$")
(if (search-forward "\n\n" nil t)
(forward-line -1)
@@
-859,8
+867,10
@@
(goto-char (point-min))
;; Some blank line to seperate mails.
(insert "\n\nFrom nobody " (current-time-string) "\n")
(goto-char (point-min))
;; Some blank line to seperate mails.
(insert "\n\nFrom nobody " (current-time-string) "\n")
+ (insert "X-Gnus-Webmail: " (symbol-value 'user)
+ "@" (symbol-name webmail-type) "\n")
(if id
(if id
- (insert (format "Message-ID: <%s@%s>\n" id webmail-address)))
+ (insert (format "X-Message-ID: <%s@%s>\n" id webmail-address)))
(unless (looking-at "$")
(if (search-forward "\n\n" nil t)
(forward-line -1)
(unless (looking-at "$")
(if (search-forward "\n\n" nil t)
(forward-line -1)
@@
-985,8
+995,10
@@
(goto-char (point-min))
;; Some blank line to seperate mails.
(insert "\n\nFrom nobody " (current-time-string) "\n")
(goto-char (point-min))
;; Some blank line to seperate mails.
(insert "\n\nFrom nobody " (current-time-string) "\n")
+ (insert "X-Gnus-Webmail: " (symbol-value 'user)
+ "@" (symbol-name webmail-type) "\n")
(if id
(if id
- (insert (format "Message-ID: <%s@%s>\n" id webmail-address)))
+ (insert (format "X-Message-ID: <%s@%s>\n" id webmail-address)))
(unless (looking-at "$")
(if (search-forward "\n\n" nil t)
(forward-line -1)
(unless (looking-at "$")
(if (search-forward "\n\n" nil t)
(forward-line -1)
@@
-1065,6
+1077,8
@@
(replace-match "\n"))
(goto-char (point-min))
(insert "\n\nFrom nobody " (current-time-string) "\n")
(replace-match "\n"))
(goto-char (point-min))
(insert "\n\nFrom nobody " (current-time-string) "\n")
+ (insert "X-Gnus-Webmail: " (symbol-value 'user)
+ "@" (symbol-name webmail-type) "\n")
(mm-append-to-file (point-min) (point-max) file)))
(provide 'webmail)
(mm-append-to-file (point-min) (point-max) file)))
(provide 'webmail)