* elmo-archive.el (elmo-archive-get-archive-name): Cause an error when
authorteranisi <teranisi>
Wed, 25 Jul 2001 04:26:46 +0000 (04:26 +0000)
committerteranisi <teranisi>
Wed, 25 Jul 2001 04:26:46 +0000 (04:26 +0000)
unknown archive type is specified.

elmo/ChangeLog
elmo/elmo-archive.el

index b907103..71b5980 100644 (file)
@@ -1,3 +1,8 @@
+2001-07-25  Yuuichi Teranishi  <teranisi@gohome.org>
+
+       * elmo-archive.el (elmo-archive-get-archive-name): Cause an error when
+       unknown archive type is specified.
+
 2001-07-23  Yuuichi Teranishi  <teranisi@gohome.org>
 
        * elmo-shimbun.el (elmo-folder-open-internal): Fixed.
index e6b768e..5209923 100644 (file)
@@ -344,6 +344,9 @@ TYPE specifies the archiver's symbol."
                 (elmo-archive-folder-archive-type-internal
                  folder)))
        filename dbdir)
+    (unless suffix
+      (error "Unknown archiver type: %s"
+            (elmo-archive-folder-archive-type-internal folder)))
     (if elmo-archive-treat-file
        (if (string-match (concat (regexp-quote suffix) "$")
                          (elmo-archive-folder-archive-name-internal folder))