Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to check and get notified when receive a specific email?
Forum Updated to NodeBB v4.3 + New Features

How to check and get notified when receive a specific email?

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 3 Posters 1.6k Views 2 Watching
  • 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.
  • cocoC Offline
    cocoC Offline
    coco
    wrote on last edited by
    #1

    Hello. I would like to write a Qt program which checks and notifies when I get a specific email. I have checked some network examples on Qt document but can't seem to find what I need. Perhaps I missed something. Could anyone point me out where to start? Or are there any examples?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      maybe this can be good start
      http://qt-apps.org/content/show.php/Pop3Retriever?content=91315
      If you need more , I would go look for a pop3 library to use.
      Writing an email client from scratch is huge task. :)

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        Can you explain your use case a bit more ? Like @mrjj wrote writing a full blown client is not a simple task.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • cocoC Offline
          cocoC Offline
          coco
          wrote on last edited by
          #4

          @mrjj Thank you for your suggestion. I will check that out.

          @SGaist

          Can you explain your use case a bit more ?

          I have this Qt program to track an object which have a specific pattern of movement. From time to time, could be daily, I will get an email if that object needs to be relocated in order to avoid a collision. I would like to get a notification shown in my program when I get that specific email among all other mails.

          I think I should first be able login to an email, check for specific word (of sender or subject) and once I find that word, I tell the program to show notify me.

          I have looked around and found that QSslSocket might be useful for logging in to gmail? Then I can use QDialog to show a notification?

          All suggestions are welcome. Thank you.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            So you would need some sort of imap client to go through your emails ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • cocoC Offline
              cocoC Offline
              coco
              wrote on last edited by
              #6

              Hello,
              So I found some email examples from the link @mrjj suggested which uses QXmlStreamReader along with Atom system (https://developers.google.com/gmail/gmail_inbox_feed). Then I matched the parameter eg. author name I got from Xml file with a specific sender name and voilà! Thank you.

              1 Reply Last reply
              1

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved