;;
;;; Commentary:
-;;
+;;
;; Origin of IMAP parser part is imap.el, included in Gnus.
;;
;; Copyright (C) 1998, 1999, 2000
(or (elmo-imap4-read-ok session tag)
(signal 'elmo-authenticate-error '(elmo-imap4-auth-login)))
(setq elmo-imap4-status 'auth)))
-
+
(luna-define-method
elmo-network-initialize-session-buffer :after ((session
elmo-imap4-session) buffer)
(starttls-negotiate process)))))
(luna-define-method elmo-network-authenticate-session ((session
- elmo-imap4-session))
+ elmo-imap4-session))
(with-current-buffer (process-buffer
(elmo-network-session-process-internal session))
(let* ((auth (elmo-network-session-auth-internal session))
(concat "(" (downcase (buffer-substring
(point) (point-max)))
")"))))
- (ACL (elmo-imap4-parse-acl))
+ (ACL (elmo-imap4-parse-acl))
(t (case (prog1 (elmo-read (current-buffer))
(elmo-imap4-forward))
(EXISTS (list 'exists token))
(setq text (buffer-substring (point) (point-max)))
(list 'bad (list code text)))))
(t (list 'garbage (buffer-string)))))))))
-
+
(defun elmo-imap4-parse-bye ()
(let (code text)
(when (eq (char-after (point)) ?\[)
(list 'bodystructure (elmo-imap4-parse-body)))))
(setq list (cons element list))))
(and elmo-imap4-fetch-callback
- (funcall elmo-imap4-fetch-callback
+ (funcall elmo-imap4-fetch-callback
list elmo-imap4-fetch-callback-data))
(list 'fetch list))))
(push (elmo-imap4-parse-nstring) body);; body-fld-md5
(setq body
(append (elmo-imap4-parse-body-ext) body)));; body-ext-1part..
-
+
(assert (eq (char-after (point)) ?\)))
(elmo-imap4-forward)
(nreverse body)))))
(concat
(if elmo-imap4-use-uid "uid ")
(cdr
- (car
+ (car
(elmo-imap4-make-number-set-list
from-msgs)))
" ")
(luna-define-method elmo-folder-expand-msgdb-path ((folder
elmo-localdir-folder))
- (expand-file-name
+ (expand-file-name
(mapconcat
'identity
- (mapcar
+ (mapcar
'elmo-replace-string-as-filename
(split-string (elmo-localdir-folder-dir-name-internal folder)
"/"))
(elmo-msgdb-append-element
overview entity))
(setq message-id (elmo-msgdb-overview-entity-get-id entity))
- (setq number-alist
- (elmo-msgdb-number-add number-alist
- num
- message-id))
+ (setq number-alist
+ (elmo-msgdb-number-add number-alist
+ num
+ message-id))
(setq seen (member message-id seen-list))
(if (setq gmark (or (elmo-msgdb-global-mark-get message-id)
(if (elmo-file-cache-exists-p message-id) ; XXX
(defsubst elmo-localdir-list-subr (folder &optional nonsort)
(let ((flist (mapcar 'string-to-int
- (directory-files
+ (directory-files
(elmo-localdir-folder-directory-internal folder)
nil "^[0-9]+$" t)))
(killed (elmo-msgdb-killed-list-load (elmo-folder-msgdb-path folder))))
(expand-file-name (int-to-string number)
(elmo-localdir-folder-directory-internal folder))
condition number number-list))
-
+
(luna-define-method elmo-folder-search ((folder elmo-localdir-folder)
condition &optional numbers)
(let* ((msgs (or numbers (elmo-folder-list-messages folder)))
(/ (* new-number 100) total)))
(setq onum (car flist))
(when (not (eq onum new-number)) ; why \=() is wrong..
- (elmo-bind-directory
+ (elmo-bind-directory
dir
;; xxx nfs,hardlink
(rename-file (int-to-string onum) (int-to-string new-number) t))
- ;; update overview
- (elmo-msgdb-overview-entity-set-number
+ ;; update overview
+ (elmo-msgdb-overview-entity-set-number
(elmo-msgdb-overview-get-entity onum msgdb)
new-number)
;; update number-alist
;;
;;; Code:
-;;
+;;
(require 'luna)
num-pair result)
(dolist (mark-pair (or elmo-msgdb-global-mark-alist
(setq elmo-msgdb-global-mark-alist
- (elmo-object-load
+ (elmo-object-load
(expand-file-name
elmo-msgdb-global-mark-filename
elmo-msgdb-dir)))))
(if (not ignore-cache)
(elmo-make-fetch-strategy
'entire
- ;; ...But ignore current section cache and re-fetch
+ ;; ...But ignore current section cache and re-fetch
;; if section cache.
(not (eq (elmo-file-cache-status cache-file) 'section))
;; Save cache.
'read)
;; Mark as read duplicates.
(elmo-folder-mark-as-read folder to-be-deleted))
- (t
+ (t
;; Do nothing.
(setq to-be-deleted nil)))
(elmo-folder-set-msgdb-internal folder
If update process is interrupted, return nil."
(let ((killed-list (elmo-folder-killed-list-internal folder))
(before-append t)
- number-alist mark-alist
+ number-alist mark-alist
old-msgdb diff diff-2 delete-list new-list new-msgdb mark
seen-list crossed after-append)
(setq old-msgdb (elmo-folder-msgdb folder))
folder
(eq 'visible-only ignore-msgdb))
(unless ignore-msgdb
- (sort (mapcar
- 'car
+ (sort (mapcar
+ 'car
number-alist)
'<))))
(message "Checking folder diff...done")
2001-09-26 Kenichi OKADA <okada@opaopa.org>
+ * wl-vars.el (wl-fcc-force-as-read): New variable.
+ * wl-draft.el (wl-draft-do-fcc): If `wl-fcc-force-as-read' is non-nil,
+ mark copied message as read.
+
+2001-09-26 Kenichi OKADA <okada@opaopa.org>
+
* wl-draft.el (wl-draft-send-mail-with-pop-before-smtp): Fixed.
2001-09-26 TAKAHASHI Kaoru <kaoru@kaisei.org>
(if (elmo-folder-append-buffer
(wl-folder-get-elmo-folder
(eword-decode-string (car fcc-list)))
- id)
+ (null wl-fcc-force-as-read))
(wl-draft-write-sendlog 'ok 'fcc nil (car fcc-list) id)
(wl-draft-write-sendlog 'failed 'fcc nil (car fcc-list) id))
(setq fcc-list (cdr fcc-list)))))
:group 'wl-draft
:group 'wl-pref)
+(defcustom wl-fcc-force-as-read nil
+ "*If non-nil, mark copied message as read."
+ :type 'boolean
+ :group 'wl-draft
+ :group 'wl-pref)
+
(defcustom wl-bcc nil
"*Blind Carbon Copy."
:type '(choice (const :tag "disable" nil)