Go to the first, previous, next, last section, table of contents.

Archiving Messages

Archiving Messages

M-x wl-summary-archive copies the whole folder to archiving folders. If there are the archiving folders already, only new messages are appended.

You can use wl-archive-alist in order to specify how messages are archived according to their folder names, as in wl-expire-alist. For example:

(setq wl-archive-alist
      '(("^\\+tmp$"     wl-archive-date)
        ("^\\+outbox$"  wl-archive-number2)
        (".*"           wl-archive-number1)))

Each item in the list has the following format:

(folders-regexp  deleting-function)

As you can see, you can only use a function after folders-regexp. Per default, there are three functions:

As inferred from their names, they work similarly to "expire" versions, other than the following points:

These functions are good to archive all messages in a folder by their numbers or by their dates. These are also useful for backup or confirmation purposes before expiration. If you try to re-file them after they are archived, they are deleted but not re-filed.

Per default, the archiving folders to which messages are copied are determined automatically by wl-expire-archive-get-folder-function. You can copy to a specific folder by invoking with a prefix argument, i.e. C-u M-x wl-summary-archive.

Note that this feature has not been seriously tested, because you can simply copy to an archiving folder, for example by wl-summary-copy-region.

The archiving folders are determined by the same logic as in wl-summary-expire; the following customizable variables are relevant:

Customizable Variables

The initial setting is the list shown below:
((".*" wl-archive-number1))
This variable specifies a function that copies to archiving folders. To the function, three arguments are passed: a folder name, a list of messages in the folder, and msgdb information of the summary. Needless to say, you can use your own function.

Go to the first, previous, next, last section, table of contents.