* elmo-imap4.el (elmo-imap4-find-next-line): Ditto.
+2001-06-11 Yuuichi Teranishi <teranisi@gohome.org>
+
+ * elmo-pop3.el (elmo-pop3-process-filter): Don't use floor nor float.
+
+ * elmo-imap4.el (elmo-imap4-find-next-line): Ditto.
+
2001-06-10 Yuuichi Teranishi <teranisi@gohome.org>
* elmo.el (elmo-folder-move-messages): Bind
(progn
(if (and elmo-imap4-display-literal-progress
(> (string-to-number (match-string 1))
- elmo-display-retrieval-progress-threshold))
+ (min elmo-display-retrieval-progress-threshold 100)))
(elmo-display-progress
'elmo-display-retrieval-progress
(format "Retrieving (%d/%d bytes)..."
(- (point-max) (point))
(string-to-number (match-string 1)))
- (floor (* (/ (float (- (point-max) (point)))
- (string-to-number (match-string 1))) 100))))
+ (/ (- (point-max) (point))
+ (/ (string-to-number (match-string 1)) 100))))
nil)
(goto-char (+ (point) (string-to-number (match-string 1))))
(elmo-imap4-find-next-line))
(insert output)
(if (and elmo-pop3-total-size
(> elmo-pop3-total-size
- elmo-display-retrieval-progress-threshold))
+ (min elmo-display-retrieval-progress-threshold 100)))
(elmo-display-progress
'elmo-display-retrieval-progress
(format "Retrieving (%d/%d bytes)..."
(buffer-size)
elmo-pop3-total-size)
- (floor (* (/ (float (buffer-size))
- elmo-pop3-total-size) 100))))))
+ (/ (buffer-size) (/ elmo-pop3-total-size 100))))))
(defun elmo-pop3-auth-user (session)
(let ((process (elmo-network-session-process-internal session)))