Re: [PHP] IMAP Search

2006-06-19 Thread Richard Lynch
Of all the functions to use @ with, and to ignore error messages and
warnings, IMAP is the *last* one you want to do that with.

Add some error checking, and just forget using @

Meanwhile, both your questions didn't actually have a question, nor
any explanation of what was going wrong or right or...

http://www.catb.org/~esr/faqs/smart-questions.html

On Mon, June 19, 2006 5:00 pm, CodeHeads wrote:
 Hello all,

 I am having a problem trying to get the subject corenspond with the
 message ID on a search.

 here is my code so far:
 echo h1Search Results/h1;
 $WORDS = $_POST['words'];
 $search1 = BODY \$WORDS\;
 $SEARCH = @imap_search($conn, $search1, SE_UID);
 $arrData = $SEARCH;
 $mailHeader = @imap_headerinfo($conn, $arrData);
 if($SEARCH == FALSE) {
   echo pSorry, did not find anything you were searching for/p;
 } else {
 foreach ($arrData as $ID) {
echo $ID - TOOK OUT THE HTMLbr\n;
 }
 }

 This is the first for messing with IMAP! LOL

 Thanks in advance,
 Will



-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] IMAP Search

2006-06-19 Thread CodeHeads
On Mon, June 19, 2006 7:12 pm, Richard Lynch wrote:
 Of all the functions to use @ with, and to ignore error messages and
 warnings, IMAP is the *last* one you want to do that with.

 Add some error checking, and just forget using @

 Meanwhile, both your questions didn't actually have a question, nor
 any explanation of what was going wrong or right or...

 http://www.catb.org/~esr/faqs/smart-questions.html

 On Mon, June 19, 2006 5:00 pm, CodeHeads wrote:
 Hello all,

 I am having a problem trying to get the subject corenspond with the
 message ID on a search.

 here is my code so far:
 echo h1Search Results/h1;
 $WORDS = $_POST['words'];
 $search1 = BODY \$WORDS\;
 $SEARCH = @imap_search($conn, $search1, SE_UID);
 $arrData = $SEARCH;
 $mailHeader = @imap_headerinfo($conn, $arrData);
 if($SEARCH == FALSE) {
  echo pSorry, did not find anything you were searching for/p;
 } else {
 foreach ($arrData as $ID) {
echo $ID - TOOK OUT THE HTMLbr\n;
 }
 }

 This is the first for messing with IMAP! LOL

 Thanks in advance,
 Will


U, you referred me to a page about smart questions..what about
your TOP posting?

Nevermind, I see the PHP list is filled with smart asses so I will find it
out on my own.

And YES, there was a question in there, I guess everyone has a simple mind.

Will

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] IMAP Search

2006-06-19 Thread Jochem Maas
CodeHeads wrote:

...

 
 U, you referred me to a page about smart questions..what about
 your TOP posting?

Richard has more than enough karma on this list to get away with a top-post
every half hour or so.

 
 Nevermind, I see the PHP list is filled with smart asses so I will find it
 out on my own.

insert any number of smartass/sarcastic/told-u-so type comments here

 
 And YES, there was a question in there, I guess everyone has a simple mind.

I suppose we have to infer the question?

 
 Will
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php