;; Author: Shuhei KOBAYASHI <shuhei@aqua.ocn.ne.jp>
;; Keywords: SCRAM-MD5, HMAC-MD5, SASL, IMAP, POP, ACAP
+;; This file is part of FLIM (Faithful Library about Internet Message).
+
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
;; published by the Free Software Foundation; either version 2, or
(defun scram-make-unique-nonce () ; 8*OCTET, globally unique.
;; For example, concatenated string of process-identifier, system-clock,
;; sequence-number, random-number, and domain-name.
- (concat "foo" "bar" "baz" "@" (system-name))) ; TEMPORARY
+ (concat "<" "foo" "bar" "baz" "@" (system-name) ">")) ; TEMPORARY
(defun scram-xor-string (str1 str2)
;; (length str1) == (length str2) == (length dst) == 16 (in SCRAM-MD5)
(format "AUTH mechanism %s not available" auth)))))
;; ONEX --- One message transaction only (sendmail extension?)
-;; (if (or (memq 'onex extensions)
-;; (memq 'xone extensions))
-;; (progn
-;; (smtp-send-command process "ONEX")
-;; (setq response (smtp-read-response process))
-;; (if (or (null (car response))
-;; (not (integerp (car response)))
-;; (>= (car response) 400))
-;; (throw 'done (car (cdr response))))))
+;;; (if (or (memq 'onex extensions)
+;;; (memq 'xone extensions))
+;;; (progn
+;;; (smtp-send-command process "ONEX")
+;;; (setq response (smtp-read-response process))
+;;; (if (or (null (car response))
+;;; (not (integerp (car response)))
+;;; (>= (car response) 400))
+;;; (throw 'done (car (cdr response))))))
;; VERB --- Verbose (sendmail extension?)
-;; (if (and smtp-debug-info
-;; (or (memq 'verb extensions)
-;; (memq 'xvrb extensions)))
-;; (progn
-;; (smtp-send-command process "VERB")
-;; (setq response (smtp-read-response process))
-;; (if (or (null (car response))
-;; (not (integerp (car response)))
-;; (>= (car response) 400))
-;; (throw 'done (car (cdr response))))))
+;;; (if (and smtp-debug-info
+;;; (or (memq 'verb extensions)
+;;; (memq 'xvrb extensions)))
+;;; (progn
+;;; (smtp-send-command process "VERB")
+;;; (setq response (smtp-read-response process))
+;;; (if (or (null (car response))
+;;; (not (integerp (car response)))
+;;; (>= (car response) 400))
+;;; (throw 'done (car (cdr response))))))
;; XUSR --- Initial (user) submission (sendmail extension?)
-;; (if (memq 'xusr extensions)
-;; (progn
-;; (smtp-send-command process "XUSR")
-;; (setq response (smtp-read-response process))
-;; (if (or (null (car response))
-;; (not (integerp (car response)))
-;; (>= (car response) 400))
-;; (throw 'done (car (cdr response))))))
+;;; (if (memq 'xusr extensions)
+;;; (progn
+;;; (smtp-send-command process "XUSR")
+;;; (setq response (smtp-read-response process))
+;;; (if (or (null (car response))
+;;; (not (integerp (car response)))
+;;; (>= (car response) 400))
+;;; (throw 'done (car (cdr response))))))
;; MAIL FROM:<sender>
(smtp-send-command