Follow up changes for stream-type.
* wl-draft.el (wl-draft-send-mail-with-pop-before-smtp): Ditto.
(wl-draft-elmo-nntp-send): Ditto.
* wl-vars.el (wl-pop-before-smtp-stream-type): New variable.
(wl-nntp-posting-stream-type): Ditto.
(wl-pop-before-smtp-ssl): Abolished.
(wl-nntp-posting-ssl): Ditto.
* wl-address.el (wl-address-quote-specials): New function.
(wl-address-make-completion-list): Use `wl-address-quote-specials'.
* wl-draft.el (wl-draft-reply): Ditto.
+2000-08-21 Yuuichi Teranishi <teranisi@gohome.org>
+
+ * wl-summary.el (wl-summary-jump-to-msg-by-message-id-via-nntp):
+ Follow up changes for stream-type.
+
+ * wl-draft.el (wl-draft-send-mail-with-pop-before-smtp): Ditto.
+ (wl-draft-elmo-nntp-send): Ditto.
+
+ * wl-vars.el (wl-pop-before-smtp-stream-type): New variable.
+ (wl-nntp-posting-stream-type): Ditto.
+ (wl-pop-before-smtp-ssl): Abolished.
+ (wl-nntp-posting-ssl): Ditto.
+
+ * wl-address.el (wl-address-quote-specials): New function.
+ (wl-address-make-completion-list): Use `wl-address-quote-specials'.
+
+ * wl-draft.el (wl-draft-reply): Ditto.
+
2000-08-16 TAKAHASHI Kaoru <kaoru@kaisei.org>
* wl-draft.el (wl-user-agent-compose): Add (require 'wl) for
(completing-read "To: " cl)
(read-string "To: "))))
+(defun wl-address-quote-specials (word)
+ "Make quoted string of WORD if needed."
+ (if (assq 'specials (std11-lexical-analyze word))
+ (prin1-to-string word)
+ word))
+
(defun wl-address-make-completion-list (address-list)
(let (addr-tuple cl)
(while address-list
(setq cl
(cons
(cons (nth 0 addr-tuple)
- (concat (nth 2 addr-tuple) " <"(nth 0 addr-tuple)">"))
+ (concat
+ (wl-address-quote-specials
+ (nth 2 addr-tuple)) " <"(nth 0 addr-tuple)">"))
cl))
;; nickname completion.
(unless (or (equal (nth 1 addr-tuple) (nth 0 addr-tuple))
(setq cl
(cons
(cons (nth 1 addr-tuple)
- (concat (nth 2 addr-tuple) " <"(nth 0 addr-tuple)">"))
+ (concat
+ (wl-address-quote-specials
+ (nth 2 addr-tuple)) " <"(nth 0 addr-tuple)">"))
cl)))
(setq address-list (cdr address-list)))
cl))
(setq addr (eword-extract-address-components addr))
(cons (nth 1 addr)
(if (nth 0 addr)
- (concat (nth 0 addr) " <" (nth 1 addr) ">")
+ (concat
+ (wl-address-quote-specials (nth 0 addr))
+ " <" (nth 1 addr) ">")
(nth 1 addr))))
(append to cc)))))
(and subject wl-reply-subject-prefix
elmo-default-pop3-server)
(or wl-pop-before-smtp-port
elmo-default-pop3-port)
- (or wl-pop-before-smtp-ssl
- elmo-default-pop3-ssl)))
+ (or wl-pop-before-smtp-stream-type
+ elmo-default-pop3-stream-type)))
(error))
(wl-draft-send-mail-with-smtp))
(or wl-nntp-posting-server elmo-default-nntp-server))
(elmo-default-nntp-port
(or wl-nntp-posting-port elmo-default-nntp-port))
- (elmo-default-nntp-ssl
- (or wl-nntp-posting-ssl elmo-default-nntp-ssl)))
+ (elmo-default-nntp-stream-type
+ (or wl-nntp-posting-stream-type elmo-default-nntp-stream-type)))
(if (not (elmo-plugged-p elmo-default-nntp-server elmo-default-nntp-port))
(wl-draft-set-sent-message 'news 'unplugged
(cons elmo-default-nntp-server
(interactive)
(let* ((msgid (elmo-string (or id (read-from-minibuffer "Message-ID: "))))
newsgroups folder ret
- user server port ssl spec)
+ user server port type spec)
(if server-spec
(if (string-match "^-" server-spec)
(setq spec (elmo-nntp-get-spec server-spec)
user (nth 2 spec)
server (nth 3 spec)
port (nth 4 spec)
- ssl (nth 5 spec))
+ type (nth 5 spec))
(setq server server-spec)))
(when (setq ret (elmo-nntp-get-newsgroup-by-msgid
msgid
(or server elmo-default-nntp-server)
(or user elmo-default-nntp-user)
(or port elmo-default-nntp-port)
- (or ssl elmo-default-nntp-ssl)))
+ (or type elmo-default-nntp-stream-type)))
(setq newsgroups (wl-parse-newsgroups ret))
(setq folder (concat "-" (car newsgroups)
- (elmo-nntp-folder-postfix user server port ssl)))
+ (elmo-nntp-folder-postfix user server port type)))
(catch 'found
(while newsgroups
(if (wl-folder-entity-exists-p (car newsgroups)
wl-folder-newsgroups-hashtb)
(throw 'found
(setq folder (concat "-" (car newsgroups)
- (elmo-nntp-folder-postfix user server port ssl)))))
+ (elmo-nntp-folder-postfix
+ user server port type)))))
(setq newsgroups (cdr newsgroups)))))
(if ret
(wl-summary-jump-to-msg-internal folder nil 'update msgid)
;;
(provide 'wl-util)
-(eval-when-compile
- (provide 'elmo-util))
+;(eval-when-compile
+; (provide 'elmo-util))
(condition-case ()
(require 'tm-edit)
integer string)
:group 'wl)
-(defcustom wl-pop-before-smtp-ssl nil
- "*Non-nil forces using SSL by default for POP-before-SMTP.
-If nil, elmo-default-pop3-ssl is used."
+(defcustom wl-pop-before-smtp-stream-type nil
+ "*Stream type for POP-before-SMTP.
+If nil, elmo-default-pop3-stream-type is used."
:type 'boolean
:group 'wl)
:type '(choice (const :tag "none" nil)
integer string)
:group 'wl)
-(defcustom wl-nntp-posting-ssl nil
- "*Non-nil forces using SSL to post news.
-If nil, elmo-default-nntp-ssl is used."
+(defcustom wl-nntp-posting-stream-type nil
+ "*Stream type for posting Netnews.
+If nil, elmo-default-nntp-stream-type is used."
:type 'boolean
:group 'wl)