instead of `int-to-string'.
* elmo-archive.el (elmo-archive-message-fetch-internal)
(elmo-archive-folder-message-make-temp-files)
(elmo-archive-folder-append-buffer)
(elmo-folder-delete-messages-internal)
(elmo-archive-msgdb-create-entity)
(elmo-archive-msgdb-create-as-numlist-subr2): Ditto.
* elmo-util.el (elmo-cache-expire-by-age): Ditto.
* elmo-flag.el (elmo-global-flag-set-internal): Ditto.
* elmo-file.el (elmo-folder-message-make-temp-files): Ditto.
* elmo-imap4.el (elmo-imap4-make-number-set-list)
(elmo-folder-list-subfolders): Ditto.
* elmo-localdir.el (elmo-message-file-name)
(elmo-folder-message-make-temp-files)
(elmo-localdir-msgdb-create-entity)
(elmo-folder-append-messages-*-localdir)
(elmo-folder-pack-numbers): Ditto.
* elmo-maildir.el (elmo-folder-message-make-temp-files): Ditto.
* elmo-map.el (elmo-location-map-key): Ditto.
* elmo-nntp.el (elmo-nntp-folder-postfix)
(elmo-nntp-folder-list-subfolders)
(elmo-nntp-folder-msgdb-create): Ditto.
2010-01-04 TAKAHASHI Kaoru <kaoru@kaisei.org>
+ * elmo.el (elmo-folder-confirm-appends): Use `number-to-string'
+ instead of `int-to-string'.
+ * elmo-archive.el (elmo-archive-message-fetch-internal)
+ (elmo-archive-folder-message-make-temp-files)
+ (elmo-archive-folder-append-buffer)
+ (elmo-folder-delete-messages-internal)
+ (elmo-archive-msgdb-create-entity)
+ (elmo-archive-msgdb-create-as-numlist-subr2): Ditto.
+ * elmo-util.el (elmo-cache-expire-by-age): Ditto.
+ * elmo-flag.el (elmo-global-flag-set-internal): Ditto.
+ * elmo-file.el (elmo-folder-message-make-temp-files): Ditto.
+ * elmo-imap4.el (elmo-imap4-make-number-set-list)
+ (elmo-folder-list-subfolders): Ditto.
+ * elmo-localdir.el (elmo-message-file-name)
+ (elmo-folder-message-make-temp-files)
+ (elmo-localdir-msgdb-create-entity)
+ (elmo-folder-append-messages-*-localdir)
+ (elmo-folder-pack-numbers): Ditto.
+ * elmo-maildir.el (elmo-folder-message-make-temp-files): Ditto.
+ * elmo-map.el (elmo-location-map-key): Ditto.
+ * elmo-nntp.el (elmo-nntp-folder-postfix)
+ (elmo-nntp-folder-list-subfolders)
+ (elmo-nntp-folder-msgdb-create): Ditto.
+
* elmo.el (elmo-crosspost-message-alist-save): Don't use
`function' for `lambda'.
* elmo-archive.el (elmo-archive-folder-list-subfolders)
(prefix (elmo-archive-folder-archive-prefix-internal folder))
(method (elmo-archive-get-method type 'cat))
(args (list arc (elmo-concat-path
- prefix (int-to-string number)))))
+ prefix (number-to-string number)))))
(and (file-exists-p arc)
(as-binary-process
(elmo-archive-call-method method args t))
(elmo-make-directory (directory-file-name tmp-dir))))
(setq newfile (elmo-concat-path
prefix
- (int-to-string next-num)))
+ (number-to-string next-num)))
(elmo-bind-directory
tmp-dir
(if (and (or (functionp method) (car method))
(n-method (elmo-archive-get-method type 'ext))
(tmp-msgs (mapcar (lambda (x) (elmo-concat-path
prefix
- (int-to-string x))) numbers))
+ (number-to-string x))) numbers))
number)
;; Expand files in the tmp-dir-src.
(elmo-bind-directory
tmp-dir-src)
(expand-file-name
(if start-number
- (int-to-string number)
+ (number-to-string number)
(file-name-nondirectory tmp-file))
tmp-dir-dst))
(if start-number (incf number)))
(n-method (elmo-archive-get-method type 'rm))
(numbers (mapcar (lambda (x) (elmo-concat-path
prefix
- (int-to-string x)))
+ (number-to-string x)))
numbers)))
(cond ((functionp n-method)
(funcall n-method (cons arc numbers)))
method
archive number type
&optional prefix)
- (let* ((msg (elmo-concat-path prefix (int-to-string number)))
+ (let* ((msg (elmo-concat-path prefix (number-to-string number)))
(arg-list (list archive msg)))
(when (elmo-archive-article-exists-p archive msg type)
;; insert article.
(insert
(mapconcat
'concat
- (mapcar (lambda (x) (elmo-concat-path prefix (int-to-string x))) msgs)
+ (mapcar (lambda (x) (elmo-concat-path prefix (number-to-string x)))
+ msgs)
"\n"))
(as-binary-process (apply 'call-process-region
(point-min) (point-max)
(let* ((type (elmo-archive-folder-archive-type-internal folder))
(arc (elmo-archive-get-archive-name folder))
(method (elmo-archive-get-method type 'cat))
- (args (list arc (elmo-concat-path prefix (int-to-string number)))))
+ (args (list arc (elmo-concat-path prefix (number-to-string number)))))
(elmo-set-work-buf
(when (file-exists-p arc)
(as-binary-process
(elmo-copy-file
(elmo-message-file-name folder number)
(expand-file-name
- (int-to-string (if start-number cur-number number))
+ (number-to-string (if start-number cur-number number))
temp-dir))
(incf cur-number))
temp-dir))
1))
(setq new-file
(expand-file-name
- (int-to-string
+ (number-to-string
(setq new-number
(elmo-flag-folder-max-number-internal flag-folder)))
(elmo-localdir-folder-directory-internal flag-folder)))
(cond ((consp x)
(format "%s:%s" (car x) (cdr x)))
((integerp x)
- (int-to-string x))))
+ (number-to-string x))))
cont-list
","))
set-list)))
(elmo-net-folder-server-internal folder))))
(unless (eq (elmo-net-folder-port-internal folder) elmo-imap4-default-port)
(setq append-serv (concat append-serv ":"
- (int-to-string
+ (number-to-string
(elmo-net-folder-port-internal folder)))))
(setq type (elmo-net-folder-stream-type-internal folder))
(unless (eq (elmo-network-stream-type-symbol type)
(luna-define-method elmo-message-file-name ((folder
elmo-localdir-folder)
number)
- (expand-file-name (int-to-string number)
+ (expand-file-name (number-to-string number)
(elmo-localdir-folder-directory-internal folder)))
(luna-define-method elmo-folder-message-file-number-p ((folder
(dolist (number numbers)
(elmo-copy-file
(expand-file-name
- (int-to-string number)
+ (number-to-string number)
(elmo-localdir-folder-directory-internal folder))
(expand-file-name
- (int-to-string (if start-number cur-number number))
+ (number-to-string (if start-number cur-number number))
temp-dir))
(incf cur-number))
temp-dir))
(defun elmo-localdir-msgdb-create-entity (msgdb dir number)
(elmo-msgdb-create-message-entity-from-file
(elmo-msgdb-message-entity-handler msgdb)
- number (expand-file-name (int-to-string number) dir)))
+ number (expand-file-name (number-to-string number) dir)))
(luna-define-method elmo-folder-msgdb-create ((folder elmo-localdir-folder)
numbers
(elmo-copy-file
(elmo-message-file-name src-folder (car numbers))
(expand-file-name
- (int-to-string
+ (number-to-string
(if same-number (car numbers) next-num))
dir))
;; save flag-table only when src folder's msgdb is loaded.
(elmo-bind-directory
dir
;; xxx nfs,hardlink
- (rename-file (int-to-string old-number)
- (int-to-string new-number) t))
+ (rename-file (number-to-string old-number)
+ (number-to-string new-number) t))
(elmo-message-entity-set-number entity new-number))
(elmo-msgdb-append-entity new-msgdb entity
(elmo-msgdb-flags msgdb old-number))
(elmo-copy-file
(elmo-message-file-name folder number)
(expand-file-name
- (int-to-string (if start-number cur-number number))
+ (number-to-string (if start-number cur-number number))
temp-dir))
(incf cur-number))
temp-dir))
(defmacro elmo-location-map-key (number)
- `(concat "#" (int-to-string ,number)))
+ `(concat "#" (number-to-string ,number)))
(defun elmo-location-map-load (location-map directory)
(elmo-location-map-setup
(if (and port
(null (eq port elmo-nntp-default-port)))
(concat ":" (if (numberp port)
- (int-to-string port) port)))
+ (number-to-string port) port)))
(unless (eq (elmo-network-stream-type-symbol type)
elmo-nntp-default-stream-type)
(elmo-network-stream-type-spec-string type))))
"@" (elmo-net-folder-server-internal folder))))
(unless (eq (elmo-net-folder-port-internal folder) elmo-nntp-default-port)
(setq append-serv (concat append-serv
- ":" (int-to-string
+ ":" (number-to-string
(elmo-net-folder-port-internal folder)))))
(unless (eq (elmo-network-stream-type-symbol
(elmo-net-folder-stream-type-internal folder))
session
(format
"xover %s-%s"
- (int-to-string cur)
- (int-to-string
+ (number-to-string cur)
+ (number-to-string
(+ cur
elmo-nntp-overview-fetch-chop-length))))
(with-current-buffer (elmo-network-session-buffer session)
"Expire cache file by age.
Optional argument DAYS specifies the days to expire caches."
(interactive)
- (let ((age (or (and days (int-to-string days))
+ (let ((age (or (and days (number-to-string days))
(and (interactive-p)
(read-from-minibuffer
(format "Enter days (%s): "
elmo-cache-expire-default-age)))
- (int-to-string elmo-cache-expire-default-age)))
+ (number-to-string elmo-cache-expire-default-age)))
(dirs (directory-files
elmo-cache-directory
t "^[^\\.]"))
(catch 'end
(while t
(setq in (read-from-minibuffer "Update number: "
- (int-to-string in))
+ (number-to-string in))
in (string-to-number in))
(if (< len in)
(throw 'end len))