• Email archival

    From Samuel Christie@shcv@sdf.org to comp.misc on Fri Oct 7 15:25:18 2022
    From Newsgroup: comp.misc

    Can anyone recommend a program for archiving email?

    E.g., scan a maildir for emails older than a certain date, and move them
    to a different maildir?

    Seems like it should be a common thing, but my searches have been
    unsuccessful. I was hoping there would be a standard utility included in package managers, but if not I guess I can write one myself...
    --- Synchronet 3.19c-Linux NewsLink 1.113
  • From Adam Sampson@ats@offog.org to comp.misc on Fri Oct 7 20:42:19 2022
    From Newsgroup: comp.misc

    Samuel Christie <shcv@sdf.org> writes:

    E.g., scan a maildir for emails older than a certain date, and move
    them to a different maildir?

    Since the messages in a Maildir are just individual files, you can do it
    with "find -mtime" -- just move any files older than a certain date to
    the equivalent paths in the archive Maildir. Here's a wrapper script I
    wrote to do it for some of my Maildirs many years ago:

    http://offog.org/git/misccode/archive-maildir

    (These days I'd probably see if I could use -execdir...)
    --
    Adam Sampson <ats@offog.org> <http://offog.org/>
    --- Synchronet 3.19c-Linux NewsLink 1.113
  • From Vladimir =?utf-8?Q?Vu=C4=8Di=C4=87evi=C4=87?=@vladimir@vucicevic.in.rs to comp.misc on Sun Oct 9 10:45:09 2022
    From Newsgroup: comp.misc

    ... I am Locutus of Borg, Samuel Christie, resistance is futile ...
    Can anyone recommend a program for archiving email?

    E.g., scan a maildir for emails older than a certain date, and move them
    to a different maildir?

    Seems like it should be a common thing, but my searches have been unsuccessful. I was hoping there would be a standard utility included in package managers, but if not I guess I can write one myself...

    You should try Mailstore and see if it suits your needs.

    https://www.mailstore.com/en/products/mailstore-home/
    --
    ... Vladimir Vučićević aka. Bachi
    ~~~ http://www.bachi.in.rs/ <<<<>>>> vladimir@vucicevic.in.rs
    It's nice to be important, but it's more important to be nice...
    --- Synchronet 3.19c-Linux NewsLink 1.113
  • From Javier@invalid@invalid.invalid to comp.misc on Wed Oct 12 01:57:08 2022
    From Newsgroup: comp.misc

    Samuel Christie <shcv@sdf.org> wrote:
    Can anyone recommend a program for archiving email?

    E.g., scan a maildir for emails older than a certain date, and move them
    to a different maildir?

    Seems like it should be a common thing, but my searches have been unsuccessful. I was hoping there would be a standard utility included in package managers, but if not I guess I can write one myself...

    You have fdm. AFAIK the most powerful tool for dealing with mail.
    In addition to getting mail from an POP/IMAP server, it can also get
    mails from a maildir. It should also be capable of dealing with a
    news spool.

    http://ports.su/mail/fdm

    fdm-1.9p0 – fetch, filter and deliver mail
    Description

    fdm is a simple, lightweight replacement for mail fetch, filter and
    delivery programs such as fetchmail and procmail. It can fetch using
    POP3 or IMAP (with SSL) or from stdin, and deliver to a pipe, file,
    maildir, mbox or SMTP server, based on regexps.
    --- Synchronet 3.19c-Linux NewsLink 1.113