Commit Graph

272 Commits

Author SHA1 Message Date
Antony Dovgal
fcea7b3273 fix leak in imap_utf8(), avoid extra strlen() call
add test
2006-09-05 11:16:06 +00:00
Antony Dovgal
a10691e3b9 last portion of z/Z fixes 2006-08-31 16:14:43 +00:00
Ilia Alshanetsky
cd6521ce30 PHP 6 does not have safe_mode 2006-08-11 18:06:28 +00:00
Ilia Alshanetsky
bf4b74eb01 MFB: Extend safe_mode/open_basedir checks to imap_reopen() as well. 2006-08-11 15:09:43 +00:00
Ilia Alshanetsky
f2136c69c6 MFB: Fixed bug #37265 (Added missing safe_mode & open_basedir checks to
imap_body()).
2006-08-04 20:34:37 +00:00
Dmitry Stogov
943960c324 Added automatic module globals management 2006-06-13 13:12:20 +00:00
Andi Gutmans
1efe984d08 - Get rid of using ENFORCE_SAFE_MODE. 2006-02-19 04:29:42 +00:00
Michael Wallner
ec942cb2a6 MF51: use free() 2006-01-28 08:08:48 +00:00
Michael Wallner
ea5c551162 MF_5_1 2006-01-27 20:22:48 +00:00
Michael Wallner
a04e63543d - add imap_savebody() 2006-01-27 19:44:40 +00:00
Ilia Alshanetsky
501c081a80 MFB51: Fixed bug #35669 (imap_mail_compose() crashes with
multipart-multiboundary-email).
2006-01-05 00:51:34 +00:00
foobar
251c5173fd bump year and license version 2006-01-01 13:10:10 +00:00
foobar
a208d9a966 - Nuke php3 legacy 2005-12-06 02:28:26 +00:00
Ilia Alshanetsky
4f1520912c Fixed bug #32589 (possible crash inside imap_mail_compose() function). 2005-08-30 22:02:43 +00:00
foobar
df5cfe27b4 - Fixed bug #29334 (mail() provides incorrect message time header) 2005-08-07 22:06:29 +00:00
foobar
23e671a51e - Bumber up year 2005-08-03 14:08:58 +00:00
Ilia Alshanetsky
2fae7f1e71 Missing part of the patch for bug #32589 2005-04-08 15:04:34 +00:00
Ilia Alshanetsky
cb8d20760c Fixed bug #32589 (Possible crash inside imap_mail_compose, with charsets). 2005-04-05 14:47:47 +00:00
Ilia Alshanetsky
1aab604198 Simplify Code. 2005-02-20 18:23:33 +00:00
Antony Dovgal
c404bdb9f8 check body for NULL before using and prevent segfaults 2005-01-25 14:20:02 +00:00
Antony Dovgal
5e1b127864 destruct return_value 2005-01-21 10:55:41 +00:00
Antony Dovgal
84a8849a3a fix error message 2005-01-20 18:08:08 +00:00
Antony Dovgal
4f3e113e38 fix segfault in imap_sort() - it segfaults when options is less than 0.
it looks like c-client bug, but we still need a workaround.
also, convert_to_string search criteria.
2005-01-20 18:03:35 +00:00
Antony Dovgal
9812f55289 fix segfault in imap_headerinfo() when fromlength or subjectlength are less than 0
+ fix protos
2005-01-20 14:04:50 +00:00
Ilia Alshanetsky
c78db34489 Fixed bug #31142 (crash, memory leak and data loss by imap_mail_compose). 2005-01-18 23:36:08 +00:00
Ilia Alshanetsky
023c1bccb3 Fixed bug #31480 (Possible infinite loop in imap_mail_compose()). 2005-01-18 16:32:53 +00:00
foobar
b298098307 - Added check for IMAP 2005 version 2005-01-11 04:56:06 +00:00
foobar
57eddbd7d0 - Fixed the crash and leak. 2004-12-30 05:31:55 +00:00
Ilia Alshanetsky
a7bc501d90 MFH: A leak is better(?) then a crash. 2004-12-30 04:39:17 +00:00
Ilia Alshanetsky
8f7f00178f Fixed typo. 2004-12-29 21:56:42 +00:00
Ilia Alshanetsky
ed64463bdb Fixed memory leaks. 2004-12-29 21:33:03 +00:00
Ilia Alshanetsky
742f8c2502 MFB: don't perform pointless operations. 2004-12-29 21:25:00 +00:00
Ilia Alshanetsky
b19e666946 Fixed bug #31142 (imap_mail_compose() fails to generate correct output). 2004-12-22 17:27:39 +00:00
Ilia Alshanetsky
4ab69902dc Fixed possible crash in imap_mail_compose(). 2004-12-21 15:47:14 +00:00
Chuck Hagenbuch
6639ab8469 More spaces -> tabs. 2004-08-12 19:31:36 +00:00
Ilia Alshanetsky
5b58b9af6b Properly fix the msgno check inside imap_fetchbody(). 2004-08-12 19:20:15 +00:00
Chuck Hagenbuch
0bf1525bc8 fix. 2004-08-12 18:01:45 +00:00
Ilia Alshanetsky
1c2a22025d Fixed bug #29209 (imap_fetchbody() doesn't check message index).
# Initial Patch by tony2001 at phpclub dot net
2004-07-21 21:57:03 +00:00
Ilia Alshanetsky
a41a54f7fa Fixed bug #28963 (Missing space for \0 in address allocation). 2004-07-04 16:52:59 +00:00
Ilia Alshanetsky
d6ba95c618 Fixed various possible memory leaks. 2004-05-12 20:17:19 +00:00
Ilia Alshanetsky
827a79ad8d Fixed bug #26909 (crash in imap_mime_header_decode() when no encoding is
used).
2004-01-15 00:35:04 +00:00
Andi Gutmans
3286cb35bd - Remove use of bogus macro 2004-01-14 08:50:02 +00:00
Andi Gutmans
dbeb4158d2 - A belated happy holidays and PHP 5 2004-01-08 08:18:22 +00:00
foobar
fa82c2afc4 Added missing constants (bug #26831) 2004-01-08 01:01:39 +00:00
Rasmus Lerdorf
8afe759fa8 proto fix 2003-11-13 20:55:00 +00:00
Hartmut Holzgraefe
92b237f4c3 proto fix 2003-09-16 19:45:22 +00:00
Jon Parise
da7facc21b Register the TYPEMODEL constant from c-client's mail.h. 2003-09-04 07:47:58 +00:00
Ilia Alshanetsky
9d9727aac5 Fixed compiler warnings. 2003-08-28 19:17:34 +00:00
Ilia Alshanetsky
93bcd55eaf emalloc -> safe_emalloc 2003-08-12 00:58:52 +00:00
Ilia Alshanetsky
4151fd0453 One more typo ;) 2003-06-17 14:13:17 +00:00
Ilia Alshanetsky
4426338bf6 Fixed a typo in the check 2003-06-17 13:59:44 +00:00
Ilia Alshanetsky
df32619d63 Fixed bug #24150 (crash in imap_fetch_overview() &
imap_rfc822_write_address())
2003-06-16 17:41:52 +00:00
Andrey Hristov
9e9bd915aa proto fix 2003-06-16 13:39:56 +00:00
Ilia Alshanetsky
d75d52a571 Busted by the CS police. 2003-06-13 15:01:18 +00:00
Ilia Alshanetsky
de6c599504 Added missing function proto 2003-06-13 14:56:07 +00:00
Ilia Alshanetsky
17861b93bf Fixed bug #24161 (No timeout value for imap functions)
Added imap_timeout() that allows the user to specify as well as retrieve
timeout values and set default timeout values based on the
default_socket_timeout ini setting.
2003-06-13 14:39:22 +00:00
Ilia Alshanetsky
a17c5a5fbc Fixed bug #22505 (Allow imap_sort() and imap_search() to specify a charset) 2003-06-12 19:46:44 +00:00
James Cox
f68c7ff249 updating license information in the headers. 2003-06-10 20:04:29 +00:00
Dan Kalowsky
53c90b2344 Adding imap_getacl, patch provided by Holger Burbach
(holger.burbach@gonicus.de)
@  Adding imap_getacl functionality.  Function provided by Holger Burbach
2003-05-20 17:37:53 +00:00
Dan Kalowsky
99a616b0b9 NIL, NULL, same thing, but changing for consistency sake 2003-05-20 16:34:04 +00:00
Ilia Alshanetsky
56e44a4fc2 Fixed bug #22939 (crash in imap_header_info()). 2003-04-16 00:58:30 +00:00
Moriyoshi Koizumi
383808e9d3 Fixed proto to sync with the documentation 2003-03-31 20:36:46 +00:00
Wez Furlong
0a18a9d744 A add much more useful select(2) implementation than is provided by
windows sockets.  The winsock implementation will only work with sockets;
our implementation works with sockets and file descriptors.
By association, stream_select() will now operate correctly with files, pipes and sockets.

This change required linking against the winsock2 library.  In terms of
compatibility, only older versions of windows 95 do not have winsock2
installed by default.  It is available as a redistributable file, and is most likely installed by any OS patches (eg: Internet Explorer) applied by the user.

Also, add a win32 compatible pipe test when opening a stream from a pipe.  This test will only work on NT, win2k and XP platforms.  Without this test, interleaved fread() and select() calls would cause the read buffer to be clobbered.  I will be working on a fix for this issue for win9x.
2003-02-16 03:48:49 +00:00
Ilia Alshanetsky
246a075624 Fixed bug #22048 (crash in imap_headers when the e-mail contains an
abnormally large number of special characters).
2003-02-11 22:57:22 +00:00
Ilia Alshanetsky
065e4d6550 Fixed bug #22022 (Crash in imap_mail_compose() if the body is an empty array). 2003-02-03 21:24:32 +00:00
Ilia Alshanetsky
453368afdf Removed pointless checks. 2003-01-30 02:33:16 +00:00
foobar
4dfc7cc87c - Fixed stupid typo..
# I will test before commit, I will test before commit...
2003-01-24 10:12:55 +00:00
foobar
e1c985d9a7 Fix bug: #21817 (only enable this if --with-kerberos is used) 2003-01-23 16:29:49 +00:00
Ilia Alshanetsky
053023a71e quota function fixes. Thanks Wez. 2003-01-20 21:28:09 +00:00
Ilia Alshanetsky
20925f97b9 Changed php_error to php_error_docref.
Removed pointless memory allocation checks.
Memory leak fix inside quota functions.
2003-01-20 19:41:58 +00:00
foobar
83e9f23182 Fix bug: #21687, imap extension does not include gss authentication mechanism 2003-01-18 07:00:47 +00:00
Ilia Alshanetsky
fb6517e8ab Fixed memory leaks in imap_get_quota & imap_get_quotaroot.
Removed pointless checks around array_init().
2003-01-17 16:07:39 +00:00
Marcus Boerger
fff1c67b56 Fix ZTS-ZE2 build 2003-01-04 20:06:32 +00:00
Sebastian Bergmann
b506f5c8f8 Bump year. 2002-12-31 16:08:15 +00:00
Frank M. Kromann
7f3783ec15 fixing code style 2002-12-07 06:05:06 +00:00
Frank M. Kromann
0d812352be Fixing a possible strcat on a NULL pointer 2002-12-06 22:52:31 +00:00
Frank M. Kromann
7afd92792b Fix the use of "personal" information in To and Cc headers 2002-11-30 21:49:20 +00:00
Frank M. Kromann
7abdf90a0e free alocated mem.
minor changes in the layout
2002-11-27 18:52:31 +00:00
Frank M. Kromann
a2bf03ccea Avoid , at the end of each string (to, cc and bcc) 2002-11-26 07:04:31 +00:00
Hartmut Holzgraefe
8bd550825f email address change 2002-11-25 12:30:28 +00:00
Markus Fischer
121d4d1ef0 - Fix protos (resource instead of int for stream_id, fix some return protos,
consistent usage of options instead of flags).
- Make imap_ping,imap_setquota and imap_setacl  return a real (bool) now.
2002-10-09 09:20:46 +00:00
Ilia Alshanetsky
e672ce4ccc Fixed bug #19280 2002-10-08 20:07:52 +00:00
Dan Kalowsky
25a908f41a white space fix 2002-09-19 02:32:48 +00:00
Dan Kalowsky
3ae9127b46 Patch for Bug #19402 provided by Kevin Way (kevin.way@overtone.org) 2002-09-18 11:57:17 +00:00
Dan Kalowsky
e1fe1e189c missed one section for #15630 2002-09-09 21:01:33 +00:00
foobar
2ae84184d3 ws fixes 2002-08-16 23:25:53 +00:00
Dan Kalowsky
26e044a143 Silence a compiler warning, and returns the SUCCESS value on PHP_MINIT 2002-08-16 16:56:55 +00:00
Dan Kalowsky
c55d024c29 Comming a fix for a compile error found in Bug #15630
# NOTE this is NOT the supplied patch in said bug for fixing imap_utf7_decode
2002-08-14 20:55:11 +00:00
Dan Kalowsky
61fc6e766f Removing the imap_popen command... because as Jani puts it "it never worked
and it never will work" until IMAP servers support this feature.
2002-08-05 21:53:09 +00:00
Dan Kalowsky
d4ec2c30a0 Cleaning up the imap_get_quotaroot return array to remove useless data 2002-08-03 14:48:47 +00:00
Dan Kalowsky
f08a51f05a Adding in some BC for users to imap_get_quota() function 2002-08-01 14:47:48 +00:00
Dan Kalowsky
7f30227181 removing the useless +1's on sizeof() and adding the mail_parameter for the
getquot inside the imap_get_quotaroot function.  thank Jani.
2002-07-31 01:03:31 +00:00
Dan Kalowsky
579d1b6a28 fixes a typo in the word "limit", adds the null character to the strlen,
and seems to make imap_get_quotaroot return the correct values despite
cclients claim of "getquotaroot list improper".
2002-07-30 23:16:11 +00:00
Dan Kalowsky
b53b76335f forgot to make the same change to imap_get_quota... 2002-07-26 17:08:05 +00:00
Dan Kalowsky
05f3881995 Minor memory fix suggested by Zeev 2002-07-26 16:59:11 +00:00
Dan Kalowsky
9f3f613642 Adding initial support for PHP imap_get_quotaroot
# apparently c-client does not like Cyrus's GETQUOTAROOT return list this
# is still be worked out, but all functionality should be there
# Return array is still not very organized
2002-07-26 16:26:01 +00:00
Dan Kalowsky
0ccc2207bf (PHP imap_get_quota) updated to properly reflect the RFC 2087 as per
bug #14673
@- imap_get_quota now allows multiple resource values to be returned, as
   per RFC 2087, closes bug #14673 (kalowsky, Sander Steffann)
2002-07-26 16:22:43 +00:00
Frank M. Kromann
d305126002 Make sure To addresses are parsed correct with RFC822. 2002-07-02 23:45:32 +00:00
Frank M. Kromann
407a0ec66a Switch from imap_sendmail.* to sendmail.c under Win32 2002-07-02 19:29:15 +00:00
Derick Rethans
ea7653f667 - Fix TSRM gotcha 2002-06-28 14:35:20 +00:00