Commit graph

278 commits

Author SHA1 Message Date
pdontthink
2b6232c8f9
Add IMAP ID command (RFC2971), sent after every login - use by setting in config/config_local.php (see notes in config/config_local.example.php for more details) 2019-04-06 19:58:54 -07:00
pdontthink
fbcb1ca1f5
Happy New Year 2019-01-07 21:55:08 -08:00
pdontthink
23cd61b628 Happy New Year 2018-01-16 23:44:07 +00:00
pdontthink
eb6563d978 Seriously? The variable is named as an array and initialized as a string? Well, I hope no callers were expecting a potentially empty string, because now they will get an empty array instead. empty() should handle this fine, hopefully callers do something sane like that. 2017-12-29 20:03:40 +00:00
pdontthink
2454a09f25 SM doesn't know how to log in again on the same connection, so best to actually close the file handle as well 2017-06-09 10:25:27 +00:00
pdontthink
6cd24c0552 Happy 2017 2017-01-27 20:34:08 +00:00
pdontthink
2934017d92 Happy New Year 2016-01-01 20:59:53 +00:00
pdontthink
3b465a0d0f Happy 2015 2015-01-03 04:09:49 +00:00
pdontthink
19cfc02954 Add session variables that store information about most recent fatal IMAP error 2014-08-01 02:26:11 +00:00
pdontthink
6aa022543c Variable name correction 2014-01-21 22:15:03 +00:00
pdontthink
d95e0da38c Allow SSL socket context to be specified as well 2014-01-21 03:47:03 +00:00
pdontthink
e0ba6b31ed Add ability to show login error from the IMAP server instead of traditional "Unknown user or password incorrect" (thanks to Alain Williams) 2014-01-21 03:20:48 +00:00
pdontthink
cedca778de Add advanced control over the SSL context used when connecting to the SMTP and IMAP servers over SSL/TLS (Thanks to Emmanuel Dreyfus) 2014-01-21 01:13:49 +00:00
pdontthink
581dc23061 Happy 2014 2014-01-01 20:33:20 +00:00
Fredrik Jervfors
c076a1f1ae Update copyright 2013-07-26 17:31:02 +00:00
Thijs Kinkhorst
efd75f4867 Replace calls to htmlspecialchars() with sm_encode_html_special_chars().
New function sm_encode_html_special_chars() encodes HTML special
characters by calling htmlspecialchars(). It sets the character set
to ISO-8859-1, to fix compatibility with PHP >= 5.4.

Patch by Paul Lesniewski.

See #3491925
2012-12-09 12:06:30 +00:00
pdontthink
d4e2698415 Account for servers that send extra unsolicited FETCH responses (such as when flags change due to a FETCH request). PLEASE TEST! 2012-07-27 23:03:15 +00:00
pdontthink
33ebad3f5c Fall back to using LIST if NAMESPACE answer is malformed or otherwise problematic. This still doesn't account for situations where the NAMESPACE or LIST answer can't be parsed correctly. 2012-04-01 19:50:49 +00:00
Thijs Kinkhorst
c323e82aca I believe this code worked by chance, redefining it from string to array and
using it outside the code block it was defined in. This should repair it to
what was intended.
2012-03-24 10:42:31 +00:00
pdontthink
acc409fb2a Updating copyrights. Happy New Year. 2012-01-02 02:09:17 +00:00
pdontthink
fc57bf2b59 Happy New Year! 2011-01-06 03:16:21 +00:00
pdontthink
7aa0e60863 Update copyrights to 2010 2010-01-25 03:23:30 +00:00
Fredrik Jervfors
134d462c94 The copyright symbol isn't really needed since the word "copyright" is there. Also it doesn't display right in the documentation. 2009-09-29 12:15:33 +00:00
pdontthink
bc3fb36016 Stop using deprecated ereg() functions (#2820952) 2009-07-29 01:55:21 +00:00
Thijs Kinkhorst
6f1f3d6b35 The shell escaping fix in map_yp_alias (CVE-2009-1579) was incomplete.
Thanks Michal Hlavinka for noticing this. [CVE-2009-1381]
2009-05-21 17:11:22 +00:00
pdontthink
eda7b9b157 OMG - unsanitized shell command. Thanks to Niels Teusink. (CVE-2009-1579) 2009-05-11 22:17:46 +00:00
pdontthink
dba77072d2 Dunno why this was never implemented, but the comments say it's OK, so here goes... 2009-05-11 22:08:25 +00:00
Fredrik Jervfors
0a6245814a There are too many modified files being committed without the copyright year being updated, so here's a copyright year update the old-fashioned style. 2009-04-15 22:00:49 +00:00
pdontthink
6c2c0ff29b FIXME 2008-07-10 08:43:49 +00:00
pdontthink
167a679501 FIXME 2008-07-10 08:43:04 +00:00
pdontthink
416c38cee1 Notes about HTML we need to remove 2008-01-05 06:06:21 +00:00
Thijs Kinkhorst
593944ce7f - Fix busy loop and notice when two literals in IMAP fetch (#1739433).
thanks James E. Blair
2007-06-25 21:05:56 +00:00
Thijs Kinkhorst
11b10ba5d1 increment year in copyright notices 2007-01-13 20:15:44 +00:00
stekkel
9767e2393c Remove sqsetcookieflush call (not needed) 2007-01-13 14:04:39 +00:00
pdontthink
717be5c30c Massive update to plugin system architecture. Please test! Not all core plugins are tested yet, please point out issues that need to be fixed. Please see http://marc.theaimsgroup.com/?t=116282394000001&r=1&w=2 2006-12-10 05:07:54 +00:00
pdontthink
3b05f3adc4 Allow sqimap_login() to return error string when connection fails; would be nice if we had an error code system instead; the extent to which HTML is buried in error messages in the core like here is indicative of just how far away SM's architecture is from a good modularized system that is truly ready for t12n and a good API. 2006-11-11 20:05:23 +00:00
pdontthink
93fb75d405 Doc fix 2006-11-11 08:24:25 +00:00
pdontthink
6692d38bd8 Long time in coming: allow sqimap_login() to return even if connection failed. Useful in many places, including the new API library. 2006-11-11 08:13:12 +00:00
Alexandros Vellis
0f2d1a970e Fix for namespace parsing. UWash has a namespace prefix without a delimiter, which is perfectly legal. 2006-11-02 12:54:14 +00:00
Alexandros Vellis
49c78a9b56 NAMESPACE support in IMAP backend. Also a whitespace fix. 2006-10-10 12:48:44 +00:00
Alexandros Vellis
2b54ac2f41 Support for authz authorization identity in the IMAP backend. 2006-10-09 11:38:32 +00:00
stekkel
01181a5333 Fix for bug #1562271
* OK [PARSE] Unexpected characters at end of address: {SET:debug=51}
Triggered literal fetching from the imap stream whil {SET:debug=51} is not
an integer and not meant as literal.
2006-10-04 19:25:25 +00:00
pdontthink
60a03d0894 Wrong variable name used 2006-09-04 18:06:28 +00:00
tokul
59ae6f3ac2 removing trailing ?> from function scripts 2006-07-15 12:01:32 +00:00
Alexandros Vellis
95296e46ea Fix capability retrieval for "double" cases in server capability response, for instance in a new Cyrus: SORT SORT=MODSEQ . This patch will eliminate a notice that was displayed. 2006-05-26 12:53:18 +00:00
tokul
4115a9110e updating error_box() function calls. second argument was modified.
using squirrelmail template code for closing html tags.
added some comments in footer.tpl in order to detect generated footer
2006-05-14 17:09:29 +00:00
tokul
ca0bf2e239 if $key is set to false, sqimap_login() function will use sqauth_read_password()
to retrieve user password.
sqimap_login() calls in plugins are modified to use this code.
It allows to centralize place that is used to access password information.

Older way is preserved for backwards compatibility and different IMAP login
credentials.
2006-04-19 18:03:24 +00:00
stekkel
0a70f643f2 Centralized init 2006-04-05 00:22:11 +00:00
stekkel
1ca59fc121 Fix for updating the mailbox cache concernig flags 2006-03-17 17:48:31 +00:00
stekkel
ac5f37ba81 possible fix for unsolicited fetch responses during select call (IA Mail
Server v.5.3 Corporate Edition
2006-03-09 18:22:47 +00:00