[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

some issues with message expiration



Hi all,

I'm playing around a bit the message expiration in Wanderlust; in theory, it's
a quite useful feature, as it enables me to automatically delete/refile old
messages. However, it does not seem to work very well with me, and often
requires me to get into a situation where I need to restart emacs(!).

In my .wl, I have something like:
--8<---------------cut here---------------start------------->8---
(setq
  wl-expire-alist
  '(
     ("^\\.rss\\.Tech$" (date 7) trash)     
     ("^\\.system$"     (date 3) remove)    
     ("^\\.junk$"       (date 7)  ".trash")  ;; plan B
     ("^\\.trash$"      (date 14) remove))) 
--8<---------------cut here---------------end--------------->8---

wl-expire-alist is documented as:

,----
| Documentation:
| Alist to decide a policy for expire.
| Each element is (folder-regexp (number or date) policy).
| 
| The policy is one of the followings:
| 'remove  : remove messsage.
| 'trash   : refile `wl-trash-folder'.
| string   : refile string folder.
| function : call function.
| 
| ex.
| '(("^\\+ml/wl$"		(number 500 510) wl-expire-archive-number1 t)
|   ("^\\+ml/"		(number 300 305) wl-expire-archive-number2)
|   ("^\\+outbox$"		(number 300) "$outbox;lha")
|   ("^\\(\\+tmp\\|\\+trash\\)$"	(date 7) remove)
|   ("^\\+misc$"		(date 14) trash))
`----

A couple of problems:
- when trying to expire folders to 'trash', I get some error suggesting that
  'trash' is not known. However, wl-trash-folder is set.
- when trying to expire my 'System' folder, I get
     "Wrong type argument: listp, nil" 
  but
  when I try to enter the folder afterwards I get:
     "Format specifier doesn't match argument type", after which WL (or emacs)
  is not very useful anymore, and tells me
  "Symbol's value as variable is void: nil". After that, I cannot even close
  emacs properly, but have to kill it.

Has the expire functionality maybe bit-rotted a bit? Or am I doing something
very wrong? I'd really like to use this useful feature...
  
Note, I'm on the latest WL (Dave Abraham's repo), and CVS emacs (I saw the same
behavior with Emacs 23 though.  

Thanks,
Dirk.

-- 
Dirk-Jan C. Binnema                  Helsinki, Finland
e:djcb@djcbsoftware.nl           w:www.djcbsoftware.nl
pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C