Page 1 of 2 12 LastLast
Results 1 to 20 of 23

Thread: how to read Email from INBOX

  1. #1
    Join Date
    Nov 2006
    Posts
    37
    Thanks
    1

    Default how to read Email from INBOX

    helo my application requirement is given below.

    i ahve one pc which is running on fedora core 6 .
    there is a Email account of my name for example
    amit@cgclogic.com
    what ever email comes from other domain via our main server.
    now i want to develope appication which continously watch mail box of my pc that there is a new mail comes or not and if new mail comes then retrieve that email from inbox
    and write into some buffer
    is this possible or not
    and if possible then give me some tips
    Best Regards,
    Amit

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: how to read Email from INBOX

    is this possible or not
    Yes it is.
    The question is why do you want to do this?
    There are so many solutions out there that do this already...

    and if possible then give me some tips
    Tips in what field?
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Nov 2006
    Posts
    37
    Thanks
    1

    Default Re: how to read Email from INBOX

    Quote Originally Posted by high_flyer View Post
    Yes it is.
    The question is why do you want to do this?
    There are so many solutions out there that do this already...


    Tips in what field?
    Dear Sir,
    my project requirement is explained below.

    We have one local mail server of our organisation.
    which is connected with Data-server PC through LAN and Data-server is runing on fedora core 6. There is a Kmail in that i have open one account of my name.
    now what ever mail comes for me that comes from local mail server(POP3) to my Data-server pc.
    now i want to write application which simultaneously check is there any new mail comes or not and if new mail then retrieve the Email and write this mail(messages) to com port and send it to modem(com port of modem )
    i mean first of all i want to know how to write application to check new mail comes or not and if new mail then retrieve that mail for reading and put into buffer
    i m new in linux
    please help me to go ahead with this
    Best Regards,
    Amit

  4. #4
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: how to read Email from INBOX

    The e mail protocoll is so simple , the reason of so much spam...

    http://pages.prodigy.net/michael_san...pop3telnet.htm

    smtp auth protocoll...

    Qt Code:
    1. 220 remote.com ESMTP
    2. ehlo localhost
    3. 250-remote.com
    4. 250-STARTTLS
    5. 250-PIPELINING
    6. 250-8BITMIME
    7. 250-SIZE 0
    8. 250 AUTH LOGIN PLAIN CRAM-MD5
    To copy to clipboard, switch view to plain text mode 

    check the send class on this two file...

    https://qt-webdav.svn.sourceforge.ne..._auth_console/

    On my projekt i plan to write a imap help sub server ... enabe to filter mail on server ... and remove it. Like perl Spamassassin from apache.... i need only more experience on QThread mechanismous.

  5. #5
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: how to read Email from INBOX

    please help me to go ahead with this
    But what help do you need?
    I mean, ok, you stated what it is you want to do, fine.
    But what is the question/problem you seek help about?
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  6. #6
    Join Date
    Nov 2006
    Posts
    37
    Thanks
    1

    Default Re: how to read Email from INBOX

    Quote Originally Posted by patrik08 View Post
    The e mail protocoll is so simple , the reason of so much spam...

    http://pages.prodigy.net/michael_san...pop3telnet.htm

    smtp auth protocoll...

    Qt Code:
    1. 220 remote.com ESMTP
    2. ehlo localhost
    3. 250-remote.com
    4. 250-STARTTLS
    5. 250-PIPELINING
    6. 250-8BITMIME
    7. 250-SIZE 0
    8. 250 AUTH LOGIN PLAIN CRAM-MD5
    To copy to clipboard, switch view to plain text mode 

    check the send class on this two file...

    https://qt-webdav.svn.sourceforge.ne..._auth_console/

    On my projekt i plan to write a imap help sub server ... enabe to filter mail on server ... and remove it. Like perl Spamassassin from apache.... i need only more experience on QThread mechanismous.
    thx very much for replying me. sir, i m new in this mail application field.
    anyway, what you suggest i cannot get it.
    i want to access email from my mailbox of my pc which is runing on FC 6 through application . i mean retrieving and reading email from mailbox is automatically handle by application software. there is no need to manually type command on console
    plz help me to sort out this issue.
    Best Regards,
    Amit

  7. #7
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: how to read Email from INBOX

    Quote Originally Posted by amit_pansuria View Post
    thx very muc
    on FC 6software.
    there is no need to manually type command on console
    Amit
    Ist this postfix mail server (on FC6) or other?
    Have you a pop3 server installed like qpopper?

    If you dont say, install nmap and post the output from:

    Qt Code:
    1. nmap localhost
    To copy to clipboard, switch view to plain text mode 

    Why you speek from " modem(com port of modem ) " You dont have a Network line?
    If you like only forward mail to other server and filter its , and transmit mail on modem phone line, qmail can handle this.. see http://qmail.org/top.html and you must not write a client. And spen a lot of time an idigest problem.

  8. #8
    Join Date
    Nov 2006
    Posts
    37
    Thanks
    1

    Default Re: how to read Email from INBOX

    Quote Originally Posted by high_flyer View Post
    But what help do you need?
    I mean, ok, you stated what it is you want to do, fine.
    But what is the question/problem you seek help about?
    Sir,
    i want to write application which retrieve and read email from my mail box of pc. i m using evolution under gnome.
    but i dont know where to start write application because i n totally new in this.
    can u have some sample program for retrieving and reading mail from emailbox
    i think u get now my point.
    Best Regards,
    Amit

  9. #9
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: how to read Email from INBOX

    If you dont tell the mail server in use...
    I can only link to on good global pop3 imap smtp library and its can grab mail from local ore remote http://sourceforge.net/projects/lhmail/
    inside you find some global sample.

  10. #10
    Join Date
    Nov 2006
    Posts
    37
    Thanks
    1

    Default Re: how to read Email from INBOX

    Quote Originally Posted by patrik08 View Post
    Ist this postfix mail server (on FC6) or other?
    Have you a pop3 server installed like qpopper?

    If you dont say, install nmap and post the output from:

    Qt Code:
    1. nmap localhost
    To copy to clipboard, switch view to plain text mode 

    Why you speek from " modem(com port of modem ) " You dont have a Network line?
    If you like only forward mail to other server and filter its , and transmit mail on modem phone line, qmail can handle this.. see http://qmail.org/top.html and you must not write a client. And spen a lot of time an idigest problem.
    Dear Sir,
    i think u can help in great way n i really thx for u.
    first of all i explain whole architecture of my application. i dont know that whether i m using correct approach or not.
    my client requirement is explained below.

    There are two portable terminals(This portable terminal is just like satellite phone and they are linked with satellite.) each portable terminal have RS-232 port . They are connected with LAPTOP through Rs-232.
    now , suppose PT-1 want to send mail to PT-2 via satellite.
    for that we want to develop a system which is placed at one place.
    so when PT-1 type email that Email comes to satellite and from satellite to system and from System to PT-2.
    i mean system automatically handles this routine.
    now i explain my system.
    i have only one PC which is know as Data-server and running on fedora core .
    Data-server is connected with 30 Modems and each modem has Rs-232 interface.
    for this interface i have multiport moxa serial card .there is no problem up to now
    my Data-server pc is also connected with my local mailserver(pop3) via LAN
    i have to write application for data-trasfer(file,Email ,sms) which handles all these routine.
    i think up to this is outof yr scope.

    any user want to trasmit mail to any portable terminal through system.
    for that first of all mail comes to my organisation local mail server and from local mail server to Data-server pc's mailbox.
    now my problem start here.
    i want to retrieve this mail from data-server mailbox(Evolution) and put it into buffer and
    after that i want send this data to modem(RS-232 port of Modem , from modem to satellite and satellite to Enduser i.e. Portable terminal).
    so i hilight my problems
    (1) email can easily goes to data-server to local mail server via lan through smtp.
    but when mail comes from local mailserver to INBOx of dataserver, at that time how to retrieve and read this email via application so that my system is able to send this data to modem through serial communication.
    i think u now get clear picture of my problem,still if u have confuse about my problem defination then let me know
    Waiting for yr reply eagerly,
    Best Regards,
    Amit

  11. #11
    Join Date
    Nov 2006
    Posts
    37
    Thanks
    1

    Default Re: how to read Email from INBOX

    Quote Originally Posted by patrik08 View Post
    If you dont tell the mail server in use...
    I can only link to on good global pop3 imap smtp library and its can grab mail from local ore remote http://sourceforge.net/projects/lhmail/
    inside you find some global sample.
    Sir,
    i dotn have mailserver at my pc which is running on FC 6
    my PC is connected with my company's local mailserver.it has pop3 mailserver.
    now when email comes from outside that mails comes from local mailserver to my mailbox
    (inbox of pc)
    up to this i dont have problem . but now i want to retrieve this mail from my mailbox via
    application which is running on same pc.
    so how do i write such application whcih retrieve this emails and read it and put into buffer
    i think u may now get my point
    Best Regards,
    Amit

  12. #12
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: how to read Email from INBOX

    all you need is to use a ready made pop3 lib.
    There are quite many, here is one I found on sourceforge:
    http://sourceforge.net/projects/nuntius/
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  13. #13
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: how to read Email from INBOX

    Look at this:
    http://sourceforge.net/projects/pop3filter/
    I think this is exactly what you want to do.

    What you want to do is called e.mail proxy.
    Search sourceforge for it, there are meny ready made applications.
    You don't need to reinvent the wheel.
    Last edited by high_flyer; 5th June 2007 at 11:32.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  14. #14
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: how to read Email from INBOX

    Quote Originally Posted by amit_pansuria View Post
    There are two portable terminals(This portable terminal is just like satellite phone and they are linked with satellite.) each portable terminal have RS-232 port . They are connected with LAPTOP through Rs-232.
    now , suppose PT-1 want to send mail to PT-2 via satellite.
    for that we want to develop a system which is placed at one place.
    so when PT-1 type email that Email comes to satellite and from satellite to system and from System to PT-2.
    i mean system automatically handles this routine.
    now i explain my system.
    i have only one PC which is know as Data-server and running on fedora core .
    Data-server is connected with 30 Modems and each modem has Rs-232 interface.
    For this routine you must write a server not a client....
    a server to make a bridge from organisation local mail server or retrieve mail outside ... -> to data-server (i suppose on data-server is connect a modem to outside terminal )
    If you have a clean autenfication like ldap or mysql on mail server can
    check incomming mail from user xxx and forward
    and all terminal grap mail on data-server from world or lan or company mail...
    on RS-232 device..


    i want to retrieve this mail from data-server mailbox(Evolution) and put it into buffer and
    after that i want send this data to modem(RS-232 port of Modem , from modem to satellite and satellite to Enduser i.e. Portable terminal).
    exact here the new server grab mail and distribute on each user from the criteria
    by autefification ldap or other..



    so i hilight my problems
    (1) email can easily goes to data-server to local mail server via lan through smtp.
    but when mail comes from local mailserver to INBOx of dataserver, at that time how to retrieve and read this email
    Amit
    Here your new server grab mail ( by autefification ldap or other..) on dir /var/mail (from file ) or other path depend of mail server system.... and forward on port RS-232 device.. so all your terminal can grab inside and outside mail or sms by gateway on mail server...

    To begin to write a server i know a good sample ... http://sourceforge.net/projects/sketchbook/ this make job as server and client... is transmit data text image and all you wand.

    IMO: email is only text and image or attachment are base64 encoded...

  15. #15
    Join Date
    Nov 2006
    Posts
    37
    Thanks
    1

    Default Re: how to read Email from INBOX

    Quote Originally Posted by high_flyer View Post
    all you need is to use a ready made pop3 lib.
    There are quite many, here is one I found on sourceforge:
    http://sourceforge.net/projects/nuntius/
    Sir,
    i chech Nuntius POP3 library but its not downloadable
    when i click on download it shows nothing
    plz tell me any other
    amit

  16. #16
    Join Date
    Nov 2006
    Posts
    37
    Thanks
    1

    Default Re: how to read Email from INBOX

    Quote Originally Posted by high_flyer View Post
    Look at this:
    http://sourceforge.net/projects/pop3filter/
    I think this is exactly what you want to do.

    What you want to do is called e.mail proxy.
    Search sourceforge for it, there are meny ready made applications.
    You don't need to reinvent the wheel.
    Sir,
    i search pop3 filter ,
    but how to use this filter.
    i mean suppose if i install this filter on linux then it automatically interct with mailbox of evolution but after that what i have to do .
    Regards,
    Amit

  17. #17
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: how to read Email from INBOX

    read the full Thread i found 3 different library..

  18. #18
    Join Date
    Nov 2006
    Posts
    37
    Thanks
    1

    Default Re: how to read Email from INBOX

    Quote Originally Posted by patrik08 View Post
    read the full Thread i found 3 different library..
    Sir,
    i found one library named LHMail which is related to mail
    can i use this library for this purpose
    if i then how
    amit

  19. #19
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: how to read Email from INBOX

    Amit, READ THE DOCS of the libs you want to use.
    We do exactly that.
    I have no idea about these libs, and in order to tell you about them I will have to read the docs.
    Makes more sense if you read it directly, and not read what other people tell you from what they read, don't you think?
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  20. #20
    Join Date
    Nov 2006
    Posts
    37
    Thanks
    1

    Default Re: how to read Email from INBOX

    Quote Originally Posted by patrik08 View Post
    read the full Thread i found 3 different library..
    Sir,
    sorry for disturbing you again.
    i found one library "qtspaxy-src"
    now on my pc i m using evolution mail
    if i install this library then is then any configurations required such that it directly interact with my mailbox.
    and from my application i call API of this library then it should be able to retrieve mail from my mailbox.
    now question is how to configure this library and how to use it
    Best Regards,
    Amit

Similar Threads

  1. QIODevice read()
    By ShaChris23 in forum Newbie
    Replies: 1
    Last Post: 3rd May 2007, 00:29

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.