[PHP] IMAP
I would like to begin working with mail servers in PHP, with the intent of creating a webmail system for my site. I am trying to get things working, but am not exactly sure how to get everything installed and configured correctly. I know that I have to install a c-client library, but am not sure how to do this. Not meaning to sound too helpless, could someone give me some assistance installing and configuring the c-client? -- Jason W. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] imap
how can i convert the charset in an e-mail from ascii or any iso-standard, to the unicode-standard, so the webmail can be used outside english-speaking areas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] imap
documentasion: string imap_fetchbody (int imap_stream, int msg_number, string part_number [, flags flags]) how can i exploit the different part_numbers??? what do hey stand for? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] imap
is there any function to convert the body of a e-mail-massege from mime like you do with the imap_mime_header_decode() ??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] imap?
I'm using imap_header to get all the headers in a newsgroup on a NNTP-server like this if($nntp=imap_open("{sunsite.auc.dk/nntp:119}dk.admin","","";)) { for($i=1;$i<5;$i++) { $header = imap_header($nntp, $i); echo "MESSAGE ID: " . HTMLSpecialChars($header->message_id) . "\n"; echo "SUBJECT:" . $header->Subject . "\n"; echo "SENDER ADDRESS: " . HTMLSpecialChars($header->senderaddress) . "\n"; echo "REPLY-TO: " . HTMLSpecialChars($header->reply_toaddress) . "\n"; print("DATE: $header->date\n"); echo "REFERENCES: " . HTMLSpecialChars($header->references) . "\n"; print("XREF: " . $header->xref) . ""; } } But I can't get it to write the XREF on the screen. Every thing else works. I hope that you can help me Thanks Shimon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] imap
Is there and "legal" way to extract content-type ant content-transfer-encodding values from message header (maybe by imap_ functions)? Or I should try to invent regexp, which would deal with these multiline values? If so, which regexp would grab content-type value correctly: MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable X-UIDL: 80d991297a6d3b18a50c311202c5 -- Andrew Perevodchik [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] imap problems
I am trying to get twiggi-gw (http://sourceforge.net/projects/twiggi/) to run on an OpenBSD 2.9 system using Apache 1.3.22 with php 4.1.1 compiled as a static module. Is this even possible? I'm starting to think it is not! php is configured with the --with-imap, --with-mysql, and --with-apache options. php does not seem to have any problems with these flags. However, when compiling apache, I got errors relating to my c-client linker module (?) : /usr/local/lib/libc-client.so.2.1. The actual error message doesn't come to mind at the moment. So I tried recompiling the imap binary; I'm using the one which comes with pine4.44. When I configured php with --with-imap=/tmp/pine4.44, it told me it should be --with-imap-ssl. So I changed it to --with-imap-ssl=/tmp/pine4.44, and re-configured it. No problems with php or apache this time. Apache and php both work wonderfully. But when I run the twiggi installation test, I get the following error regarding imap: Fatal error: Call to undefined function: imap_rfc822_parse_adrlist() in /usr/local/apache/htdocs/twiggi/lib/mail/php-imap.inc.php on line 873 After reading the Zend and Php.net pages regarding imap, I copied the new libc-client.a, rfc822.h, mail.h, and linkage.h files to my include path, and tried recompiling once more. Again, php, apache compiled fine, but the same error as above occured. Why did php tell me it configured in imap functionality and then give me this error? Any help, additional documentation would be greatly appreciated! Cary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] imap problems
Hi, i uploaded a script, which checks my inbox for new messages by using the imap extension for php. However, everything was working just fine, but now every time i try to access my script, i get a "server not found" error and the logs say: [Wed Mar 27 21:21:13 2002] [notice] child pid 11854 exit signal Segmentation fault (11) I tracked it down to: $box = imap_open("{".$mail_server.":110/pop3}INBOX", $mail_username, $mail_password); Whenever any php file includes this line, it aborts and produces the above error. Well, strange thing is, that it was working perfect a few hours ago and i didnt change a thing on my server till then! Maybe anyone has an idea? Thanks in advance, Duncan
[PHP] imap crashes
Hi, i am running php with IMAP extension on my apache Red Hat 7.2 machine, but i always have trouble with it. After a while my script simply crashes: [Mon Apr 1 17:53:25 2002] [notice] child pid 15338 exit signal Segmentation fault (11) I thought it may be related to too many open imap_open() connections? ...but every imap_open() also has an imap_close(), so no open connections. Everything works just perfect after a reboot again, but restarting apache doesn't help a thing :( ...maybe someone encountered similar problems or has an idea to share, regards, Duncan
[PHP] imap extensions..
Hi, I'm having trouble getting the imap extensions to load. I'm running Windows2000 with IIS5. I've put 'php_imap.dll' in 'c:\php\' and i've checked that the extensions directory in php.ini is set to 'c:\php\' I still get told that php was 'unable to load dynamic library 'c:\php\php_imap.dll' Any help would be gratefully recieved. Thanks, Phil - Philip Jeffs The Tickle Group The Gate House Summerseat Bury Lancashire BL9 5PE United Kingdom W: http://www.tickle.co.uk T: 01706 823456 F: 01706 829500 E: [EMAIL PROTECTED] (daytime) [EMAIL PROTECTED] (evening) -
[PHP] imap prob.
Hi all, I've a prob. using the imap functions ... with a simple code that retrieve a multipart mail, $struttura=imap_fetchstructure($link,2);//2 is the msg nr $pezzi=0; foreach($struttura as $key=>$val){ //some code if($key=="parts"){ foreach($val as $w){ $pezzi++; } } //now $pezzi is an int var that tell me how many parts has the msg for($x=0;$x<(1+$pezzi);$x++){ print ""; if(eregi("Content-Type: text/html;",imap_fetchbody($link,2,$x))){ print quoted_printable_decode(imap_fetchbody($link,2,$x)); } else { print imap_fetchbody($link,2,$x); } print ""; } //this loop show me the single part of the msg the problem is: only if the part is concerning an embedded image, I can't see the "header" of the part (I mean this: --=_NextPart_000_000D_01C0A127.2D37C500 Content-Type: image/gif; name="chat.gif" Content-Transfer-Encoding: base64 Content-ID: <000c01c0a11e$cb6bbbe0$0100a8c0@maxa> ) but I see only the base64_encode source of the image file My question are: is this due to a my mistake? How can I take the "header" and the "source" if the part is concerning to an image file? Many thanks in advance. max -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] imap problems.
ok, here we go. imap functions seem tobe funny. I could not get php to compile with the latest imap, I was getting errors about xml, go figure. and could not not like lib/yes go figure. I downloaded php 4.0.5dev all compiled well, but I get strange things happening, like imap functions do not return errors they just timeout. some functions just dont work, only timeout and cause segfaults, I cant tell if there are errors or not because of this. foreach($this->mail_headers as $pos => $val) $this->mail_body[$pos] = imap_body($this->mail_stream, $pos); where mail_headers is an array with all the headers pos and their value. this causes segfaults. any idea's? I would pref not to use the dev version of php? I also noticed on ftp://ftp.cac.washington.edu/imap/ that the newest imap is beta, anything stable out there? -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED]
[PHP] imap functions
anyone have any code snippits or urls you could share on the imap functions? Ive got it to list all pop/imap/nttp folders on a server with a username/password, I can view pop/imap msgs, no attachemtns yet, and can not list nntp headers for some reason. the whole imap deal looks great but doesnt seem stable either, some imap functions if there are no folders or headers causes apache to seg fault. -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED]
[PHP] imap ssl
Is there any IMAP PHP functions using ssl ?? Do I have to just switch the port 143->993 to use ssl or do I have to use specific functions implemented in PHP 4 ?? __ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] IMAP HELP
when I list all parts of an object returned by $a = imap_fetchstructure($link,1); I will get something like this: [parameters] => Array ( [0] => stdClass Object ( [attribute] => BOUNDARY [value] => =_NextPart_000__01C08563.8269C440 ) ) I' am not able to assigna varable to get "_NextPart"!!! How doI get this? $a->parameters[0]->value does not work! Please help! -- ** * Jochen Kächelin* * Ihr WEBberater - Werbeagentur Pulvermüller * * Stuttgarter Str. 3 - D-73033 Göppingen * * www.wa-p.de - mailto:[EMAIL PROTECTED] * ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] IMAP PROBLEM
I want to set a link to download an email-attachment, but I don't know where to point the link to get the attachment - I am only able to view an attached image or text! -- ** * Jochen Kächelin* * Ihr WEBberater - Werbeagentur Pulvermüller * * Stuttgarter Str. 3 - D-73033 Göppingen * * www.wa-p.de - mailto:[EMAIL PROTECTED] * ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] imap functions
I cofigured apache 1.3.14 with php4 on my computer(Mandrake 7.2) but I can not use imap functions. I read that I have to compile PHP with imap. I did it, but I get some errors when compile apache whit this php. Can anybody help me with some advices? Thanks. Calin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] IMAP Problem.
I am having a problem getting php4.0.4pl1 to work will imap on my Mandrake 7.2 linux system. I am configuriging the system using the following configure options :- ./configure --with-apxs \ --with-oci8 \ --without-mysql \ --with-pgsql \ --with-imap \ --with-ldap I have followed the instructions about c-client and have tried upgrading to imap-2000c and even imap-2001beta packages from ftp.cac.washington.edu/imap/ Evering seems to compile and install OK but when I try to start apache I get the following message :- Cannot load /etc/httpd/modules/libphp4.so into server: /etc/httpd/modules/libphp4.so: undefined symbol: mxdriver Any help would be appreciated. -- Thanks, Richard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] IMAP Question.
Does the IMAP functionalities require UW IMAP server since compiling PHP requires the libraries and header files from UW IMAP server. Does it work with Cyrus IMAP server? Thank you, Yan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] imap+php
hi, i need to create a web form to add an email account for imap uw-imap server. how to store userid and password for email accounts into the server? have anyone ever done this before? can anyone show me how to do this? i really have no idea. reading imap's rfc and docs doesnt help me. HELP. SOS. thanks in advance. halmi/ /** http://affroman.com **/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] IMAP Help
I am experimenting a little with IMAP and was wondering exactly how to send mail to mailboxes that you create with the imap_createmailbox(). I know that it puts a file under an account like INBOX.whatever, but, as I said dont know exactly how to send mail to this mailbox. Now I might totally missunderstand what precisely this function does. From the looks of it it creates an account under (I am running Red HatLinux) a real unix account you have setup... that is only for receiving mail. Is this accurate. If not, I am trying to figure out how people like hotmail and other email websites have it setup where you dont have a unix account but only a mail account, and how that is all created automatically. (I know there is a way to give people a pop only account but it requires you to become root, not something I would want to have done automatically). Anyway, any help on this would be greatly appreciated. Thanx -- --- Clayton Bluhm Computer Engineering Student [EMAIL PROTECTED] (School) [EMAIL PROTECTED] (home)
[PHP] IMAP server
Hi, Can someone tell me where can I find IMAP server for windows ? Thanks, Rosen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] IMAP Question
Hello, Masters! I'm sending a mail through with imap_mail() and want to save a copy of it in "Sent Items" folders. I can not find function which an do it. It seemes to me it should look like saving letter to specified mailbox (e.g. "Drafts"). Thank you Val.zp.ua. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] IMAP Question
Is it possible to use imap_mail() on php 4.0.6 on NT machine? Maybe anyone has dll for this. Thank you Val.zp.ua -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] imap problems
hm, maybe reinstall imap? Can i simply reinstall it, or do i also have to configure php again, if i do so? Regards, Hendrik
Re: [PHP] imap problems
Hi Duncan, Also working with IMAP because I'm writing a webmail. Haven't met this problem before but if I were you, I'd consider the following steps 1) Check if the IMAP daemon is running. Type "nmap localhost" at your shell to see if IMAP daemon (port 143, and it appears as imap2 on my server) is running. If it's not running AND you're using UWash IMAP server, type "chkconfig imap on" to run it. For Cyrus, I think the procedure is the same though I dare not confirm. 2) If your IMAP daemon is still not running, maybe someone who shared your server accidentally misconfigured some files. You can re-install IMAP server. I suggest using RPM instead of compiling source. Download from rpmfind.net. That's the easier and hassle-free way. I don't think you need to re-configure PHP after installing IMAP, provided the PHP-IMAP extension is intact since your last successful attempt. Hope that helps. Anyway, are you using UWash IMAP server? Gaukia _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] IMAP quota support
I managed to be somewhat succesfull while trying to get PHP4 and IMP to get quota information from my IMAP server (Vircom's VOPMail for Windows NT/2000 - available from www.vircom.com). I changed the script a little bit to talk right to Vircom's IMAP server but its response differs a little from what RFC 2087 says. While Vircom replies with (STORAGE 10 20480 TRIGGER 0 17408), PHP4's get_imap_quota expects (STORAGE 10 20480), without the TRIGGER. The result is that PHP4 is considering the usage to be 0 and the quota 17408. Looks like it gets the last two numbers it finds and uses it, but I'm not sure... I'm no C programmer and couldn't actually find the way that PHP4 and/or WU IMAP c-client tries to understand the output from the server. So, could anyone point to me the way to change this behavior and understand my server's information? -- Luiz Lima Image Link Internet http://www.imagelink.com.br -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] IMAP and make
At this point in the make I get this error related to --with-imap and --with-ssl-imap ...I believe Making all in . make[1]: Entering directory `/usr/lib/php-4.2.1' /bin/sh /usr/lib/php-4.2.1/libtool --silent --mode=link gcc -I. -I/usr/lib/php-4.2.1/ -I/usr/lib/php-4.2.1/main -I/usr/lib/php-4.2.1 -I/usr/include/apache -I/usr/lib/php-4.2.1/Zend -I/usr/include/imap -I/usr/libmcal/ -I/usr/lib/php-4.2.1/ext/mysql/libmysql -I/usr/lib/php-4.2.1/ext/xml/expat -DLINUX=22 -DDEV_RANDOM=/dev/random -DEAPI -DEAPI_MM -I/usr/lib/php-4.2.1/TSRM -g -O2 -prefer-pic -o libphp4.la -rpath /usr/lib/php-4.2.1/libs -avoid-version -L/usr/bin/openssl/lib -L/usr/libmcal/ -R /usr/bin/openssl/lib -R /usr/libmcal/ stub.lo Zend/libZend.la sapi/apache/libsapi.la main/libmain.la regex/libregex.la /usr/lib/php-4.2.1/ext/ctype/libctype.la /usr/lib/php-4.2.1/ext/ftp/libftp.la /usr/lib/php-4.2.1/ext/gettext/libgettext.la /usr/lib/php-4.2.1/ext/imap/libimap.la /usr/lib/php-4.2.1/ext/mcal/libmcal.la /usr/lib/php-4.2.1/ext/mysql/libmysql.la /usr/lib/php-4.2.1/ext/pcre/libpcre.la /usr/lib/php-4.2.1/ext/posix/libposix.la /usr/lib/php-4.2.1/ext/session/libsession.la /usr/lib/php-4.2.1/ext/standard/libstandard.la /usr/lib/php-4.2.1/ext/xml/libxml.la TSRM/libtsrm.la -lmcal -lcrypto -lssl -lc-client -lcrypt -lintl -lcrypt -lresolv -lm -ldl -lnsl -lresolv -lcrypt -ldl make[1]: Leaving directory `/usr/lib/php-4.2.1' I received this error message--> /usr/bin/ld: cannot find -lcrypto collect2: ld returned 1 exit status make[1]: *** [libphp4.la] Error 1 make: *** [all-recursive] Error 1 Mandrake 8.2 PPC Had to compile own php for use with horde's imp also this is DSO configure. I hope someone thinks this is a simple question. Thank You, -Eric -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] IMAP - attachment-information
How can I extract the information about email attachments using the IMAP-functions? -- ** * Jochen Kächelin* * Ihr WEBberater - Werbeagentur Pulvermüller * * Stuttgarter Str. 3 - D-73033 Göppingen * * www.wa-p.de - mailto:[EMAIL PROTECTED] * ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] IMAP sort help.
This command works without problems on a local unix server. However, when I tried the exact same code , $sortmail = imap_sort($mailbox,SORTSIZE,1) on a remote imap server running on mac, it produces problems. (no error messages) I am unable to check the error messages as they are none. And adding on to that, the HTML have been terminated without any error messages without completing the entire html closing tags. All functions works, except imap_sort? Anyone? any ideas? terrence -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] IMAP and Attachments
Hiya all. Doing the usual web based mail system. How can I check to see if a email has an attachment? Then download it if the user clicks on it? Preferably a class, documentation or something similar, if you have it. Please don't link an RFC, I hate RFCs, it is like reading Aramaic upside, backwards and on a webpage with some horribly tiled background and yellow color font. - k -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] IMAP Help
Hi, imap_createmailbox() does not ceate a real new unix account. It creates a folder (speaking in Win terms, but rather mailbox) inside an account. Like "Trash", "Drafts" etc. Physicly a file is created for each mailbox in the users home dir. And there is one default mailbox INBOX, where all the delivered mail is put. Now adding new mail user is very tricky part. You can do it by either creating a new unix accouont by some means, either running an appropriate mail server, which would have it's own internal system of mail accounts (sorry, but I don't recal which servers have such system). Sigitas Paulavicius -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] IMAP - create user?
Is there a way to create a new user with an email address on my mail server (for a web mail app i'm writing) using an IMAP or some other PHP function? Tom Malone Web Designer http://www.tom-malone.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] IMAP Question
> Is it possible to use imap_mail() on php 4.0.6 on NT machine? > Maybe anyone has dll for this. Yes Val. It is possible. See related thread/discussion list: [PHP-WIN] Help on using mail() function =dn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] IMAP error from Linux
I have made a simple IMAP mail checker. IT doesn't let you read the mail, just lets you see the headers and delete messages. I have it working great running under Apache 1.3.22 and PHP 4.1.1 on Windows XP. All of the IMAP functions work as expected. The problem is when I take the same php files and put the on a Linux machine with the same versions of Apache and PHP, with IMAP enabled on RedHat 7.2, I get the following error. ** Warning: Couldn't open stream {myserver:143}INBOX in /usr/local/apache/htdocs/imap/connect.php on line 43 ** After that I get errors because the stream wasn't opened so other IMAP functions don't have a valid pointer. Those I can handle. Does anyone know what would be different between Linux and Windows? I need this to work under Linux more than Windows. The machine is trying to connect to the IMAP server because a TCP/IP dump shows traffic to that server when the page is loaded. I am able to verify that the machine will connect to the server, because I can telnet in and get all of the same information manually. If there is some way that the Linux version encrypts the username and or password, that might cause it, but that is not documented anywhere. If anyone has any suggestions, I would appreciate it. -Chris Sim
[PHP] Imap-uw Horde::IMP
I am currently running an old version of imap v4 from FreeBSD 4.1, and I was going to install the latest 2001c library onto my computer. I realize that after installing the library i should recompile PHP, but is there any problems that anyone knows that will affect anything by doing this upgrade?
Re: [PHP] imap and POP3?
On Wednesday 27 March 2002 16:25, Jason Caldwell wrote: > Can anyone give me the quick and easy on IMAP and POP3 ? > > What I want to do is, check my POP3 server for messages, download those > messages into my MySQL DB. I want to retrieve the FROM, SUBJECT, HEADER > and BODY from the messages and place them in the corresponding mysql > fields. > > I know the mysql / php stuff fine ... it's the IMAP / POP3 thing I'm a > little lost on. Perhaps someone can point me to a script posted on some > website that shows some examples of how to use IMAP to connect and retrieve > messages via POP3, or if anyone out there already has some examples, > that'll be very helpful. You could take a look at SquirrelMail (www.squirrelmail.org). That uses IMAP (albeit it's own functions rather than PHP's). And if you take a look at the plugins (mailfetch or something), that should give you an idea of how to do POP. In fact check out all the other webmail systems written in PHP. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk /* If you want to know how old a man is, ask his brother-in-law. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] problems with php-imap
Hi, I'm running a cuple of servers with php + mysql. Now, on one server I am running a setup with PHP 4.0.6 (patched for security) and Cyrus Imapd 1.5.x. I am having large problems getting this to work. The server functions w/o problems except that it segfaults every time I use the imap-open call. I have seen others having reproted equal problems to this list, so I am wondering if this is a known bug or if anyone has experienced this. Also, I whant all possible tips for locating the error. PS: My usernames are on the form username:int (f.x. arne:19 (not a real one)) could this be the problem? Tarjei -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] imap support breaking...
I got that error once - turned out that I'd forgotten to compile the IMAP lib with SSL support. Try recompiling your IMAP libs and then recompiling everything else. Danny. FreeBSD 4.5/Apache 1.3.26/PHP4.2.1 - Original Message - From: "Rick Kukiela" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 19, 2002 7:58 PM Subject: [PHP] imap support breaking... > I couldn't get sessions working on my old broke install so i formatted and > im redoing everything... this time i want to incorporate IMAP support so i > can run IMP on my server. I'm compiling PHP 4.2.1 with Apache 1.3.26 with > mod_ssl and mod_perl and when mod_perl is building apache I get this error: > > modules/php4/libphp4.a(php_imap.o): In function `zm_startup_imap': > /usr/local/src/php-4.2.1/ext/imap/php_imap.c(.text+0x353): undefined > reference > o `ssl_onceonlyinit' > *** Error code 1 > > Stop in /usr/local/src/apache_1.3.26/src. > *** Error code 1 > > Stop in /usr/local/src/apache_1.3.26. > *** Error code 1 > > Stop in /usr/local/src/apache_1.3.26. > *** Error code 1 > > Stop in /usr/local/src/mod_perl-1.27. > > anyone know? i searched google groups and only found people asking about > this problem but no one responding to it... > > Thanks, > Rick > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] IMAP - attachment-information
On 23 Jan 2001 06:36:02 -0800, Jochen Kächelin <[EMAIL PROTECTED]> wrote: >How can I extract the information >about email attachments using the IMAP-functions? Use imap_fetchstructure(). It returns a pretty large array, so you'll probably want to spend some quality time with the documentation and print_r() getting all of the details. One nice thing if you're making a webmail interface is that you won't need to worry too much about mime-types - those can be passed through to the browser, which can figure out anything from text/plain to video/quicktime. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] imap (nntp) message tracking
Can anyone recommend a good (eficient) way of tracking downloaded (read) messages from a nntp server? I would like to run a script to retrieve a couple news groups and archive them, but I am unsure as to the best method of tracking which messages I have. I will likely be storing messages in mysql databse and I am using php4. I have been playing with a little code and can retrieve a list of messages as well as the headers/body etc, I am just unsure how to track message status. ANyone have any ideas? -- Larry Hotchkiss -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] IMAP sort help.
imap functions are notorious for not returning anything usfull, same with xslt functions. $headers = imap_sort($this->imap_stream, SORTARRIVAL, 1, SE_UID ); this wrks on my linux box. its almost exactly the same as yours. one thing I found is try playing with if ($this->imap_folder) $this->imap_stream = @imap_open($this->imap_stream_string, $this->imap_username, $this->imap_password); else $this->imap_stream = @imap_open($this->imap_stream_string, $this->imap_username, $this->imap_password, OP_HALFOPEN); if there is a folder then do no use OP_HALFOPEN. I had to use this to get nntp working right. -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] "Terrence Wong" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... This command works without problems on a local unix server. However, when I tried the exact same code , $sortmail = imap_sort($mailbox,SORTSIZE,1) on a remote imap server running on mac, it produces problems. (no error messages) I am unable to check the error messages as they are none. And adding on to that, the HTML have been terminated without any error messages without completing the entire html closing tags. All functions works, except imap_sort? Anyone? any ideas? terrence -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] IMAP sort help.
Hi chris. The codes works on my linux box too. But retaining the codes, I proceed to connect to a imap server on a APPLE machine. Everything works except it stops at imap_sort. Is there a conflict between mac and linux?? terrence Chris Lee wrote: > imap functions are notorious for not returning anything usfull, same with xslt >functions. > >$headers = imap_sort($this->imap_stream, SORTARRIVAL, 1, SE_UID ); > > this wrks on my linux box. its almost exactly the same as yours. one thing I found >is try playing with > >if ($this->imap_folder) > $this->imap_stream = @imap_open($this->imap_stream_string, $this->imap_username, >$this->imap_password); >else > $this->imap_stream = @imap_open($this->imap_stream_string, $this->imap_username, >$this->imap_password, OP_HALFOPEN); > > if there is a folder then do no use OP_HALFOPEN. I had to use this to get nntp >working right. > > -- > > Chris Lee > Mediawaveonline.com > > ph. 250.377.1095 > ph. 250.376.2690 > fx. 250.554.1120 > > [EMAIL PROTECTED] > > "Terrence Wong" <[EMAIL PROTECTED]> wrote in message >[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > This command works without problems on a local unix server. > However, when I tried the exact same code , $sortmail = > imap_sort($mailbox,SORTSIZE,1) on a remote imap server running on mac, > it produces problems. (no error messages) > > I am unable to check the error messages as they are none. And adding on > to that, the HTML have been terminated without any error messages > without completing the entire html closing tags. > > All functions works, except imap_sort? > > Anyone? any ideas? > terrence > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] IMAP sort help.
Is there a possibility that the imap_sort function is not capatible with APPLE servers? For my unix server, I have used the lastest imap services? Still problem persist for imap_sort to APPLE imap servers. terrence Chris Lee wrote: > imap functions are notorious for not returning anything usfull, same with xslt >functions. > >$headers = imap_sort($this->imap_stream, SORTARRIVAL, 1, SE_UID ); > > this wrks on my linux box. its almost exactly the same as yours. one thing I found >is try playing with > >if ($this->imap_folder) > $this->imap_stream = @imap_open($this->imap_stream_string, $this->imap_username, >$this->imap_password); >else > $this->imap_stream = @imap_open($this->imap_stream_string, $this->imap_username, >$this->imap_password, OP_HALFOPEN); > > if there is a folder then do no use OP_HALFOPEN. I had to use this to get nntp >working right. > > -- > > Chris Lee > Mediawaveonline.com > > ph. 250.377.1095 > ph. 250.376.2690 > fx. 250.554.1120 > > [EMAIL PROTECTED] > > "Terrence Wong" <[EMAIL PROTECTED]> wrote in message >[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > This command works without problems on a local unix server. > However, when I tried the exact same code , $sortmail = > imap_sort($mailbox,SORTSIZE,1) on a remote imap server running on mac, > it produces problems. (no error messages) > > I am unable to check the error messages as they are none. And adding on > to that, the HTML have been terminated without any error messages > without completing the entire html closing tags. > > All functions works, except imap_sort? > > Anyone? any ideas? > terrence > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] IMAP/POP3/OUTLOOK Question
Hi, I was wondering if someone could help me explain how Microsoft OUTLOOK knows which emails that it has downloaded from the server, as far as I know, there isn't any way of marking the email in a pop3 queue that they have been either read or downloaded. But then again, I have an inbox with over 20,000 emails in it, and outlook goes through these in less than a few seconds, so, could anyone explain to me how this is done. // Mattias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP + IMAP compilation problem
HI! I need some help here. I'm trying to make work Horde/IMP webmail. I'm running FreeBSD 4.3 in my box and I'm using Apache 1.3.20, PHP 4.0.6 and MySQL 3..23.39. I've installed c-client (from FreeBSD available packages instalation CDROM but I've tryed with tarball from ftp://ftp.cac.washington.edu/imap/ too). I've installed libc-client4.so in /usr/local/lib and c-client.h, rfc822.h, mail.h, etc. in /usr/local/include. PHP configure/make/make install process works fine but the Apache configure script die with: [..] '/usr/local/lib/libc-client4.so: undefined reference to 'mm_expunged' '/usr/local/lib/libc-client4.so: undefined reference to 'mm_diskerror' '/usr/local/lib/libc-client4.so: undefined reference to 'mm_lsub' '/usr/local/lib/libc-client4.so: undefined reference to 'mm_flags' *** Error code 1 Stop in /usr/src/apache_1.3.20/src/helpers. [..] What's the problem here? Thanks in advace Marcelo Gulin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] IMAP and Attachments
> How can I check to see if a email has an attachment? Then download it if the > user clicks on it? I've been working on a webmail for POP3 but I guess the idea is about the same. To check if a an email has attachments you use the function imap_fetchstructure() and then you can do something like this: $struc = imap_fetchstructure(); count($struc->parts); if ($no_of_parts > 0) { echo "the message has attachments."; } This is my way of doing it, the 'bad' thing with this kind of code is that it also includes HTML-messages. This can be prevented with some extra code though. For downloading you use the same kind of thing, I guess it slightly more advanced and you have to do some decoding of the message. Best regards, Jome (looking for php-jobs, coding for $15/hour) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] IMAP, krb4 and PHP4.
I'm trying to use UW IMAP c-client w/ the kerberos v4 patches with PHP 4.0.x and IMP 2.2.x I've tried both IMAP 4.7c and IMAP2000 - both the c-clients build fine. I had some problems getting IMAP 4.7c working with PHP4, but I've confirmed that it does work (I can open IMAP streams using a clear text password). IMAP2000 works as well. The IMAP 4.7c c-client works as intended with PHP 3.0.x. here's the problem.. if the environment KRBTKFILE is set, and points to a valid krb4 ticket file, the krb4 patched c-client should automatically recognize this use that ticket file when trying to open IMAP connections. This works in PHP 3.0.x. PHP 4.0.x seems to be ignoring the ticket file (or more likely the environment variable). I'm setting it by adding this to an auto prepend file.. Works fine in PHP 3.0.x, but not in 4.0.4x or 4.0.5 (tho, in PHP 3.0.x c-client seems to cache KRBTKFILE erroneously when used as an apache server module, so we have to use it in CGI mode). Is there another way to get KRBTKFILE into a part of the environment where PHP will pay attention to it? Anyone have any suggestions? I'm at a loss. thanks Liam Hoekenga UM Webmaster Team -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] IMAP - create user?
http://phpclasses.upperdesign.com/browse.html/file/766 Try that class. - k - Original Message - From: "Tom Malone" <[EMAIL PROTECTED]> To: "PHP Users" <[EMAIL PROTECTED]> Sent: Sunday, September 23, 2001 10:07 PM Subject: [PHP] IMAP - create user? > Is there a way to create a new user with an email address on my mail server > (for a web mail app i'm writing) using an IMAP or some other PHP function? > > Tom Malone > Web Designer > http://www.tom-malone.com > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re:[PHP]imap and POP3
> What I want to do is, check my POP3 server for messages, download those > messages into my MySQL DB. I want to retrieve the FROM, SUBJECT, HEADER and > BODY from the messages and place them in the corresponding mysql fields. This script I wrote last summer may help you some what.. it handles attachments too. #!/usr/local/bin/php -q // A script which dowmloads the support email and processes it $dbhost = "localhost"; $dbuser = "user"; $dbpassword = "password"; $dbname = "support"; $time = time(); mysql_pconnect($dbhost, $dbuser, $dbpassword); mysql_select_db($dbname); //Open the mailbox and check if mail waiting $mailstream = imap_open("{localhost:143}INBOX","username","password"); if (!$mailstream) { mysql_close(); exit; } $email = imap_headers($mailstream); if (count($email) == 0) { //echo "Nothing to process ... \n"; imap_expunge($mailstream); imap_close($mailstream); mysql_close(); exit; } //echo count($email) ." \n"; for ($i=1; $i<=count($email); $i++) { ; $thisheader = imap_header($mailstream, $i); $subject = $thisheader->subject; $from = $thisheader->from; $name = $from[0]->personal; $fromaddr = sprintf("%s@%s",$from[0]->mailbox,$from[0]->host); //echo $subject . " " . $fromaddr . " " . $name . "\n"; $struc = imap_fetchstructure($mailstream, $i, FT_UID); //echo "type: " . $struc->bytes . "\n"; if (empty($struc->bytes)) { //echo "Type: " . $struc->type . "\n"; //echo "Sub-type: " . $struc->subtype . "\n"; $mailtext = trim(imap_fetchbody($mailstream, $i, 1)); //echo "Parts Count: " . Count($struc->parts) . "\n"; for ($z = 1; $z < Count($struc->parts) + 1; $z++) { //echo "Part No. " . $z . ": " . $struc->parts[$z]->type . "\n"; if ($struc->parts[$z]->ifparameters) { $parameters = $struc->parts[$z]->parameters; $resarray = get_object_vars($parameters[0]); $filename[] = $resarray["value"]; $filesrc[] = addslashes(imap_fetchbody($mailstream, $i, $z + 1)); switch ($struc->parts[$z]->type) { case 0: $type = "text"; case 1: $type = "multipart"; case 2: $type = "message"; case 3: $type = "application"; case 4: $type = "audio"; case 5: $type = "image"; case 6: $type = "video"; case 7: $type = "other"; default: $type = "text"; } $encode = $struc->parts[$z]->encoding . ""; settype($encode, "integer"); switch ($encode) { case 0: $encoding = "7Bit"; break; case 1: $encoding = "8Bit"; break; case 2: $encoding = "Binary"; break; case 3: $encoding = "Base64"; break; case 4: $encoding = "Quoted-Printable"; break; case 5: $encoding = "Other"; break; } //echo $encoding . "\n"; $filetype[] = addslashes($type . "/" . strtolower($struc->parts[$z]->subtype)); $fileencoding[] = $encoding; if ($type . "/" . strtolower($struc->parts[$z]->subtype) == "text/html") { if (eregi("\.htm", $resarray["value"]) || eregi("\.html", $resarray["value"])) { } else { $HTML = TRUE; } } $attachments = TRUE; } } } else { $mailtext = trim(imap_body($mailstream, $i)); $attachments = FALSE; } //echo "$mailtext\n"; if ($HTML) { //echo "html\n"; imap_delete($mailstream, $i); $bodytext = "Dear Customer\n\n"; $bodytext .= "Thank you for contacting Customer Support.\n\n"; $bodytext .= "Unfortunately our automatic ticketing system for support requests\n"; $bodytext .= "is not compatible with HTML email. Please resend your support request\n"; $bodytext .= "in plaintext format.\n\n"; $bodytext .= "Alternatively call 09066 xx (call charged at 50p/min at all times)"; //$fromaddr mail ($from, "RE: " . $subject, $bodytext, "From: Customer Support "); continue; } if (eregi("SUP[0-9][0-9][0-9][0-9][0-9][0-9]", $subject)) { //Existing support call; //Get ticket details from db $location = strpos($subject, "SUP"); $ticket = trim(substr($subject, $location, 10)); $sSQL = "select * from supportrequests where ticketnumber = '$ticket'"; $result = mysql_db_query($dbname, $sSQL); if (mysql_num_rows($result) == 0) { //echo "Couldn't find ticket number $ticket" . "\n"; continue; } $row = mysql_fetch_array($result); $supportrequestid = $row[0]; $emailtext = trim(imap_fetchbody($mailstream, $i, 1)); $sSQL = "insert into supportdetail (supportrequestid, fromname, email, text, datereceived) values (" . $supportrequestid . ", '" . $name . "', '" . $fromaddr . "', '" . $mailtext . "', " . $time . ")"; $result = mysql_db_query($dbname, $sSQL); if ($attachments) { $sSQL = "select supportdetailid from supportdetail where datereceived = " . $time . " and supportrequestid = " . $supportrequestid; //echo $sSQL . "\n"; $result = mysql_db_query($dbname, $sSQL); $row = mysql_fetch_array($result); $supportdetailid = $row["supportdetailid"]; $numatt = count($filesrc); for ($h =0; $h<$numatt; $h++) { $sSQL = "insert into attachments (supportdetailid, filename, attachment, filetype, encoding) values ($supportdetailid, '$filename[$h]', '" . $filesrc[$h] . "', '$filetype[$h]', '$fileencoding[$h]')"; $result = mysql_db_query($dbname, $sSQL); } } $sSQL = "update supportrequests set datelastactioned = $time where supportrequestid = $supportre
[PHP] Re: problems with php-imap
On Mon, 2002-04-22 at 12:29, Tarjei Huse wrote: > Hi, > > I'm running a cuple of servers with php + mysql. Now, on one server I am > running a setup with PHP 4.0.6 (patched for security) and Cyrus Imapd > 1.5.x. I am having large problems getting this to work. The server > functions w/o problems except that it segfaults every time I use the > imap-open call. So does this use cclient as the imap support for PHP ? Personally I have found that buggy in the past try upgrading to the latest version. > > I have seen others having reproted equal problems to this list, so I am > wondering if this is a known bug or if anyone has experienced this. > > Also, I whant all possible tips for locating the error. Here is a problem I had and how I found and fixed it. Using: php,mod-ssl,apache to do webmail. Problem: It would SEGFPE every so many request (sometimes just 2 sometimes 100`s) Tried to chase in the php code where this bug was and not trying mod_ssl (encryption must use the FPU alot etc.). Eventually compiled php with -ggdb (debug symbols) setup my FreeBSD to core dump in the same area and played. After backtracing several coredump I found the this happened when the php added or subtracted 2 large numbers together. After a bit more debug the FPU was broken on the CPU and it now runs with FPU emulation and is ok. Interesting that that was the only thing that tickled the FPU. So compile php in debug mode is my advice. -- Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] imap (nntp) message tracking
I think each message has a unique ID generated by the machine that posted it... -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Larry Hotchkiss <[EMAIL PROTECTED]> Newsgroups: php.general Sent: Wednesday, January 31, 2001 12:06 PM Subject: [PHP] imap (nntp) message tracking > Can anyone recommend a good (eficient) way of tracking downloaded > (read) messages from a nntp server? I would like to run a script to > retrieve a couple news groups and archive them, but I am unsure as to > the best method of tracking which messages I have. I will likely be > storing messages in mysql databse and I am using php4. I have been > playing with a little code and can retrieve a list of messages as well > as the headers/body etc, I am just unsure how to track message status. > ANyone have any ideas? > > > > -- > Larry Hotchkiss > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] IMAP/POP3/OUTLOOK Question
Hiya, Correct me if I'm wrong, but I think it just keeps a record of the e-mails it's downloaded. If you run the command 'UIDL' on a telnet session into a POP server, you will get the Unique ID for every e-mail in your inbox. All Outlook does is compare this to the list of e-mails it knows it's downloaded, and then download the one's it doesn't have a record on. At least something like that anyway. It's also why if Outlook or the computer crash in the middle of a download of e-mails, it'll download 'em again (As it's lost the list! :( ). Hope that helps. Jonathan Wright.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] IMAP/POP3/OUTLOOK Question
Hello: I'm not sure, but I think it's by looking at the header of the message, not the body, there's a message id like this: Message-ID: <[EMAIL PROTECTED]> and this id is unique, so if exists on the inbox, it doesn't downloads the body. Best Regards Visual PHP Studio, RAD development with PHP http://www.visualphpstudio.f2s.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] IMAP support and Red Hat
Hi there! I am trying to compile php 4.0.6 on Red Hat Linux 6.2 with IMAP support. I have installed the package imap-devel*rpm and can easily compile PHP as an apache module. But, when I compile using configure --with-imap, after I install the new php module and restart apache, it complains about gss_krb5_* symbols not found. I have already tried add --without-kerberos to configure, but got the same result. Any hints? Thans in advance. []s, Fernando Lozano -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] imap ssl on port 993
Can anyone tell me the correct syntax for connecting to an imap server using imap_open and an ssl connection. normally > $link = imap_open ("{mail.whatever.com:143}", "username", "password"); Is this the correct way to do it for ssl? ... because it is not working for me. ssl > $link = imap_open ("{mail.whatever.com:993}", "username", "password"); Drew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Solution for PHP - IMAP - WAP ?
Hi, Maybe somebody knows solution for PHP IMAP and WAP? How hard will be complete this products? - Nikolajus Krauklis :: [metasite] E-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] IMAP, POP3 and NNTP functions - questions..
I have a question or two regarding the IMAP, POP3 and NNTP functions. Is there *any* way to use imap_fetchstructure() using an actually message string instead of an imap_stream and messgae number. Basicly, I am storing mail onto a MySQL DB. I want to be able to parse out the attatchments and data. However, I cannot use these functions because it wants a mailbox and not an actual peice of mail. All I really need to be able to do is extract the data (dont need filename, mimetype, etc) into a string, and i can use a base64 decode func to give me the raw data. If anyone has suggestions or solutions, it would be greatly appreciated. Thanks, -topside -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Solution for PHP - IMAP - WAP ?
Hi Nikolajsu and PHPers! I am now working in a complete solution for Web/WAP/PDA, with content management + portal services (chat, forum, email, etc...) But I think that you will have to wait until July 2001 for the first public release. The solution is a complete platform for deploy a Portal or Site in all the available "protocols" but managed only by a powerfull backoffice solution. For now, it will support HTTP (Web/WAP), SMS, MMS, SMTP, IMAP, LDAP, and so on... For all of you that want to became beta testers please replay to me! Best regards! Valter Santos WEB/WAP Consultant > -Original Message- > From: Nikolajus Krauklis [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 08, 2001 11:54 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Solution for PHP - IMAP - WAP ? > > > Hi, > > Maybe somebody knows solution for PHP IMAP and WAP? > > How hard will be complete this products? > > > > > - > Nikolajus Krauklis :: [metasite] > E-mail: [EMAIL PROTECTED] > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] IMAP/POP3/OUTLOOK Question .. NEW! ... Complimantary
Hi, I was wondering if someone could help me explain how Microsoft OUTLOOK knows which emails that it has downloaded from the server, as far as I know, there isn't any way of marking the email in a pop3 queue that they have been either read or downloaded. But then again, I have an inbox with over 20,000 emails in it, and outlook goes through these in less than a few seconds, so, could anyone explain to me how this is done. NEW PART: This is if I've set the outlook client not to delete the email from the pop server, or I've choosen to leave the message for x number of days.. // Mattias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] IMAP support and Red Hat
You need to add --with-kerberos not --without-kerberos On Sat, 14 Jul 2001, Fernando Lozano wrote: > Hi there! > > > I am trying to compile php 4.0.6 on Red Hat Linux 6.2 with IMAP support. > I have installed the package imap-devel*rpm and can easily compile PHP > as an apache module. But, when I compile using configure --with-imap, > after I install the new php module and restart apache, it complains > about gss_krb5_* symbols not found. I have already tried add > --without-kerberos to configure, but got the same result. > > Any hints? Thans in advance. > > > []s, Fernando Lozano > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP]Problem in using php-imap in rh7.3
Hi all, I got a problem when I use php's imap functions in rh7.3 system. In the php script file imaptest.php I wrote such code: $user="usernamexxx"; $password="passxxx"; $mbox = imap_open ("{localhost:143}", $user, $password) or die("can't connect: ".imap_last_error() But when I use konqueror visit it through http, the result shows: " Warning: Couldn't open stream {localhost:143} in /var/www/html/mail/imaptest.php on line 4 can't connect: Certificate failure for localhost: self signed certificate: [EMAIL PROTECTED] " I found such words in the maillog: Jul 10 10:09:43 revived imapd[1465]: imap service init from 127.0.0.1 Jul 10 10:09:43 revived imapd[1465]: Command stream end of file, while reading line user=??? host=UNKNOWN I'm sure that my imap works well. Because I can use Kmail receive mails through my imap. Who can help me? Thank all. Best regard! Yours, Xun Chen °×¹âÉÁÒ« ÑÌÎíÃÔÂþ »ÆɳÂúÌì ²ÔÈÕÇåá° _ ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger: http://messenger.microsoft.com/cn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] IMAP/POP3/OUTLOOK Question .. NEW! ... Complimantary
accually pop and imap do set a flag depending if it is new, or seen, etc etc. http://php.net/manual/en/function.imap-search.php outlook isnt accually keeping a list of this info (at least it doesnt need to) the mail server is (imap/pop). mail -f /var/spool/mail/username will show you this data too. (new, read, unread, priority) -- Chris Lee [EMAIL PROTECTED] ""Mattias Segerdahl"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I was wondering if someone could help me explain how Microsoft OUTLOOK knows which emails that it has downloaded from the server, as far as I know, there isn't any way of marking the email in a pop3 queue that they have been either read or downloaded. But then again, I have an inbox with over 20,000 emails in it, and outlook goes through these in less than a few seconds, so, could anyone explain to me how this is done. NEW PART: This is if I've set the outlook client not to delete the email from the pop server, or I've choosen to leave the message for x number of days.. // Mattias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] IMAP/POP3/OUTLOOK Question .. NEW! ... Complimantary
On 14-May-01 Mattias Segerdahl wrote: > Hi, > > I was wondering if someone could help me explain how Microsoft OUTLOOK knows > which emails that it has downloaded from the server, as far as I know, there > isn't any way of marking the email in a pop3 queue that they have been > either read or downloaded. But then again, I have an inbox with over 20,000 > emails in it, and outlook goes through these in less than a few seconds, so, > could anyone explain to me how this is done. > > NEW PART: > > This is if I've set the outlook client not to delete the email from the pop > server, or I've choosen to leave the message for x number of days.. > Outlook doesn't mark the messages, the POP-server does. The server looks for & updates two headers : 'Status:' O - it has been opened R - it has been 'retr'ived U - unseen ? 'X-UIDL:' a string to keeps track of messages between sessions. The client can use either header to keep track of what has been pulled. get the 'Status:' header: 'xtnd xlst Status' -or- 'top n 15' on each message (bad oldly-moldy way of doing things, but useful to refresh a corrupted client cache) get the 'X-UIDL:' header: 'uidl' -and finally- the client can play stupid and depend on the server via 'stat' & 'last' commands. Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP]Problem in using php-imap in rh7.3
Try localhost:143/notls there On Wed, 10 Jul 2002, [gb2312] ÚÈ Ñ« wrote: > > Hi all, > I got a problem when I use php's imap functions in rh7.3 system. > In the php script file imaptest.php I wrote such code: > > $user="usernamexxx"; > $password="passxxx"; > $mbox = imap_open ("{localhost:143}", $user, $password) > or die("can't connect: ".imap_last_error() > > But when I use konqueror visit it through http, the result shows: > " > Warning: Couldn't open stream {localhost:143} in > /var/www/html/mail/imaptest.php on line 4 > can't connect: Certificate failure for localhost: self signed certificate: > >[EMAIL PROTECTED] > > " > > I found such words in the maillog: > Jul 10 10:09:43 revived imapd[1465]: imap service init from 127.0.0.1 > Jul 10 10:09:43 revived imapd[1465]: Command stream end of file, while > reading line user=??? host=UNKNOWN > > I'm sure that my imap works well. Because I can use Kmail receive mails > through my imap. > > Who can help me? Thank all. > Best regard! > Yours, >Xun Chen > °×¹âÉÁÒ« ÑÌÎíÃÔÂþ »ÆɳÂúÌì ²ÔÈÕÇåá° > > _ > ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger: > http://messenger.microsoft.com/cn > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] IMAP and I make... and what do I get recursion :)
At this point in the make I get this error related to --with-imap and --with-ssl-imap ...I believe Making all in . make[1]: Entering directory `/usr/lib/php-4.2.1' /bin/sh /usr/lib/php-4.2.1/libtool --silent --mode=link gcc -I. -I/usr/lib/php-4.2.1/ -I/usr/lib/php-4.2.1/main -I/usr/lib/php-4.2.1 -I/usr/include/apache -I/usr/lib/php-4.2.1/Zend -I/usr/include/imap -I/usr/libmcal/ -I/usr/lib/php-4.2.1/ext/mysql/libmysql -I/usr/lib/php-4.2.1/ext/xml/expat -DLINUX=22 -DDEV_RANDOM=/dev/random -DEAPI -DEAPI_MM -I/usr/lib/php-4.2.1/TSRM -g -O2 -prefer-pic -o libphp4.la -rpath /usr/lib/php-4.2.1/libs -avoid-version -L/usr/bin/openssl/lib -L/usr/libmcal/ -R /usr/bin/openssl/lib -R /usr/libmcal/ stub.lo Zend/libZend.la sapi/apache/libsapi.la main/libmain.la regex/libregex.la /usr/lib/php-4.2.1/ext/ctype/libctype.la /usr/lib/php-4.2.1/ext/ftp/libftp.la /usr/lib/php-4.2.1/ext/gettext/libgettext.la /usr/lib/php-4.2.1/ext/imap/libimap.la /usr/lib/php-4.2.1/ext/mcal/libmcal.la /usr/lib/php-4.2.1/ext/mysql/libmysql.la /usr/lib/php-4.2.1/ext/pcre/libpcre.la /usr/lib/php-4.2.1/ext/posix/libposix.la /usr/lib/php-4.2.1/ext/session/libsession.la /usr/lib/php-4.2.1/ext/standard/libstandard.la /usr/lib/php-4.2.1/ext/xml/libxml.la TSRM/libtsrm.la -lmcal -lcrypto -lssl -lc-client -lcrypt -lintl -lcrypt -lresolv -lm -ldl -lnsl -lresolv -lcrypt -ldl make[1]: Leaving directory `/usr/lib/php-4.2.1' I received this error message--> /usr/bin/ld: cannot find -lcrypto collect2: ld returned 1 exit status make[1]: *** [libphp4.la] Error 1 make: *** [all-recursive] Error 1 Mandrake 8.2 PPC Had to compile own php for use with horde's imp also this is DSO configure. I hope someone thinks this is a simple question. ...with a simple answere... Thank You, -Eric -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] After installing php-imap RPM, there's no --enable-imap when phpinfo()
Good day ppl, I installed php4.1.1 i586 RPM on my Mandrake linux. After downloading other dependencies and so on, I got it running. I know so when the phpinfo() function is showing the php info. However when I installed php-imap i586 RPM and all its needed dependencies, the page with the phpinfo() is not updated with a --enable-imap phrase that is supposed to appear near the top of page. But there's a table entitled "imap" in the page displaying the version number of the c-client. The same thing also happens when I install php-mysql and its other dependencies. There's no --with-mysql appearing. Is it normal? If it is how do I then know whether both IMAP extension and mysql extension are installed? _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]