<<< Date Index >>>     <<< Thread Index >>>

Re: Archiving?



On 17/11/2004 at 09:25,
Lennart Andersen <lennart@xxxxxxxxxx> wrote:

> Is there a way for me to automate archiving in mutt? I am using mbox file
> format, some are getting really big.

Think about compressed folders too.


  # My .muttrc

  [...]

  open-hook \\.gz$ "gzip -cd %f > %t"
  close-hook \\.gz$ "gzip -c %t > %f"
  append-hook \\.gz$ "gzip -c %t >> %f"

  folder-hook . 'macro index ,s T~r>7d!~F' # Select to delete (move) all > 7 
days (not flaged ones)
  folder-hook . 'macro index ,c <tag-prefix>s=archive.gz\n' # compress previous 
selected (taggled) messages

  [...]


Adjust ',s' to match your exact select criteria. Then type ',s' and ',c' to
move old messages into a compressed folder (archive.gz).


-- 
Douglas Augusto