Commit graph

214 commits

Author SHA1 Message Date
Fredrik Jervfors
9ed98bb1ec phpDocumentor updates 2005-09-18 10:25:54 +00:00
tokul
c866fc3486 moving include to the top. 2005-07-31 12:44:39 +00:00
stekkel
befb14baf7 XSS fixes 2005-06-15 22:45:44 +00:00
Thijs Kinkhorst
6a3f0ffce5 Tweak IMAP connection error display (#1203154). 2005-05-20 10:34:40 +00:00
Fredrik Jervfors
f98c36762d Fixing strings:
- Removing space before colon
- Removing trailing spaces
- Changing "said" to "wrote"
2005-04-16 17:45:40 +00:00
tokul
bff510ede3 documenting functions. adding @deprecated to obsolate functions and @since
tags to functions introduced after 1.0. Trying to document argument types
where possible
2005-04-08 13:39:05 +00:00
Fredrik Jervfors
191baad95e String fix 2005-04-08 09:44:08 +00:00
Thijs Kinkhorst
890f0e9aca fix 'referral' bug for UW-servers, sorry people 2005-04-08 08:47:05 +00:00
Thijs Kinkhorst
3e6df95c87 Partial support for IMAP LOgin Referrals: tell the user what's going on
and log him out (RFC 2221) (Patch #1006242).
2005-04-06 21:47:06 +00:00
tokul
8d00d0bad3 adding param and since tags to some functions 2005-04-05 14:16:31 +00:00
Thijs Kinkhorst
4d5559dcde Fixed bad/malformed request error when Sent was over quota. This was checked
at the second stage when appending to Sent but not the first stage (the
response was simply thrown away). I've abstracted the checking to a
separate function that is called at the two relevant points. Closes: #1172694
2005-03-30 18:35:50 +00:00
tokul
329b9a0cb7 documenting some imap functions 2005-03-29 16:03:24 +00:00
Thijs Kinkhorst
a73561b911 Increment year in copyright notice. 2004-12-27 15:04:02 +00:00
Fredrik Jervfors
8c8ecffa57 Replacing tabs with spaces, trimming white space at EOL and newline at EOF 2004-11-02 22:21:34 +00:00
Jimmy Conner
2cd94f0d75 Removed variables that were initialized, but never actually used
Also remove a few more globals that were unused
Remove a few newlines at the end of files
Hopefully this will help shrink the memory footprint of SM just slightly
2004-11-01 02:05:15 +00:00
Jimmy Conner
6bfd0f1168 Remove unused globals 2004-10-31 23:24:09 +00:00
indiri69
d05fcaf17e Should compared strings with strings. Otherwise a string of just '0' is treated as false 2004-10-29 18:15:59 +00:00
Jimmy Conner
7ac7b090be Wrong break point is set, we are only 2 deep here, not 3 2004-10-28 04:36:31 +00:00
Fredrik Jervfors
d400b6c95d Fixing undefined variables 2004-09-28 05:37:13 +00:00
Thijs Kinkhorst
850e646c72 Close connection cleanly when login/pw incorrect, following RFC recommendation. 2004-08-18 20:16:46 +00:00
Fredrik Jervfors
303d308968 XHTML fixes 2004-08-15 01:02:58 +00:00
jangliss
c8be9a65a7 Shouldn't let PHP generate an error in this case, if we are handling a
connection failure
2004-06-13 23:16:46 +00:00
stekkel
8797a08eb5 typo 2004-05-26 13:24:55 +00:00
stekkel
8784e12b74 removed parseAdress routines and made it point to rfc822address.php 2004-05-26 00:36:06 +00:00
tokul
dca19f1eda aStutus -> aStatus 2004-05-20 09:46:07 +00:00
stekkel
f510138349 * Request UID and UIDVALIDITY from the status response if not available in the
select response.
* Tried to fix the broken del move next function and added a few arguments
  to the dmn_expunge function because the globals scared me when I couldn't
  get the job done.
2004-05-19 22:36:41 +00:00
stekkel
f630a0daf1 second try .. 2004-05-14 19:12:53 +00:00
stekkel
1069293bcd Detect untagged BYE responses in case the connection is terminated. 2004-05-14 18:37:40 +00:00
stekkel
5d2e086e5a Fixed on the fly decoding of base64 attachment. We need to do on the fly
decoding because otherwise we have to buffer entire attachments in memory
which will cause out of memory errors with large attachments.

The fix has to do with the grouping of bytes in pairs of 4 which represents
24 bits of data. If such group is splitted over 2 lines then on the fly
decoding went wrong. Now we count the pure base64 data (without \r\n, \r \n
and spaces), divide it by 4 and return incomplete pairs which get processed
the in the next loop.
2004-05-02 13:49:14 +00:00
stekkel
1b45d3c991 reminder for people that want to use the capability string. It's broken in
certain cases.
2004-04-22 18:20:38 +00:00
tokul
17c56f73ed two more subpackage blocks 2004-04-12 08:03:39 +00:00
Erin Schnabel
c83dcc0345 remove perlishly commented debug lines. my bad. 2004-03-29 16:58:20 +00:00
Erin Schnabel
c072809def finish "buttonizing" read_body header.
Correct some mistakes (compose_in_new, resume draft, edit as new)
Centralize javascript detection in prefs.php - checkForJavascript
Move javascript_on from prefs to session - have just javascript_setting in prefs.
2004-03-28 20:45:20 +00:00
Thijs Kinkhorst
28eadb73d0 Move $sqimap_session_id from global to static scope. 2004-03-15 19:57:20 +00:00
tassium
efc02d8258 Brain-damage in sqimap_create_stream(). Can't believe I let myself commit this function in such poor shape, and further that nobody else caught it until now ;)
sqimap_create_stream() was not as generalized as it should have been - it was still using $imap_server and $use_imap_tls, etc.  Now obeying passed params as it should.
2004-02-26 16:19:29 +00:00
Thijs Kinkhorst
cde0377d36 We're living in 2004 now... perl is your friend for these kinds of things :) 2004-02-24 15:51:22 +00:00
alex-brainstorm
73a4cc6748 Add an optional link parameter to sqimap_error_box(), allow self error handling even when connection is dropped, and remove the notices that happen in that case. 2003-11-09 17:50:54 +00:00
stekkel
1d79c4e994 The SASL intial response capability name is changed in
draft-siemborski-imap-sasl-initial-response-01b.txt to SASL-IR (imho a
better name). Currently Cyrus 2.2.2-BETA advertise SASL-IR and the next UW
release will do that too.
2003-10-30 01:18:52 +00:00
Thijs Kinkhorst
336662934c Add some basic documentation, and remove some long-obsolete functions. 2003-10-29 19:58:06 +00:00
tassium
9098cb73e4 Preparation to begin using phpdocumentor.
Added basic @package/@subpackage tags
The decode/ files were documented slightly more thoroughly, although they're almost self-explanatory anyway.

The individual functions in the functions/ files need to be documented though, and now that this commit is in, anyone willing to write docblocks for functions should get cracking ;)
2003-10-28 21:27:47 +00:00
stekkel
bbe8c907cc Today Cyrus 2.2.2-BETA with SASL Initial Client response was released so it
was a good moment to implement the SASL imap extension.
See also <draft-siemborski-imap-sasl-initial-response-00.txt>

NB: The code is untested and I like to know if it works. Volunteers to test
(Rob Siemborski maybe) ?
2003-10-28 21:13:28 +00:00
tassium
a6424e15e8 New function: sqimap_create_stream(). Returns an IMAP stream.
Cleaned up sqimap_login() to make use of new function, and fixed some of the poor code formatting I did before.
2003-10-22 21:51:25 +00:00
stekkel
a5081fdc11 Rewrote sqimap_fread to make it work on PHP 4.3.2.
The fread behaviour was changed with as result that fread didn't return
when the requested buffersize was full but at a earlier stage, at the end of
a tcp packet.
From now on fread stops on: EOF, full buffer and in case of sockets at end
of packet if the imap server isn't providing the requested data quick
enough.
2003-09-24 20:53:06 +00:00
tassium
160ebd3c07 By request, SASL PLAIN for IMAP and SMTP.
I did not add detection to conf.pl, perhaps later..
2003-09-23 18:06:12 +00:00
tassium
f4265d8463 Fix to prevent query containing username and password from being displayed if imap connection fails during login. Similar code committed to stable as well. 2003-08-11 17:11:14 +00:00
alex-brainstorm
75e1fc46ca Fix autodetect-delimiter-no-namespace code for devel sqimap_read_data(). Was breaking Mercury/32. 2003-07-27 00:32:34 +00:00
stekkel
e375cf726b Due to changed behaviour of fread (see php bug 24033) we cannot use large
buffersizes anymore because we cannot trust fread if the requested buffer is
actually returned.
blocking socket connections do not work anymore like they supposed to work
:(
2003-07-24 21:23:18 +00:00
alex-brainstorm
ae6e881c88 Extracted error_box() calling code into sqimap_error_box() for unified imap error display 2003-07-24 18:49:28 +00:00
stekkel
b3c5fc5794 Correct on the fly base64 decode algoritm in case the returned data does not
have "proper" lines with the same length. With an old uw server I discovered
that lines were split in the middle by \n. This fix will correct it.

The rfc about base64 decoding does not mention anything about line length.
rfc2045 does mention that lines should not be longer then 78 characters but
does not say all the lines (excluding the last of course) must be of the same
size.
There for i could not ignore it and fixed it.
2003-07-24 18:08:10 +00:00
alex-brainstorm
fc8568eca0 Fix more literal mailbox names 2003-07-23 03:02:08 +00:00