Hey all,

I’m going to be moving on to my next project and have been thinking about doing an email client. I like Thunderbird, but the search is terrible, and I also want to tackle something that needs pretty high performance for processing emails etc.

Any suggestions or considerations I should think about?

I’ll focus on just getting SMTP going in a CLI then I’ll introduce some sort of frontend using Qt.

  • teotwaki@lemmy.world
    link
    fedilink
    arrow-up
    15
    arrow-down
    1
    ·
    8 months ago

    Email is ridiculously complex—the technology is dead simple, but the number of exceptions and (undocumented) rules you need to abide by or risk getting banned by half the internet without being told is nothing to sneeze at.

    I should know: I have built multiple support platforms that worked through email (amongst other channels).

    You mention wanting to start at the SMTP level, and then building a Qt interface. So you’re going to write an SMTP client, an IMAP/POP3/JMAP client, a storage engine, a user interface, and a better search system, all on your own? You’re describing a gargantuan task.

    No offense, but each one of those could be a project on its own. You probably think they’re all simple tasks (they’re not), and that you can follow a few RFCs to get things going (you can’t), and that it’ll be easy to debug (it won’t). Finally, I think you’re underestimating how large people’s email maps get.

    Why not write a plugin for Thunderbird that improves the search?

    • Matty_r@programming.devOP
      link
      fedilink
      arrow-up
      5
      ·
      edit-2
      8 months ago

      No offense taken. But I’ve made no assumptions on the simplicity, and I know its a big task and want to start small. I don’t mean to compete with Thunderbird, just I like it.

      I think it would be a great exercise in learning the protocol and message handling.

      • teotwaki@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        8 months ago

        Okay, fairy nuff.

        In that case, I would probably start with writing an SMTP or IMAP proxy first. It will teach you everything you need to know about the protocols, and you can reverse engineer the protocols using a client that already works.

        It would give you a tangible project outline, which I believe is often critical to not lose motivation or interest.

        If you accept using libraries, there’s the imap crate, the mail_send crate, and samotoo crate that are worth looking at.

  • Turun@feddit.de
    link
    fedilink
    arrow-up
    10
    ·
    8 months ago

    In order to provide some contra to the other comments here

    Have fun! Unless you have insane amounts of freetime you probably won’t finish it or get it to a state of solid usability. But maybe the journey is the goal and that doesn’t even matter.

    • Matty_r@programming.devOP
      link
      fedilink
      arrow-up
      3
      ·
      8 months ago

      Cheers, yea its just something to work on/look into. I’ll never finish it of course, but if I can get a few versions into it and has some users/interest I’ll keep working on it.

  • solrize@lemmy.world
    link
    fedilink
    arrow-up
    9
    ·
    8 months ago

    There’s an old joke that every sufficiently big program eventually grows it’s own built-in email client. IOW more email clients are the last thing we need.

    How substantial and bleeding edge a project do you want to take on? We could use a fast search engine with more modern NLP stuff than Lucene had last time I looked, though idk about now. You could then possibly integrate it with Thunderbird.

  • Pantherina@feddit.de
    link
    fedilink
    arrow-up
    5
    ·
    8 months ago

    Do a Thunderbird Addon instead. I dont think such a project would be sustainable, or that all this fragmentation helps

  • souperk@reddthat.com
    link
    fedilink
    arrow-up
    1
    ·
    8 months ago

    Maybe something nexus project related? Working with the largest research paper database is definitely going to provide you with a decent challenge.

    • teotwaki@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      8 months ago

      I think you’re misguided about the APIs. Gmail supports IMAP and SMTP. Proton supports those too if you run an encryption bridge on your computer. Fastmail supports IMAP/JMAP/SMTP (they invented JMAP to try and innovate).

      Email providers most likely must provide SMTP and IMAP due to compatibility requirements with Apple Mail and other clients.