"Fossies" - the Fresh Open Source Software Archive

Member "archivemail-0.9.0/examples/archivemail_all" (13 Feb 2009, 1014 Bytes) of package /linux/privat/old/archivemail-0.9.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/sh
    2 #
    3 # This is an example shell script I use from my crontab(5) file to selectively
    4 # archive some of my mailboxes. Most of these mailboxes come directly from 
    5 # procmail and are in maildir-format -- not that it should really matter.
    6 #
    7 # I probably could have done them all as:
    8 #    $ARCMAIL $HOME/Mail/* 
    9 # ...if I had enough disk space to keep mail uncompressed for 180 days :)
   10 #
   11 set -e
   12 
   13 ARCMAIL="/usr/local/bin/archivemail --quiet --output-dir=$HOME/Mail/Archive/ "
   14 
   15 $ARCMAIL --days 14 $HOME/Mail/debian-user \
   16                    $HOME/Mail/linux-kernel \
   17                    $HOME/Mail/python-list \
   18                    $HOME/Mail/spam-l
   19 
   20 $ARCMAIL --days 30 --delete $HOME/Mail/duplicates
   21 
   22 $ARCMAIL --days 90 $HOME/Mail/bugtraq \
   23                    $HOME/Mail/debian-devel \
   24                    $HOME/Mail/debian-mentors \
   25                    $HOME/Mail/spam 
   26 
   27 $ARCMAIL $HOME/Mail/cm-melb \
   28          $HOME/Mail/exsouthrock \
   29          $HOME/Mail/received \
   30          $HOME/Mail/sent \
   31          $HOME/Mail/vim