Anyone ever consider a filesystem served by MySQL for mail folders?

From: Doug Lee (dgl_at_dlee.org)
Date: 04/09/05

  • Next message: Sergei Gnezdov: "Re: Installing portupgrade without X.org"
    Date: Sat, 9 Apr 2005 16:37:27 -0400
    To: freebsd-questions@freebsd.org
    
    

    Ok, tell me if this is a totally awful idea, but it seems quite useful
    to me, even if unusual...

    Is it practical to implement a mountable filesystem for mail archiving
    whose contents are served by a MySQL (or other SQL) database?
    Creating this is surely way beyond my level of expertise in FreeBSD,
    and maybe even the full design is, but I imagine this much:

    The actual supporting database would include category strings for each
    message (many-to-many). File names in the filesystem would be
    category strings, so saving an email would file it in that category
    (to save in several categories, resave to the corresponding names;
    only one actual copy of the message would be saved).

    Special rules could be constructed that allow special filename formats
    to cause queries; for example, trying to load messages from a file
    called "from:dgl@%" might pull in a mail file consisting of all
    messages from dgl@* (note I use `%', the SQL wildcard, both to
    simplify the query and to avoid collision with the normal `*' wildcard
    for filenames). I suggest the rule<-->filename mapping should be held
    in an administrator-modifiable configuration file.

    The reason I propose all this is that I'm interested in a better way
    to store massive amounts of email that does not depend on a particular
    mail program. Granted, the returned mail file format would have to be
    preset--unless that's configurable too, or special patterns are
    included for different formats compatible with different mailers,
    which would be immensely cool!

    I am continually frustrated by trying to find an email among hundreds
    of thousands of them, and by the inability to categorize emails in
    multiple ways easily without saving multiple copies of messages. I
    suddenly today thought of things like devfs, procfs, etc., that are
    pseudo-filesystems, and realized that even if this is an odd approach,
    it does have the benefit (at least potentially) of working with most
    any mail client with no modification to the client and no user
    intervention such as manually copying messages to/from the database.
    If such a thing now existed that could serve Mutt-compatible (MMDF, I
    think) mail files, I would wish to import about 400 megabytes of
    messages as soon as possible. :-)

    Thoughts welcome. Please Cc me.

    -- 
    Doug Lee           dgl@dlee.org        http://www.dlee.org
    BART Group         doug@bartsite.com   http://www.bartsite.com
    "Innovation is hard to schedule." -- Dan Fylstra
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
    

  • Next message: Sergei Gnezdov: "Re: Installing portupgrade without X.org"

    Relevant Pages

    • Re: Replacing BibTeX (was: biblatex-apa - work underway)
      ... It is already possible to manage a bibtex database in Zotero, which will export to bibtex database format from its internal format. ... I agree that .bst is better documented than the newer CSL! ... fed MODS, .bib, .ris, and other diverse formats). ...
      (comp.text.tex)
    • Re: Excel Problem
      ... nearly all my PCs though. ... OO's database? ... have file formats that pretty much anyone else can read. ... All except one PC here run XP now but that didn't change a thing WRT *.doc files. ...
      (sci.electronics.design)
    • Re: Excel Problem
      ... nearly all my PCs though. ... OO's database? ... have file formats that pretty much anyone else can read. ... I also used it to convert hundreds of older .doc files to the version ...
      (sci.electronics.design)
    • RE: Access 2003 - Security bug report?
      ... I wrote this one on mail client. ... it was a possible whole of security and I decide to make ... I made a database with 3 tables. ... member of public standard group (we can ...
      (microsoft.public.access.adp.sqlserver)
    • Re: Excel Problem
      ... nearly all my PCs though. ... installed Open Office on another computer and salvaged all my 'Works' ... OO's database? ... have file formats that pretty much anyone else can read. ...
      (sci.electronics.design)