Slashdot Mirror


How Do You Store and Reconcile Email Archives?

heyitsjustme wants to know how you deal with old email. "I delete most of what I get but keep the stuff from friends and relations as an archive. Unfortunately I have these email archives from the late 80's through today in the form of macintosh, linux and windows mailboxes including AOL 1.0 mailboxes. What does everyone use to archive email across multiple platforms and non-standard mailbox formats? Is there an easy solution out there? Does anyone archive IM?"

83 of 380 comments (clear)

  1. Italian school of driving by goombah99 · · Score: 4, Funny

    No need for rear view mirrors. What is behind you is not important.

    --
    Some drink at the fountain of knowledge. Others just gargle.
    1. Re:Italian school of driving by boybaha · · Score: 4, Interesting

      I also have email archives that stretch back to the early-1990s. I pretty much still have every email I've ever sent or received. When upgrading email clients, I often migrate my archives with me, converting them using whatever client's built-in importing and exporting functions I have available. I went from Eudora to Outlook Express to Thunderbird to Mac Mail. I also have programs that "pop" webmail off their sites (gmail, hotmail and yahoo) to consolidate them in whatever current mail client I'm using. I just keep them in neat folders ("Old Eudora Mail," "Old Yahoo Mail")..

  2. Here's what I do... by sub7 · · Score: 5, Funny

    I archive all my pr0n on DVDs these days. It's really easy and oh wait... fsck!

    --
    rm -rf /bin/laden
    1. Re:Here's what I do... by The+Amazing+Fish+Boy · · Score: 5, Funny

      I archive all my pr0n on DVDs these days. It's really easy and oh wait... fsck!

      One day... someone... somewhere is going to invent some sort of mechanism for removing text you've already typed. It shall be called "back-one-space" and will remove the letter before it.

      If this is impossible, surely they can keep a way of having all our text auto-submitted!

    2. Re:Here's what I do... by sulli · · Score: 2, Funny

      You probably don't need to check DVD file systems if you've burned them properly.

      --

      sulli
      RTFJ.
  3. rm -fR /var/spool/mail/* by xlyz · · Score: 2, Funny


    and you are done!

  4. Disk space is cheap. Why bother deleting? by heypete · · Score: 5, Insightful

    Save it all. With the exception of some mail archives lost to catastrophic disk failures (I keep archives for my own convenience, not for any official purposes, so I don't back them up), I keep all my email.

    Thunderbird is able to import all my old mail archives (from years and years of Eudora) and search it effectively. If I were inclined to export all my archives from my Mac to my Windows machine, I could use Google Desktop Search to really search through it all.

    1. Re:Disk space is cheap. Why bother deleting? by Libraryman · · Score: 5, Insightful

      Why delete?

      Because if you delete early and often, you've committed no crime. If you wait to delete it until someone (feds, cops, *IAA, UN-black-helicopter troopers, whoever) demands you turn it over to them, you're screwed.

      After all, you break laws too (everybody does, they are written that way). You just haven't been caught yet. (I know this because if you had, you wouldn't have all you email archived!)

    2. Re:Disk space is cheap. Why bother deleting? by aussie_a · · Score: 2, Informative

      Because if you delete early and often, you've committed no crime. If you wait to delete it until someone (feds, cops, *IAA, UN-black-helicopter troopers, whoever) demands you turn it over to them, you're screwed.

      After all, you break laws too (everybody does, they are written that way). You just haven't been caught yet.


      Instead of deleting all your e-mails "early and often" why not just delete the ones that have illegal activity in them? Or better yet, don't conduct illegal activity via e-mails. Those are a couple of a crazy ideas I know, but it just might save you from deleting all your e-mails.

    3. Re:Disk space is cheap. Why bother deleting? by cgenman · · Score: 2, Informative

      The first rule of thumb is "always bring your mail with you." If you change clients, or you change OS's, there is always a way, however roundabout or painful, to get mail into a usable form. This may involve installing Outlook, exporting all of your mail to Outlook, and importing it all from outlook, but it is worth it. Worst comes to worst, redirect it all back to yourself.

      If you do this religiously, you will only ever have to worry about your current mail format, and how you're going to upgrade it all to your new mail client. For archiving, you can either put it all in a folder that you never open or search, or under a different account that you never open or search, but at least it is all together.

      It's a lot easier to figure out how to take e-mails across current and last generation systems and current and last generation mail clients than it is to try and bridge a 15 year old machine that ran from 5 1/2" floppies using some nasty proprietary mail format and modern floppyless OS using some nasty proprietary mail format.

    4. Re:Disk space is cheap. Why bother deleting? by glesga_kiss · · Score: 2, Interesting
      This may involve installing Outlook, exporting all of your mail to Outlook, and importing it all from outlook, but it is worth it.

      Outlook + IMAP is the way I do it. You can drag messages between local storage and your mail server.

    5. Re:Disk space is cheap. Why bother deleting? by aussie_a · · Score: 2, Insightful

      On the other hand, laws are made retroactively, there could be regime change, or other unpleasentness.

      For the majority of slashdotters this wouldn't be a problem, as I'm pretty sure American laws can't be retroactive. If I ate a chicken today and e-mailed someone saying I ate a chicken, and tomorrow it became illegal to eat chicken, I can proclaim to the world "I ate a chicken on the 12th of March" and I won't be able to be charged with any crimes.

      However given your choice of words (regime change) I figure your talking about other countries, I can't comment on their legal systems. IANAL

    6. Re:Disk space is cheap. Why bother deleting? by operagost · · Score: 2, Insightful

      "No Bill of Attainder or ex post facto Law shall be passed." - U.S. Constitution, Article I, Section 9.

      --

      Gamingmuseum.com: Give your 3D accelerator a rest.
    7. Re:Disk space is cheap. Why bother deleting? by zcat_NZ · · Score: 3, Insightful

      So Steamboat Willie is NOT actually protected by copyright, since at the time it was created copyright protection only lasted fourteen years!! The constitution says so!!

      --
      455fe10422ca29c4933f95052b792ab2
    8. Re:Disk space is cheap. Why bother deleting? by Tango42 · · Score: 2, Insightful

      Wow... you really are american, aren't you? Your regime can change just as much as anyone elses... stop being so arrogant and open your eyes.

  5. I work for Microsoft by Anonymous Coward · · Score: 5, Funny

    ...so I just delete everything after a major deal falls through.

  6. I'm afraid... by joNDoty · · Score: 3, Insightful

    the best way to consolidate various types of emails may be to email them to a common source. Then archive from there.

  7. email archive by Pompatus · · Score: 4, Funny

    I delete most of what I get

    You must work for microsoft

    --

    ----
    Squirrel ... It's not just for breakfast anymore
  8. Cyrus Imap... by DaGoodBoy · · Score: 2, Interesting

    ...with fetchmail / procmail / cyrdeliver for sorting and storing from other sources. How can 5GB of mail can't be wrong?! I can slice and dice my all my email (including about a gig of spam...) for choice bits of information.

    --
    My God! It's full of Voids!
  9. Unix mail format by saccade.com · · Score: 3, Interesting

    I use the basic Unix mail format, essentially plain text series of messages. Eudora does fine with it; and most anything else can read/import it. I have email going back to the 80's in this format. The one time I had to convert was when I was working for a company that used "Quickmail" on the Mac. I wound up reverse engineering their format and hacking up a program to convert it to plain text.

    1. Re:Unix mail format by Zocalo · · Score: 2, Interesting
      Ditto, in my case the "mbox" format to be precise. I currently use Procmail to automatically CC all incoming messages to a dedicated archive file, one per month, each year in a seperate folder. Outgoing mail is also sent to the same file, although I could easily have an "infile" and an "outfile", break mail apart by topic, or whatever. For more robust long term backup purposes I simply tarball the dozen files within each directory into a file called "mail-yyyy.tar.gz" and backup as normal.

      Since mbox is a pretty standard format many tools have a built in import routine or that there there will be an existing third party tool to handle any conversions at least. Failing that, it's fairly trivial to cobble together a one-off conversion tool using a scripting language, or even to batch remail each message one at a time if your new email client uses some undocumented storage format, or is an online service like GMail.

      --
      UNIX? They're not even circumcised! Savages!
  10. PDF by DisasterDoctor · · Score: 4, Insightful

    I delete almost everything, and only save a few very important or personal emails. For those I do keep, I print to PDF, and archive by date and person/subject. It works exceptionally well for me. It is all electronic, takes very little disk space, and keeps the clutter to a minimum, and eliminates most of the cross platform nightmares.

  11. One Word by Zone-MR · · Score: 5, Insightful

    One word: IMAP. If you can read your email using any decent email client, it should support moving it to an IMAP server. If you are using web-based email or some crappy client which can't export emails to a standard/raw format, you'll have to write a script to convert the messages.

  12. It's simple: plain text by Faust7 · · Score: 5, Insightful

    Ever since I first got acquainted with e-mail on my Apple IIe in the '80s, I've used e-mail programs that offer plain-text storage as at least an option. It's one of the most universal formats in existence, and can be read one way or another on computers both decades old and brand new. I encountered some weird proprietary clients in the '90s that still stored e-mail in this format, because from a corporate perspective, this stuff was still in its infancy, plus HTML hadn't yet mucked everything up. To this day I still store in plain text from Eudora 6.2.

    I burn it to CD-Rs that I know won't get moved around or scratched. They stand a good chance of lasting the rest of my life.

    1. Re:It's simple: plain text by Dwonis · · Score: 2, Informative
      I burn it to CD-Rs that I know won't get moved around or scratched. They stand a good chance of lasting the rest of my life.

      No! Check those backups! I have lost data stored on CD-Rs (luckily I had copies), and many of my discs have started to turn yellow after about 2 years! Also, you can sometimes see these little spots of discolouration on the CDs, which makes me think there's a fungus of some sort that's eating them.

      The lifespan of CD-Rs is unknown at this point. Don't trust them for more than a year without inspection, and make fresh copies after 5 or so years.

      I'd also recommend using some kind of forward error-correction scheme, like par2.

  13. Upon Searching.. by yuriismaster · · Score: 4, Informative

    EmailMan has the answers to your problem.

    More utilities than I want to bother with, but hopefully they'll have the converter(s) you need.

    Good Luck!

  14. Your favorite online storage by Alien54 · · Score: 4, Informative
    Hriders.com gives unlimited free 1 Terabyte email accounts that include 500 Megabyte attachments. We have been asked why we would do such a thing. The answer is simple to help people store large amounts of information in a safe and secure environment. - - - We decided that yes a Terabyte of space may sound rather extreme to some, others will not think so. If you have a free membership with Hriders.com then you will receive a free 1 Terabyte 500 Megabyte attachment email account. You will be able to store over 40 million emails, videos, games, mp3s, or pictures.

    This might be useful, if they don't collapse under /.

    --
    "It is a greater offense to steal men's labor, than their clothes"
  15. Simple.. by billimad · · Score: 2, Funny

    I give mine to Microsoft for the safe storage and instant retreval they are renoud for. Oh wait..

  16. Don't change e-mail clients by rueger · · Score: 3, Informative

    That's one of the many reasons why I have stayed with Pegasus Mailfor many years. Because they were created in the same program I know that I can still access my old mail files without problems.

    What I do at year end is move all of that year's messages to a new folder and reset my filters so that the new year's messages go into a new set of folders.

    Periodically I just copy off previous year's messages to CD.

    At least few times I have been able to back a couple of years and find information that I lacked.

  17. Kinda Sorta OT by hot_Karls_bad_cavern · · Score: 4, Interesting

    but ...

    Along these lines, is there an OSS package that can read the varied formats the Submitter is referring to, tag and drop them in a DB with a nice, friendly, web-enabled (secure) front-end for searching?

    My former employer kept *all* of his email from the last 20 years in tar.gz files. Let's just say it wasn't easy to find an email from er, 15 years ago very easily.

    Is there a package that can read the mbox, the other box-formats, plain text, pull from pop, old tar.gz bundles, categorize (sorta), tag and make such things searchable?

    Totally a shot in the dark here, i'm not a mail guy at all ... just wondering as the Submitter did what i like /. Submitters to do: make me think and look for new, better stuff ... or better ways to do old-stuff.

    It is the "drink" that makes me wonder, sorry :)

    1. Re:Kinda Sorta OT by gunfleet · · Score: 3, Informative

      Is there a package that can read the mbox, the other box-formats, plain text, pull from pop, old tar.gz bundles, categorize (sorta), tag and make such things searchable?

      Yes there is, check out

      http://www.greenstone.org/cgi-bin/library

  18. How I archive my mail by gpscc · · Score: 2, Insightful

    I only use e-mail clients that store mail in ascii with standard headers. This means no Outlook mail. I still use the Netscape e-mail client to view and organize my mail. Also I have various perl scripts that can access the e-mail archive. I have 22 years of e-mail, archived on my PC. It gets backed up with the nightly backup onto a swapable firewire drive. I swap the backup every morning and have one of the drives with me.

  19. Convert to MBOX format by Jason+Earl · · Score: 4, Insightful

    Almost every email client around can import and export mbox formats. Getting your email in a format that is going to be readable in 20 years is the first step, otherwise why bother?

    Worse comes to worst mbox is readable as plain text.

    1. Re:Convert to MBOX format by snaptography · · Score: 2, Insightful

      This is always quite an interesting discussion, especially because MS Entourage can not even import from a MS Outlook database...doesn't seem to make sense. Although I would say that MBOX formats are probably your best bet...unless you want to write your own exporting,parsing,sorting system.

      --
      -- www.kiwicommunications.com --
  20. Re:One word by Padrino121 · · Score: 5, Insightful

    Gmail?

    I don't know about you but I generate about 6GB of email archives per year. Besides that having my email potentially available for searching doesn't sit well with me. I'm not sure where it stands now but there were a lot of potential privacy issues with Gmail.

    No I don't receive hords of email, just a lot of engineering related with source code,research, white papers attached. If you do anything business related it's important to keep all of the original emails received so there is an electronic paper trail.

  21. Re:One Word by Murphy+Murph · · Score: 2, Interesting

    I second this.
    I started running my own IMAP server on an old machine a year or so ago - and synced all my old mail archives to various folders.

    My mailserver also solves another problem - multiple POP accounts. I have my IMAP server set up so that each one of my POP accounts gets automaticly tagged and sent to it's own folder.

    A third common problem this solves is having multiple machines. Now my desktop's email client is always synced with my laptop's email client. Before I had run into problems when ever I traveled and fetched my email from the road.

    --
    I dub thee... Sir Phobos, Knight of Mars, Beater of Ass.
  22. One's things sure by eddeye · · Score: 4, Funny

    Don't ask Microsoft.

    --
    Democracy is two wolves and a sheep voting on lunch.
  23. mbox or maildir by Xtifr · · Score: 2

    I've been using mbox format since the eighties, and never had a problem with it on any platform. It's pretty much been THE standard for email for as long as email has existed. If I ever were to switch, I'd probably switch to maildir, which has nearly as wide-spread support these days.

  24. Archive what? by Mishura · · Score: 3, Interesting

    I never keep emails, or archive IMs or any other form of communication. Once a email is read, it is deleted. Same goes for normal old-skool mail, I read it and then trash it. The only exceptions are of letters/email of some importance such as information I need to keep handy, or if it has some kind of sentimental value (letters from deceased relatives for example.)

    Sure, HDD space is cheap; but I tend to equate people who archive every single form of written communication to those who have an Obsessive Compulsive Disorder, in that they hoarde everything in sight: newspapers, snail mail, magazines, boxes, etc..

    Commit to memory and destroy the evidence. Thats my way of handling archives.

    1. Re:Archive what? by Anonymous Coward · · Score: 4, Funny

      If you throw out your mail as soon as you read it, how are you keeping letters written by deceased relatives? Are they sending you mail after they die?

    2. Re:Archive what? by Lorrin · · Score: 2, Funny

      I'd imagine once your relatives decease they stop sending you mail -- conveniently cutting down on the amount you need to archive. Nice!

    3. Re:Archive what? by Mishura · · Score: 2, Informative

      If you throw out your mail as soon as you read it, how are you keeping letters written by deceased relatives? Are they sending you mail after they die?

      Actually, yes. I did recieve a letter from my grandmom a week after she died. Snail mail works very slow indeed.

      Reading the letter was strange. The content wasn't strange, just the feeling you get from recieving information from a dead person. That's all I'll say about it.

      Cue the "I read dead people's email" jokes..

    4. Re:Archive what? by michelcultivo · · Score: 2, Informative

      There's a lot of people that don't follow the Netiquette Guidelines specifically when responding threads; they don't cut the things that don't need to be included on the response. And this was the big cause of having a lot of space wasted when storing email.

  25. Re:One Word by pasamio · · Score: 2, Insightful

    IMAP isn't really a word, its an anocrym. But I agree, IMAP is the way I use, it helps for the relevant email and on my network I use both Linux and Windows (with a dedicated Linux box). I have Evolution set up to continually check and sort my email into IMAP folders and I generally read them off my linux box. If I need to click on links, I generally open up any Windows email client (from Thunderbird to Outlook) and it'll connect to IMAP and my emails will all appear (nicely sorted too!). If I need webmail, I have squirrelmail (which I use) to access my IMAP system remotely using any web browser and I can get at my hotmail email (from the old days, but my accounts are still active) using freepops or some other Web Email to POP3 gateway. Everything (but gmail, my mailing list archive), is in my IMAP server - I just backup one area.

    --
    I always wondered where this setting was...
  26. formail, mairix, and mutt by rsw · · Score: 3, Informative

    Convert everything into mbox format. formail will help you with that.

    Use mairix to search through email.

    mutt is the best mail client ever.

    -rsw

  27. Spotlight and Tiger by goombah99 · · Score: 4, Insightful

    Combine this with spotlight/tiger in mac os. Spotlight indexes PDF content. print it to pdf and it will be searchable. Assuming you have a Mac that is.

    --
    Some drink at the fountain of knowledge. Others just gargle.
  28. Easy... by praetis · · Score: 2, Informative

    I archive my mail on /dev/null. Send it there daily.

  29. Re:Log everything... by Rosco+P.+Coltrane · · Score: 5, Funny

    I log and keep all my traffic including IRC logs going back to '94.

    Hey B5_geek, here's a trick to free up a lot of disk space *and* raise the S/N ratio in your logs:

    mv irclog.txt irclog.txt.fat && grep -vi lol irclog.txt.fat > irclog.txt && rm -f irclog.txt.fat

    --
    "A door is what a dog is perpetually on the wrong side of" - Ogden Nash
  30. Or use maildir by suso · · Score: 4, Informative

    Whatever you do, I think its best to keep it in an open and obvious format like mbox or maildir. The nice thing about maildir though, is that since all the messages are seperate, it might be a little easier to write a program to put them into a new format.

    Personally, since 1999, I've been using a combination of maildir and procmail to archive and save my mail. Every message that comes in, goes to a folder called .saved-messages-YYYY-MM and also to my inbox. I simply don't touch the saved-messages folders and when I am done with the message in my inbox, I just delete it. This has worked well for me and makes it much easier to deal with archiving old mail. In the end, having categorized folders and such is just a waste of time. Its kinda like the wm2 (window manager) way of thinking, but for mailboxes.

  31. Re:One Word by pHDNgell · · Score: 5, Interesting

    One word: IMAP

    Absolutely. I use no fewer than two mail clients on two different machines on any given business day. Every email I've sent since 1995 or something like that, and received since 1998 is available and searchable. Over this time, I've accessed this archive with the following clients:

    * pine (lots of pine)
    * mac mail
    * thunderbird
    * various netscapes/mozillas
    * ML (some random IMAP reader)
    * My phone (my old Sony/Ericcson speaks IMAP)
    * My palm (two different apps)
    * python
    * a java webmail system I wrote
    * three or four other webmail systems
    * mutt ...who knows what else. I've got freedom to try whatever I want at any given moment without losing my current or past mail.

    --
    -- The world is watching America, and America is watching TV.
  32. Archiving tool: ForKeeps by sstern · · Score: 3, Interesting

    I have several CDs worth of stuff archived with ForKeeps:

    http://www.fkeeps.com/whofor.htm

    It's a bit of an old program and the interface is clunky, but it works reasonably well once you work through it.

    --
    --Steve
  33. Delete it by exp(pi*sqrt(163)) · · Score: 4, Insightful

    That way it won't be subject to a sub poena. You'll regret it one day if you don't. Do you realize how much incriminating stuff you have in there?

    --
    Doesn't it make you feel good to know that our freedoms are protected by politicans, lawyers and journalists.
    1. Re:Delete it by man_ls · · Score: 2, Insightful

      Generally, most people don't have to fear subpoenas unless they're doing something illegal or nefarious in some way.

      Good point, though.

    2. Re:Delete it by pohl · · Score: 2, Insightful

      That's a rather optimistic viewpoint. It's entirely possible for someone to do nothing illegal and still find themselves at the blunt end of a civil suit.

      --

      The "cue the foo posts in 3, 2, 1..." posts will commence with no subsequent foo posts in 3, 2, 1...

  34. American school of driving by Anonymous Coward · · Score: 2, Funny

    My car is bigger than yours. Move it or lose it!

  35. Dave's top ten by FreeLinux · · Score: 4, Funny

    10 Your mother told you to stop being such a pack rat.
    9. Disks fill up, no matter how cheap they are. Low cost doesn't excuse gluttony.
    8. Backups take forever.
    7. Restores take an eternity, especially if your not confident.
    6. Mail client gets slower and slower.
    5. Searches take too long.
    4. Mail clients make mistakes, especially on big stores. See #7
    3. Your CYA evidence may be used against you.
    2. A mail store is not a file system and SMTP is not a file transfer protocol.

    And the number one reason to delete your old email...

    1. IT'S ALL A BUNCH OF USELESS CRAP JUST AS IT WAS WHEN YOU FIRST RECEIVED IT!!

    1. Re:Dave's top ten by nick_davison · · Score: 2, Funny

      1. IT'S ALL A BUNCH OF USELESS CRAP JUST AS IT WAS WHEN YOU FIRST RECEIVED IT!!

      Hey! It has nostalgia value. I love being able to reminisce about the old Enlarge Your Penis offers I used to get back in the days when I could still look down and see it - damn programmer's gut.

      Uh... I mean... I hear that's what others use it for.

  36. Re:One word by Anonymous Coward · · Score: 4, Funny

    6GB yearly? Holy shit...

    Do you actually sign up to those free porn places?

  37. How I do it by Matt+Perry · · Score: 5, Informative
    I use a procmail recipe to archive my mail. I put it after filtering mailing lists and before I filter spam:

    OLDMAILDIR = $MAILDIR
    MAILDIR = $ARCHIVE_DIR
    :0 cW: archive.lock
    | /bin/gzip >>mailarchive-`date +%Y%m`.gz
    MAILDIR = $OLDMAILDIR

    I use grepmail to find old emails that I might need. Grepmail lets you use perl regular expressions to find messages and then outputs the entire message where a match was found. You can use grepm to open grepmail matches as a mailbox in mutt. grepine does the same for Pine, which I use.

    At the end of each year I clean the spam out of my archives using a procmail recipe and spamassassin. This recipe marks messages as deleted in the mailbox. I open these in pine, sort by deleted, and double check them. Once I'm sure they're all spam, I delete them:

    # vim:ft=procmail:

    LINEBUF = 8192
    SHELL = /bin/sh
    MAILDIR = $HOME/mail

    :0 fW: spamclean.lock
    | spamassassin -e --prefs-file=/home/matt/.spamassassin/user_prefs-s pam_clean 2>/dev/null

    # If the message was deemed to be spam, set the status to "deleted" so that
    # we can delete it easily and optionally review it.
    :0 e
    {
    :0 fhw
    * ^^rom[ ]
    | sed -e '1s/^/F/'

    :0 f: formail.lock
    | formail -I 'X-Status: D'
    }

    # Fix the mangled "From" line
    :0 fhwE
    * ^^rom[ ]
    | sed -e '1s/^/F/'

    # Remove the last of the SpamAssassin headers
    :0 f: formail2.lock
    | formail -I 'X-Spam-Checker-Version'

    # File message in temporary mailbox
    :0: sandbox.lock
    z-cleaned_mbox

    The special spamassassin config turns off bayesian filtering and sets the threshold high:

    required_hits 15
    clear_headers
    fold_headers 0
    use_bayes 0
    The rest of the spam I clean out by hand.
    --
    Slashdot: Failed Car Analogies. Amateur Lawyering. Anecdote Battles.
    1. Re:How I do it by Matt+Perry · · Score: 3, Informative
      Almost forgot. I archive my sent mail as well. This might be harder for you if you don't use a single email client on a single machine. IMAP can help with that.


      Put this in ~/bin/rotate-sent-mail.sh:

      #!/bin/bash

      # This script takes sent mail in $HOME/mail and moves them into
      # $HOME/.mailarchives/sent. It will also rename the file to have the date of
      # the log file included.

      MAILDIR=$HOME/mail
      ARCDIR=$HOME/.mai larchive/sent
      year=`/bin/date +%Y`
      month=`/bin/date +%-m`

      # updating last months mail
      month=$((month-1))

      # if this is last years mail, set the date correctly
      if [ $month -eq 0 ] ; then
      month='12'
      year=$((year-1))
      fi

      # if the month is less than 10, add the leading zero back
      if [ $month -lt 10 ] ; then
      month=0$month
      fi

      mv $MAILDIR/sent-mail $ARCDIR/sent-mail-$year$month
      touch $MAILDIR/sent-mail && chmod 600 $MAILDIR/sent-mail
      bzip2 -9 $ARCDIR/sent-mail-$year$month
      Now add the following to your crontab:

      0 0 1 * * $HOME/bin/rotate-sent-mail.sh

      --
      Slashdot: Failed Car Analogies. Amateur Lawyering. Anecdote Battles.
  38. Manatory ZOË plug by MCRocker · · Score: 2, Informative

    Well, if you're going to be on this topic, a mention of ZOË is pretty much required.

    ZOË is a sort of an archiving proxy that sits between your mail client and your mail server. It stores and indexes everything, so you can pop open a browser window and do a search on anything you've ever sent or received. Naturally, this was created before gmail.

    With ZOË you don't need to worry about those pesky email folders and waiting for long searches.

    Naturally, spam filtering before ZOË is a good idea.

    --
    Signatures are a waste of bandwi (buffering...)
  39. Practical research applications by Martian_Bob · · Score: 2, Interesting

    I do data mining research, most recently on the Enron email dataset, and I've actually been having to roll my own multi-mailbox storage, access, and retrieval systems. It's taking way more time than I'd like, at this point I've gotten a database and web-based viewers made up (beware, they're quite slow).

    If anyone has an idea of an open-source application similar to what the submitter is looking for, it would help my research quite a bit. There's practical research applications in this stuff, if someone's interested in making it.

  40. CSV by vnangia · · Score: 2, Interesting

    Just about every email program that I've used has managed to export to CSV. A few web-based email systems didn't allow such imports and some hunting on the web found some sort of convertor (like YahooPOPS!, etc.) that converted to POP and then I exported them to CSV using Eudora or Outlook, or whatever program I was particularly enamored with.
    Admittedly, sometimes the column names didn't match up ("Sender" v "From"), etc., but for the most part that how I did it. I also made an effort to keep the number of email accounts that I had to a minimum. At this point of time, most everything is stored in the form of .PST files that are archived on CDs and on an external hard drive.
    I also made an effort to keep my email accounts to a minimum, which probably made this entire process significantly easier and when I did close an account (like when I finished work at a company), I exported the emails from there and kept them in .PST in case I needed them for anything later on.
    As far as indexing works - I have them stored in 6 month segments (Jan97-Jun97, Jul97-Dec97, ...), since I can usually remember roughly when I got an email that I was looking for - alternatives include perhaps by name of sender or company.
    I do archive IMs - Trillian worries about it for me. :)
    Hope this helps.

  41. My solution by anon*127.0.0.1 · · Score: 4, Funny

    I've found the easiest way to handle EMail when it's in multiple formats like that is to just print everything out and store it in boxes in my garage.

    --
    I am NOT a man!
    I am a free number!
  42. Email archiving and tools by rahard · · Score: 2, Interesting
    I archive most of my emails. Up to this point, my email archive is close to 2 GBytes.

    I keep the emails in mailbox format (that is, in plain text as it is stored in most UNIX systems), in several files. The reason I do that is that most email readers (MUA) can read mailbox format. I keep them in several files to make it more manageable.

    The tools that I use to manipulate emails are mostly "from", "procmail", "grep", and "less". There used to be tools from the "elm" era (still remember them?), such as "frm" (which is better than "from"), "reademail" (to read individual email, given the number of email in the archive), "deletemail" (which can delete an individual email in the archive). Too bad, these tools are gone. At one point I slapped a simple Tk interface as a front end to those tools. But it didn't scale well.

    At one point I did experiment to store emails in indiviual files. But the tools to manipulate them are limitted. I used MH.

    The next experiment I did was to take all those email headers and put them in a database. (I used msql, which was popular at that time.) Then, I had a Java applet and perl script to make queries to the database (and actually did an analysis of my reading habit). The actual emails were stored as plain text files. Each email was stored in individual file. Basically, the original email was untouched. I got bored and never continue the project.

    Now ... I am stll searching for the perfect email tools.

  43. Outport & recursive IMAP folder creation by ahbi · · Score: 4, Informative

    I strongly recommend Outport. It does an extremely good job of converting MSFT Outlook attachments into something more readable (mbox I think, it has been a while). MS Outlook usually mangles attachments into some wrapper called TNEF.

    Also, anyone know of a client program that will recursively create folders on an IMAP server (maybe a server issue. In which case, what server?)
    I had gotten over translating my years of Outlook email into something more universally readable, but I have so many nested folders that the inability to have the client recirsively create IMAP folders is an issue. Suggestions?

  44. Re:One Word by Vario · · Score: 2, Informative

    Have a look at bincimap. It works well, installs easily and seems to be quite secure.
    See http://www.bincimap.org/ for more details.

    It runs on my small linux server without problems and I can access my emails securely over ssl from anywhere. The only limit is the hd size, so even a couple of GB should be no problem.

  45. save all ingoing and outgoing in YYYY-MM files... by Doctor+Fishboy · · Score: 2, Informative

    ...and let mutt sort out.

    I had multiple folders, sorted by people/project. I got in a complete mess and finally snapped when I spent half an hour looking for a simple message.

    Use procmail to write all incoming messages to 'all-mail-YYYY-MM' and use Mutt hooks to write out to the same directory.

    At the end of the year, cat them together and make 'all-mail-YYYY'. Accessing and reading this mailbox can be done with 'mutt -R -f all-mail-YYYY' as this opens read-only. Use 'l' to do 'limit' searches and use ~t, ~f, and ~b in AND combinations to limit on To: From: and body of messages. It's lovely only having to look in one place!

    Procmail:
    INCOMING=all-mail-`date +%Y-%m`
    # now I want to keep a copy of EVERYTHING in a dated directory :0 c:
    $INCOMING

    Muttrc:
    set record="+all-mail-`date +%Y-%m`"

    Works for me!

    Dr Fish

  46. OE to mbox to html by Gax · · Score: 2, Interesting

    My father was concerned about the longevity of his e-mail a few years ago, so I created a small batch file that converts his Outlook Express mail archive into mbox on a monthly basis. Last month he asked if I could convert them "into a web site" so he can get an idea of a thread history without parsing a huge file. When I get a moment I'm planning to write a script that outputs each message to a new file in html tags and use the message subject and date to create a rudimentary index.html.

    I'm surprised no one has tried this before. It's a good low-tech solution for people who require information in a hurry and is more immediate than a flat file.

  47. Re:One Word by astrashe · · Score: 2, Informative

    IMAP is the answer. I don't use IMAP on a regular basis, but it did let me export mail from outlook over to Evolution on linux.

    I used the UW IMAP server, which is a little easier to set up than the Cygnus one.

    The UW IMAPd keeps its folders in mbox format, so it's a great tool for converting oddly formatted mail.

    Moving email is pretty easy -- it's harder to move calendar entries, address books, notes, and the other sorts of data that ends up in a program like outlook. I think the easiest way to do it would be to sync to a palm device, on windows, and then do it again under linux, although I haven't actually tried that.

  48. Post it on /. by pyrrhonist · · Score: 2, Funny
    Just post all your email on Slashdot. Since no one reads the articles anyway, no one will notice when they aren't on topic, and there's always the possibility that your email from Mom will actually be on topic. Furthermore, it will be easy to search using Google, and the Wayback Machine will automatically archive everything for you.

    As a bonus, you can tell which emails are worth reading by how they get moderated. All your work related emails will probably be modded Troll, except for your performance review, which will be modded +5 Funny. Email from your illicit lovers will be modded Insightful, since that type of thing is new to most of us. Email from your family will be conveniently modded down so you will not have to deal with it. Your friends won't need to send you any email at all, since they are probably already on Slashdot, and therefore, know enough to post in your threads.

    Problem solved. Ah, Slashdot... Is there anything it can't do?

    --
    Show me on the doll where his noodly appendage touched you.
  49. Re:Since a month back by FLEB · · Score: 2, Funny

    There are traps.

    --
    Information wants to be free.
    Entertainment wants to be paid.
    You just want to be cheap.
  50. I run my own personal IMAP server by EMR · · Score: 2, Insightful

    I have a machine that runs a dedicated IMAP server with one account on it (mine) which has my 2GB+ of e-mail since 1996. (minus the spam of course). That way I can easily switch between different clients and not have to worry about converting my e-mail all the time.

  51. Ink by PCheese · · Score: 2, Interesting

    You have to print it with something. Ink: one of the most expensive ways to put stuff on paper. Heck, they say it costs seven times more than champagne per drop! That, plus the costs of cartridges and printer maintenance and, and... oh the horror! ;)

    Me? I obsessively reinstall my operating system and reimport old mailboxes into my mail client, so I have a dozen copies of 5-year old email, ten copies of 4-year old email, 8 copies of 3-year old email, etc. No need for backups... plus when I search my computer for old email, I get a dozen copies of what I'm looking for!

  52. PDFs more durable than mail, perhaps by goombah99 · · Score: 2, Insightful

    One assumes, perhaps wrongly, that pdfs are a more durable format than mail. This of course is what the entire "ask slashdot" question was about. How do you deal with past mail in different mail programs. If you keep it in pdf format then it probably will be readable regardless of the mail program that generated it. However then the problem is wading through 10,000 old e-mail pdfs. Spotlight solves this. Now that spotlight exists one assumes no operating systme in the future will ever be without something like spotlight.

    --
    Some drink at the fountain of knowledge. Others just gargle.
  53. Does anyone archive IM? by AsYouKnow+Bob · · Score: 2, Funny

    You mean, besides the NSA?

  54. Offlineimap, of course by LibrePensador · · Score: 2, Informative

    You open all your email with an email client and move all the disparate inboxes into a big IMAP store on your own computer or one provided by a joint like Fastmail.fm or Runbox.com

    Then, you keep a local backup on any computer that you move to with offlineimap, a wonderful utility that doubles as a multi-inbox syncronizer and backup utility. I have been using it for the past two years and can attest to its reliability.

    Enjoy
    --
    Pragmatism as an ideology is not particularly pragmatic in the long term. Keep it in mind when you dismiss Free Software
  55. Archiving IM ... by rocketfairy · · Score: 2, Informative
    ... is easy. gaim can do it automatically, plaintext or html, by recipient, and searching is easy. Opening up a nice big html file in a browser, complete with every conversation you've ever had with someone on AIM, can be quite handy.

    I actually have two backups of my mail:
    • raw mbox. procmail copies everything to a folder (on my mailsever) which fetchmail (on my box) grabs once in a while, usable with most civilized mail programs (want to copy everything to an imap server? Use t-bird or some crap) and searchable with mutt, or for that matter a text editor; and
    • gmail. Yes, you have an extra invite or 50 ... just procmail or otherwise autosend a copy of everything to a gmail account as backup. Gmail might not last forever (hence the mbox, and some cdr/tape), but while it does, it makes for handy searching. Not as nice as mutt though :)
  56. IMAP all the way by paulsomm · · Score: 2, Informative

    I've about 15G of emails now dating back to the early 90s, all stored in a locally-installed Cyrus IMAP server (maildir format, technically). Never used AOL's mail or free webmails so that was never a concern of mine.

  57. ex post facto Law by Morosoph · · Score: 2, Interesting

    This is why the House of Lords was resistent to the prosecution of Nazi war criminals for so long, incidentally.

  58. Check out Mailbag Assistant and Aid4Mail (Win32) by Anonymous Coward · · Score: 2, Informative

    If you're serious about archiving or migrating your email, take a look at Mailbag Assistant and Aid4Mail for Windows. Mailbag Assistant makes it easy to read email from many different formats. It can search and display your email archives from CD-ROMs and any other location accessible to Windows Explorer. Aid4Mail supports even more mail clients and can archive your messages into highly compressed ZIP files. It can also help you migrate your email to another mail client or a database. Aid4Mail is very accurate; it can correctly migrate status information and is capable of rebuilding Eudora mailbox files and MS Outlook message folders into standard mbox files.

    Mailbag Assistant 3.8:
    http://www.fookes.com/mailbag/

    Aid4Mail 1.0:
    http://www.aid4mail.com/

    --
    Eric Fookes
    http://www.fookes.com/

  59. Re:IMAP all the way - agree 100% by cheros · · Score: 2, Insightful

    BTW, it's also the only way to reconcile an enforced corporate suffering of /barf/ Outlook and more sane programs like Evolution (slooow) and kmail (not quite as pretty) or pine (good for SSH on slow dialups ;-).

    With an IMAP backend you can try it all without tying yourself into one format - that's Open Standards for you!

    --
    Insert .sig here. Send no money now. Owner may sue, contents will settle. Batteries not included.
  60. Backup mail archives along with a Linux Live CD... by PCMeister · · Score: 2, Interesting

    With the advent and subsequent improvements of LiveCD distros, it should be relatively painless for the average /.'er to:

    * Create a multi-session CD/DVD with your favorite Linux LiveCD distro
    (or roll your own and create an ISO for future use)

    and

    * Backup email files to said CD/DVD
    (I suggest a set of re-writable media of good quality to play it safe.)

    Further suggestions:
    1. It would be advisable to split your archives (ie. Mail2004, etc.), especially if you plan to retain a sizeable amount of mail.
    2. Convert archives from older mail clients before creating backup, or use a newer mail client that can read the old files with ease.

    Good luck!