diff options
Diffstat (limited to 'archivemail.sgml')
-rw-r--r-- | archivemail.sgml | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/archivemail.sgml b/archivemail.sgml index c62424f..f04591c 100644 --- a/archivemail.sgml +++ b/archivemail.sgml @@ -132,6 +132,23 @@ useful for testing to see how many messages would have been archived. <VarListEntry> <Term> + <Option>-u, --preserve-unread</Option> +</Term> +<ListItem><Para> +Do not archive any messages that have not yet been read. <command/archivemail/ +determines if a message in a <application/mbox/-format or +<application/MH/-format mailbox has been read by looking at the +<application/Status/ header (if it exists). If the status +header is equal to 'RO' or 'OR' then <application/archivemail/ assumes the +message has been read. <command/archivemail/ determines if a +<application/maildir/ message has +been read by looking at the filename. If the filename contains an 'S' after +<filename>:2,</filename> then it assumes the message has been read. +</Para></ListItem> +</VarListEntry> + +<VarListEntry> +<Term> <Option>--delete</Option> </Term> <ListItem><Para> @@ -141,6 +158,15 @@ Delete rather than archive old mail. Use this option with caution! <VarListEntry> <Term> + <Option>--no-compress</Option> +</Term> +<ListItem><Para> +Do not compress any archives using &gzip;. +</Para></ListItem> +</VarListEntry> + +<VarListEntry> +<Term> <Option>--warn-duplicate</Option> </Term> <ListItem><Para> @@ -224,6 +250,12 @@ will use the last-modified file timestamp on <application/MH/ and <application/Maildir/ format mailboxes, or the date on the <application/From/ line on <application/mbox/-format mailboxes. </Para> + +<Para> +<Command/archivemail/ will refuse to operate on mailboxes that are symbolic +links or create tempfiles or archives in world-writable directories. +</Para> + </RefSect1> <RefSect1> @@ -247,6 +279,24 @@ are older than 30 days: </Para> <Para> +To archive all read messages in the mailbox <filename>incoming</filename> that +are older than 180 days to a compressed mailbox called +<filename>incoming_archive.gz</filename> in the current directory: +<screen> +<prompt>bash$ </prompt><userinput>archivemail --preserve-unread incoming</userinput> +</screen> +</Para> + +<Para> +To archive all messages in the mailbox <filename>received</filename> that +are older than 180 days to an uncompressed mailbox called +<filename>received_archive</filename> in the current directory: +<screen> +<prompt>bash$ </prompt><userinput>archivemail --no-compress received</userinput> +</screen> +</Para> + +<Para> To archive all mailboxes in the directory <filename>$HOME/Mail</filename> that are older than 90 days to compressed mailboxes in the <filename>$HOME/Mail/Archive</filename> directory: |