Hi fellow self-hosting lemmings,

In an SME setting, I’m looking for a service to regularly fetch mails from an IMAP server and print incoming mails and attachments on a local network printer based on rules (e.g., only print mails where the subject contains a specific word.)

Does a solution like that exist, ideally with a browser frontend to set it up?

Thank you!

    • tofubl@discuss.tchncs.deOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      11 months ago

      Thanks for the reply. I don’t think I fully understand what you mean.

      What I would like to have is a service running on a server, fetching and printing mails. Could you please elaborate how your idea would work?

      • MonkderZweite@feddit.ch
        link
        fedilink
        English
        arrow-up
        3
        ·
        edit-2
        11 months ago

        … forget it. I was about to write a long-winded answer, that you can use usual cli mail softare to fetch the eml or msg files (mails) and use the tool on them and then send the pdf to the printers (most printers use pdf internally). But then i remembered that this would be the perfect job for a python script.

        But, uh, wouldn’t you better just save the mails instead of printing them? Environment and cost and so on.

        • tofubl@discuss.tchncs.deOP
          link
          fedilink
          English
          arrow-up
          3
          ·
          11 months ago

          Gotcha. Thanks anyway. 🙂

          You’re right about printing not being all that, but certain situations (my situation) call for it, at least for the time being.

          This is for manufacturing orders in a low tech environment, and at this point in time I need to stick with a paper trail (so I can get rid of it in the future.)

  • stown@sedd.it
    link
    fedilink
    English
    arrow-up
    1
    ·
    11 months ago

    You might want to check out Mozilla Thunderbird or even MS outlook for this. I don’t believe roundcube (web client) has this ability.

    • tofubl@discuss.tchncs.deOP
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      11 months ago

      Thanks for the idea. It’s not quite what I was looking for, but I might look into it more if I don’t find anything better.

      From the looks of it, it requires python scripting anyway, so there isn’t a big advantage to fetching the mail with python and imaplib directly.