Board index » delphi » specific pop3 retrievel

specific pop3 retrievel

Hi

My pop3 mailbox can receive mail any...@pop.com.
1. Is it possible via some pop3 vcl to retrieve only email for
speci...@pop.com or
2. Retrieve only mail with a headers starting with "something specific"?

3. Automatically save the attachment to a specific folder after
download?

If the above is possible who maybe has a small example.
Normally if I connect to the mailbox via outlook express it will
retrieve everything in the pop3 mailbox.

I hope my questions are not too cryptic. If it is I'll try to explain
better.
Thank you for a hopefully positive reply.
Theo

 

Re:specific pop3 retrievel


t...@powertill.com (Theo Pistorius) wrote in <3A7F07B2.72AA3354
@powertill.com>:

Quote
>1. Is it possible via some pop3 vcl to retrieve only email for
>speci...@pop.com or
>2. Retrieve only mail with a headers starting with "something specific"?

If you read the headers, you can then DL only the messages you want.

--
Chad Z. Hower (Kudzu) - Church Hill, TN - Team Indy
      "Programming is an art form that fights back"
Forget the Y2K problem, Lets fix the W2K problem.
http://www.pbe.com/Kudzu/ - Free Delphi/CBuilder components and articles

Re:specific pop3 retrievel


Yep, I know that.... I just don't know how<g>. Hence my post.
Theo

Kudzu - Team Indy wrote:

Quote
> t...@powertill.com (Theo Pistorius) wrote in <3A7F07B2.72AA3354
> @powertill.com>:
> >1. Is it possible via some pop3 vcl to retrieve only email for
> >speci...@pop.com or
> >2. Retrieve only mail with a headers starting with "something specific"?

> If you read the headers, you can then DL only the messages you want.

> --
> Chad Z. Hower (Kudzu) - Church Hill, TN - Team Indy
>       "Programming is an art form that fights back"
> Forget the Y2K problem, Lets fix the W2K problem.
> http://www.pbe.com/Kudzu/ - Free Delphi/CBuilder components and articles

Re:specific pop3 retrievel


Quote
"Theo Pistorius" <t...@powertill.com> wrote in message

news:3A7F81F0.650A0838@powertill.com...

Quote
> > >2. Retrieve only mail with a headers starting with "something
specific"?
> > If you read the headers, you can then DL only the messages you want.
> Yep, I know that.... I just don't know how<g>. Hence my post.

See TIdPOP3.CheckMessages, and TIdPOP3.RetrieveHeader in the help file.  You
have to filter and build the list of message headers manually.

hth...

Don

Re:specific pop3 retrievel


Quote
"Dalibor Toman" <dto...@fortech.cz> wrote in message

news:3a80033f_1@dnews...

Quote
"Theo Pistorius" <t...@powertill.com> wrote in message

news:3A7F81F0.650A0838@powertill.com...
Quote
> Yep, I know that.... I just don't know how<g>. Hence my post.

the POP3 server should support 'TOP x y' command which returns a header
lines of the message X plus Y lines of message's body. So all you have to do
is to send "TOP x 0", parse message headers and determine whether to
download the message or not.

Not all POP servers support 'TOP' command. Some servers doesn't support 'TOP
x 0' (nothing returns).

--
Best Regards,
Vladimir Vassiliev
http://voldemarv.virtualave.net

Other Threads