Results 1 to 2 of 2

Thread: Downloading specific mails using POP3 protocol.

  1. #1
    Join Date
    Feb 2010
    Posts
    68
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Downloading specific mails using POP3 protocol.

    Hello there,

    You probably know that peer2mail clients are connecting to mailboxes, and then they are downloading small parts (5-20 MB) of uploaded file. After they end this process, they merge these parts, called "segments". Each segment is in one mail, as an attachment. And now the most important part: segments have their numbers, from 1 to X; such a number is usually placed in mail's subject. The peer2mail clients are downloading the segments starting with the first and ending on last one. My question is: how to do that using POP3 protocol? Is it possible?

    Thank you in advance for your questions for details .

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Downloading specific mails using POP3 protocol.

    Connect to server, authenticate. Send STAT to check for messages, If messages available send LIST, ignore messages that are too short and place the rest in a queue.
    Send TOP to retrieve header for each message. Remove the ones from the queue which don't have valid Subject.
    Now use RETR on the rest to retrieve your segments.
    Use DELE to delete messages, ensure to delete backwards to keep server message order.
    QUIT from server.
    Decode saved messages to disk.

Similar Threads

  1. Replies: 1
    Last Post: 20th April 2010, 08:14
  2. Simply Client E-mail (POP3)
    By Altertwin in forum Qt Programming
    Replies: 5
    Last Post: 25th February 2010, 17:27
  3. Problem with downloading a webpage
    By Fenix Voltres in forum Newbie
    Replies: 2
    Last Post: 25th June 2009, 19:55
  4. SSL protocol
    By tpthyd in forum Qt Programming
    Replies: 1
    Last Post: 2nd March 2009, 12:53
  5. Downloading from a clean url
    By travlr in forum Qt Programming
    Replies: 1
    Last Post: 21st June 2007, 21:55

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.