adly3000
Feb 10 2006, 09:35 PM
i wrote a funtion to list the imap mailboxes and then write the usneen messages besides to thier relative mail boxes: 1- it will search the mail boxes and display the inbox at the top then it will display the remaining mailboxes. everything working great, but always showing me unseen=0????!! i don't know why?! CODE <? session_start(); $mboxrit = @imap_open("{mail.adly3000.trap17.com:143}", "".$_SESSION['SESSION_USER_NAME']."+".$_SESSION['SESSION_MAIL_HOST']."", $_SESSION['SESSION_USER_PASS'],OP_HALFOPEN) or header("Location: error.php?ec=3"); $list = imap_list($mboxrit,"{mail.adly3000.trap17.com:143}","*"); function cmp ($desired_mailbox_name, $b) { if (strcasecmp($desired_mailbox_name, 'INBOX') == 0) { return -1; } elseif (strcasecmp($b, 'INBOX') == 0) { return 1; } } if (is_array($list)) { reset($list); while(list($key, $val) = each($list)) { $mailbox_name = imap_utf7_decode($val); list($undesired_mailbox_name[$key], $desired_mailbox_name[$key]) = explode("}", $mailbox_name); } usort($desired_mailbox_name, 'cmp'); while(list($key, $val) = each($desired_mailbox_name)) { if ($val != ".mailboxlist") { $mailbox_status = imap_status($mboxrit,"{mail.adly3000.trap17.com:143}".$val."",SA_UNSEEN); if (isset($mailbox_status)) $unseen = $mailbox_status->unseen; if (strstr($val, ".")) { list($inbox,$boxname) = explode(".", $val); } $val = ((isset($boxname)) ? $boxname : $val); $mailboxes = (isset($mailboxes) ? $mailboxes."<tr>" : "<tr>"); $mailboxes .= "<td>".$val; if ($unseen > 0) $mailboxes .= " (".$unseen.")"; $mailboxes .= "</td>"; $mailboxes .= "</tr>"; } } } imap_close($mboxrit); ?> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head>
<body> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <? echo $mailboxes; ?> </table> </body> </html>
Reply
Recent Queries:--
perl imap top unseen - 1139.83 hr back.
Similar Topics
Keywords : imap, status, unseen, problem, wrote, funtion, list, imap, mailboxes, thiere, stats
- Problem With My Email : [urgent]
Can't send or receive email. (1)
Flash Problem
sometimes the buttons will load the wrong link. (7) Its weird but sometimes when you hit the forums or roster button on my flash banner it will load:
www.childrenofconan.trap17.com/index.html instead of what its suppost to. It works fine, but if you
mess around and click the buttons for a little bit you will notice this happening. This is a problem
because people visiting the site will sometimes click the button once and be like oh I guess the
link is broken and never come back, if anyone has a solution to what could be the problem it would
be awesome. This is one of my first custom flash banners and im just confused what....
I'm In Love! Now What Do I Do?
This is the first time I've ever had a problem with a girl. (6) I am a jock, I'm man enough to admit it. I'm one of the big strong men on campus. I've
never had a problem asking out, flirting, or approaching girls. Unless it comes to this one girl.
I've known her since 8th grade and fell in love with her the first time I saw her. After I got
to know her a little more she turned out to be even more amazing. But, she isn't the same as
most girls when it comes to giving off signals. I don't think she has ever even gone out with
anyone, so I don't want to come on overly strong and just skip dating and t....
Problem With Time/date On My Computer
(6) This strange issue has been happening to me recently. I notice that when I shut down my computer,
and then start it up the next time, the time and date of my computer remains the same as that of the
time and date that I shut down my computer, and it continues from that time and date until I adjust
it manually myself. For example, if I shut down my computer on 3 May 2008, 10pm, even when I switch
on my computer on 4 May 2008 9am, the date and time shows 3 May 2008, 10 pm. I don't understand
why, I did not automatically synchronize it with an internet server, and I....
Gamma Servers' Problem
This topic is for all who have their account on Gamma Server & ha (1) Okay I see a lot of chaos all around and my site zoebelkin.co.cc is still down. Everything including
FTP, CPanel etc are down. My site is on the gamma server. I see that all the servers are moved
around a lot and the IP blocks also changing. So what is the new IP set for 'gamma'. When
doing a reverse check on gamma I see it is still assigned to it's previous IP but when I'm
trying to access the previous IP's port 80 then I get a Server not found error. Also the
gamma.xisto.com name for the server fails to open the default Apache page which it used to ....
Ip Problem
(2) I CANNOT ACCESS MY SITE: http://pinoyteens.net from IP: 124.6.174.5 and 222.127.170.30 I'm
having a dynamic IP, this really begins to suck.....
Connection Problem!
??? (3) There are many softwares which need internet connection, and there is a problem. The program itself
does connect to the internet at my home and different places, but not at my University! So, how
can I force this program ti be connected to the internet. The thing is the internet is present, but
the program, somehow, can not find it. List all the ways!!!....
I Have A Problem With A Question
R.S. question does not make logical sense (8) I was doing a mok exam for my R.S. GSCE (Religous Studies) and it was the paper from the previous
year i think. Then a question came up "the amount of religion in the is proof god exists, do you
agree? give reasons for both sides of this argument" So whats the problem, the problem is it is
logically impossible to argue both sides Why? : Proof means something that establishes something a
true or factual beyond all arguable doubt. So if i were to argue that it is proof for why God
exists, which i wouldnt because it isnt, for me to argue that it isnt proof would make t....
Frontpage Problem
Strange message when press Submit (0) Trying to set up a "skeleton" form generated with Frontpage 2000. After installing Frontpage
Extensions, when I hit Submit on the form I get this response: *-*-* :-| :^| :-/ :-( 8-( *-*-*
* status=1 * osstatus=0 * msg=FrontPage security violation. * osmsg= I'm new at
this, and don't understand any of the above response. Please explain the above stuff and suggest
how to fix it. Thanks, Jack Here's the brief code: <!--webbot
bot="SaveResults" S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE" S-Email-Format="TEXT/CS....
Can Anyone Help Me With My Graphic Card - 8600 Gt
temperature problem :D (8) Hi, My system specs are as follows: QUOTE Processor : Intel Core 2 Quad Q6600 @ 2.4 GHz
Motherboard: nVidia 650i Ultra RAM : 2 GB GfxCard : XFX 8600 GT (512 MB) Problem is all of my
nVidia component are now managed by a single Control panel - nVidia Control panel and it doesn't
show any tab for graphic's card temperature. I want to know the temperature of my graphics
card. does any body know any software for this ?? or at least a work around ? thanks /biggrin.gif"
style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />....
How To Attain "level 1" Status?
...must be someting new. (5) Hello everyone, I used to use trap17 a lot back in the day, but have since switched over to
computinghost due to my lack of free time. I wanteded to drop by and post my new website design so
I could get some feedback on it. However the site won't allow me to post in that catagory,
presumably because I am not "Level 1." I am a premium member, and have made 193 quality posts to
date. Do you think I'm really at risk of spamming things? /wink.gif"
style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> The real error I get is
"Sorry, you do not h....
Nvidia Display Driver Problem
(2) Hello everyone I have a problem with my new pc: my card the 8500gt 512mb graphics ... Game
slow-loading computer freezes, when I launch a video: message (the display driver NV4_disp not
working properly) + blue screen, reboot. My configuration: QUOTE -- Lg_95c abit motherboard.
-- Dual Core 3.4 GHz -- PSU 300w -- 2 gbs ddr2 ram (no problem with memtest) -- NVidia graphics
card 8500gt 512mb As recommended by Trap17, use an online translator if you don't speak
English well. http://translate.google.com/translate_t?langpair=fr|en ....
Html Ascii Codes - A Complete List
downloadable php file (3) I was often frustrated at how, despite there being thousands of ASCII "special characters" such as
&8659; , websites that claimed to list them all only listed the first 256. To combat this issue,
I have created a table which lists the first 10,001 - from � to &10000; I am sure
there are many more but it is simply not feasible to create a table with many more rows as viewing
it would put terrific strain on the browser.! You can download the file in two forms. One uses
PHP to dynamically create the table (1KB), the other has it ready-made in pure HT....
List Of Free Directories To Submit Your Websites
(2) Hi: Submission in free directories is a world-known way to increase ranking and traffic. But most
of you don't know a good source of that list of directories. Here is a great source of free
directories list . Just start submission in those directories in your free time, and see you
ranking.......
Selling Bone Marrow, Dire Problem.
(7) I'm an American, and I've been out of "the system" for over a decade. I can't be
officially employed, because it would generate income tax. The tax would be automatically withheld
from me, and go towards subsidizing lovely things like human torture, war atrocities, warrant-less
domestic wiretapping, and general treason and inhumane practices. So, I'm left to work under
the table. This has hit me pretty hard, and now I have a ton of cavities I can't pay to have
filled. If left unchecked, this will soon kill me slowly and painfully. So as I'm ....
Rpg Maker 2003 Music Problem
(1) I have been working with RPG Maker 2003 and I have run into a problem. When I open the BMG tab I
try to listen to music. However, when I click play nothing happens. I have the Rtp file with the
standard midis in it. But they just wont play. The WAV files included do play. The only way they
seem to play is if I put all of the files into my windows media player. Once the first song has
played and as long as the player is running I can listen to songs via the RM2K3 program. However,
if I stop the player or mute the player I can't hear them on the program. I'....
Two Lan Ports Problem
cant connect to counter-strike server (1) here....i think i know the problem...but i cant find the solution.... I use windows XP SP 2 ...Asus
motherboard.. I use integrated Ethernet port (NVIDIA nforce controller) to connect to the hostel LAN
and used the same connection to get internet (using proxy). I played counter-strike without any
problem... Everything worked fine until i took a direct ADSL internet connection... So i installed
a separate ethernet card (INTEX rtl8139D) which i use to connect to the internet... So now i have
two LAN ports ...one for internet and one for LAN... The problem is...i cant con....
A List Of Great Free Software
Good open source variants of commercial software (9) 1.GIMP - GNU Image Manipulation Program || http://gimp.org GIMP is a good variant of Adobe
Photoshop. It is tiny in download size (only 14 MB). Runs under most operating systems including
Windows, Linux, and Mac OS X. This program even comes pre-installed with Ubuntu Linux. I would
highly reccommend using this program for graphics because it is a free and highly extensible. It can
even open up the native Photoshop image format. I also am able to use Photoshop brushes with GIMP.
2.OpenOffice.org 2.3 || http://openoffice.org OpenOffice.org is an office suite compa....
Problem Creating Email Accounts In Cpanel
(13) this is the message i recieve... "The e-mail account xxxxxxxx@ wildcatexotics.com with the login
Sorry, you have exceeded the maximum allowed email accounts. and password xxxxxxxx with a quota of
unlimited megabytes was successfully created." can an admin please help me with this issue?....
Free Site Counter Stats
(7) hi frnds everyone want to keep an eye on their site traffic. histats is a really great one i found
with gives site stats for free. it have many amazing features. visit www.histats.com i am
sure u will like it... this is my first post so excuse me if my post have any mistakes....
Dandruff Problem
(27) I am a average built, Indian, Male, aged 20 person. I have a very serious problem with the
dandruff. It comes back within an hour after taking a head bath. It is bothering me a lot. It is
very itching and really irritating. I have tried applying lemon on my head but in vain. The dandruff
still comes back. My mom advised me not to apply lemon too much on head so I have stopped applying
that also on head. I went to a doctor and he asked me to shampoo hair with a medicated shampoo
called SELSUN. But still the dandruff problem is lasting and with no effect with the medic....
Free Sms Site
List of free SMS sites (4) I start this topic for us to post free sms working site. If anyone of us have a free sms site that
works, don't hesitate to post it here! Thank to all of you to participate. /wink.gif"
style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> EDIT--- Kindly give
description about the SMS site, if possible :-)....
Proxy List
(29) Here is a list of proxies that I find to be useful for some deeds that you people may or may not
engage in. QUOTE http://anonymouse.ws/ http://www.shadowbrowser.com/?pin=trial
http://www.proxyking.net/ http://www.anonymousindex.com/ http://www.hidemyass.com/
http://www.proxy7.com/ http://www.proxyfoxy.com/ http://www.78y.net/ http://www.75i.net/
http://www.dzzt.com/ http://www.proxyguy.com/ http://www.gamesproxy.com/ http://www.proxyz.be/
http://www.antifw.tk/ http://www.proxyhero.com/ http://www.proxydrop.com/
http://www.proxydrop....
Dvd Drive Problem
It Wont Read Anything! (7) Recently my DVD drive was playing everything, today i put a dvd disk in, it says nothing comes up
with no auto play or nothing loads at all. so i go to my computer and load from there, it dont load.
It says please insert disk... Im like WTF so i put a cd disk in and the same exact thing happened. i
tried about 7 different disks including cd and dvd disks and burned ones too. Nothing at all, So i
go to google and check around for tuts on fixing this, it gives me this registry thing. Like delete
lowerfilter and upperfilter in this folder. I do it, Still nothing happens, so....
Imap Problem
i want to check if the message is not seen (1) i'd like to know which message i had not been seen, so i searched the manual and fid 2 flags
says Unseen == 'U' || Recent == 'N' mean. but i don,t understand what does Unseen ==
'U' || Recent == 'N' mean(what he mean by flags )? i want to check if the
message is not seen, so how to do that? i tried CODE $inbox =
@imap_open("{mail.mysite.com:110/pop3}",
"".$_SESSION['SESSION_USER_NAME']."+".$_SESSION['S
ESSION_MAIL_HOST']."", $_SESSION&....
Problem Installing Sims 2 Nightlife
update failure (23) I have the Sims 2. I tried to install Sims 2 Nightlife expansionpack. He reches 100 % with
installing the game...then he automatically run the updat for the sims 2. But when he's going
trough the files he stops st the file: CSBin/package.exe He says there is a error, and then when I
click ok, install terminates and goes back from 100% to 0%. Can anybody tell me what's going
wrong here? Has anyone else had this problem? I just can't figure it out. And on the internet I
found a few people who had the same problem but just havent had an solution for it yet. Ca....
Super Smash Brothers 3
with character list! (43) Super smash brothers 3 will be coming out with the new nintendo revolutions. They say it will
support up to 8 players. I've seen most if not all of the characters that will be featured in
this game, and i must say this will be a heck of a fight. Here is the character list: QUOTE
Dr. Mario FLudd Mario Tanooki Mario Mario Luigi Shadow Mario Frog-suit Mario Hammer-suit Mario Yoshi
Boshi (LOL, yoshi's rival) Capt. Syrup Peach Daisy Bowser Bowser Jr. Koopa Viruses Wart Birdo
Magikoopa Donkey Kong Diddy Kong Dixie Kong King k. Rool Petey Pirahna Toad Wario Waluig....
Did You Face Problem Opening Pdf With Firefox?
(14) Hello, I have a question to ask since the 1st day of my download of firefox ... Whenever i open a
pdf file online using firefox, the firefox is get not responding and my comp got hanged ... i have
to manually end the firefox program via windows task manager .. I tried to wait the pdf to load, but
it seems that it takes forever .. so im guessing it's the trail version's bug .. but after a
few updates, I still have the problems with my firefox ... Is this my computer's problem or
firefox problem ? If it's a firefox bug, it's impossible that no1 report ....
Free Classified Ads--no Hype
Regional ads with photos at Craig's List (3) Craig's List has been around forever and it just keeps getting better. There's no hype, no
popups, no banners, just legitimate ads with photos that really pull. Our son sold 2 items over
there last month. You have to renew them or they fall off and it's best to cancel and re-list
your stuff, weekly, to stay near the top. /smile.gif' border='0' style='vertical-align:middle'
alt='smile.gif' /> Craig's List ....
C Code, Can U Solve This?
Another interesting problem (22) Hello, Look at the code given below CODE void fun(void) { /* Put your code here so
that main does not print 20 */ } int main() { int i = 20; fun();
printf("i = %d\n", i); return 0; } 1. You are allowed to put your code
ONLY in fun. 2. You are not allowed to change even one character in main. 3. You should not use
functions like exit(),abort() in the function fun. How do I manipulate and change the value of i?
Have fun.......
Looking for imap, status, unseen, problem, wrote, funtion, list, imap, mailboxes, thiere, stats
|
|
Searching Video's for imap, status, unseen, problem, wrote, funtion, list, imap, mailboxes, thiere, stats
|
advertisement
|
|