• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

COUNTING unread emails

Scheduled Pinned Locked Moved Utilities
4 Posts 2 Posters 1.5k Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    amanzimdwini
    last edited by Dec 3, 2018, 6:51 AM

    Hi all - wondering if anyone knows of a fast way to just display the number of UNREAD emails for various accounts? EG:
    joe@public.com 2 unread emails
    suzieQ@person.net 3 unread emails
    (I wear too many hats, and this would be a nice thing to see in the morning)

    Thanks,
    K

    1 Reply Last reply Reply Quote 0
    • L Offline
      lavolp3 Module Developer
      last edited by Dec 3, 2018, 7:36 AM

      Good idea for a module.
      A first idea looking at this module
      https://github.com/MMPieps/MMM-Mail.
      In the node_helper.js you can find an idea how emails are fetched.
      There is a variable in client.search function:

      console.log("%s Mails fetched",Result.length);
      

      Result.length is the variable you’re looking for.
      So maybe you could use this module and rework it to just show the number of mails and not the mails themselves.

      How to troubleshoot modules
      MMM-soccer v2, MMM-AVStock

      A 1 Reply Last reply Dec 5, 2018, 8:12 PM Reply Quote 0
      • A Offline
        amanzimdwini @lavolp3
        last edited by Dec 5, 2018, 8:12 PM

        @lavolp3 THAT made my head hurt. Schoene Idee, aber ich kann kein whatever-that-language is. I’d be willing to learn, though, so I’ll start reading up on modules.

        K

        L 1 Reply Last reply Dec 14, 2018, 8:43 AM Reply Quote 0
        • L Offline
          lavolp3 Module Developer @amanzimdwini
          last edited by lavolp3 Dec 14, 2018, 9:26 AM Dec 14, 2018, 8:43 AM

          @amanzimdwini so, I played around a bit since I thought it would be a good idea as well.

          I found two mail modules, MMM-Mail by @Pieps and one called email. I can’t get the email module to work, but this one has support for multiple accounts, so that’s unfortunate.

          With the MMM-Mail one, I have forked it and created a branch. Unfortunately it currently only supports one account as far as I can see. Try it out and let me know what you think.
          https://github.com/lavolp3/MMM-Mail

          Clone it by putting in

          git clone https://github.com/lavolp3/MMM-Mail
          

          I still have some issues with the module itself (giving me popup messages far too often and failing to connect with the mail account too often, but if this works I’ll make a PR for the original module

          How to troubleshoot modules
          MMM-soccer v2, MMM-AVStock

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Sam, technical setup by Karsten.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy