James


I just had a look at the livedocs for CFMX
http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/tags-b14.htm#wp11
01854
(assuming you are on cfmx) and message number can actually be a comma
separated list of all the messages you would like to retrieve, this
should save you having to call cfpop for each email and allow you to
re-use the connect.


Not sure if the getHeaderOnly action correctly only gets the header but
you can look at the commands being sent to the mail server in the mail
logs which should give you some indication of what  POP commands are
being sent to the mail server


HTH


KOla


-----Original Message-----
From: James Smith [mailto:[EMAIL PROTECTED]
Sent: 21 June 2004 11:37
To: CF-Talk
Subject: RE: CFPOP streamlining


Thanks, that is what I am in the process of doing now, I was more
wondering
if there were any protocol issues here where one method would be
considered
"more propper" than the other.

  _____  

From: Kola Oyedeji [mailto:[EMAIL PROTECTED]
Sent: 21 June 2004 11:32
To: CF-Talk
Subject: RE: CFPOP streamlining

James you could well be right, it may actually be quicker to download
and then ignore the additional emails as opposed to constantly
opening/closing connections to the mail server - I would test both
options and see which one performs better.

Kola

-----Original Message-----
From: James Smith [mailto:[EMAIL PROTECTED]
Sent: 21 June 2004 11:06
To: CF-Talk
Subject: CFPOP streamlining

I have a template that retrieves mail and processes it to extract order
information using cfpop.  At any one time it can be retrieving up to 300
emails of which around 200 will be orders, the rest will be a mixture of
junk and correspondence aimed at the human who reads the account.

I am currently doing a cfpop to retrieve the headers only, then looping
over
these doing another cfpop for each to get the message body resulting in
200+
pop connections in total.

Would it be better to just do one connection, retrieve everything, and
simply ignore to 100 message bodies I am not interested in?

--
James Smith
[EMAIL PROTECTED]

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.707 / Virus Database: 463 - Release Date: 15/06/2004
  _____
  _____
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to