R.A. Epigonos et al.

[wanderlust] 肥大化する~/elmo/cacheを制御するelmo-cache-expire-by-*

wanderlustでメールを使っていると、いつの間にかサイズが大きくなる~/elmo/cacheを削除する。

M-x describe-variableで関連する変数の内容を確認。

elmo-cache-expire-default-method is a variable defined in `elmo-vars.el'.
Its value is "size"

Documentation:
Default expiration method.
elmo-cache-expire-default-age is a variable defined in `elmo-vars.el'.
Its value is 50

Documentation:
Cache expiration age (days).
elmo-cache-expire-default-size is a variable defined in `elmo-vars.el'.
Its value is 30000

Documentation:
Cache expiration disk size (Kilo bytes).  This must be float value.

現在のcacheディレクトリのサイズを確認。上の設定が効いていることがわかる。

$ du -sh ~/.elmo/cache/
32M     /*******/.elmo/cache/

wanderlustの起動時に自動的に削除するには以下の内容を~/.wlに追記。

;;days since last access, i.e atime. (default: 50)
(elmo-cache-expire-by-age  14)

;;kilobytes (default 30000)
(elmo-cache-expire-by-size 1024)

リファレンス

  1. Emacs dot.emacs/variables
  2. emacs 設定 値 - Google 検索
  3. EmacsWiki: Wl Faq
  4. Wanderlust -- Yet Another Message Interface On Emacsen --: 5.3.1 キャッシュファイル
  5. wl / ChangeLog::hjk
  6. elmo/cache をクリアにする

ソーシャルブックマーク

  1. はてなブックマーク
  2. Google Bookmarks
  3. del.icio.us

ChangeLog

  1. Posted: 2010-04-29T22:27:59+09:00
  2. Modified: 2010-04-29T22:27:59+09:00
  3. Generated: 2023-08-27T23:09:13+09:00