Commit graph

191 commits

Author SHA1 Message Date
tokul
45cf307ed7 php 5.1b2 - can't use function call inside array_shift() function.
src/configtest.php
- add extra checks in use_php_recode and use_php_iconv.
- fix typo. $dbtype should be used instead $db
2005-07-14 17:44:41 +00:00
Thijs Kinkhorst
7d6145a7f4 Fix variable typo in parseFetch which caused IMAP errors with Exchange.
Thanks Christian Froemmel from Charite.
2005-06-24 08:15:38 +00:00
Fredrik Jervfors
2531f52955 Trimming whitespace and replacing tabs 2005-04-23 12:08:00 +00:00
stekkel
24dc4ae0fa Templates 2005-04-14 22:09:03 +00:00
tokul
91f7290e78 since comments are not needed for @return 2005-04-13 14:21:57 +00:00
tokul
5df0eb8513 documenting two functions 2005-04-13 13:24:06 +00:00
tokul
4f0cc014c5 adding since tags 2005-04-06 12:46:40 +00:00
Jimmy Conner
f5a3a72aca Update message copy and move functions to allow for custom handling / ignoring of the error messages.
This fixes a bug where users with exceeded quota's could not login when the filter plugin is actively filtering.

Currently user does not get an error if filtering failed (I am working on it) and it continues parsing the next filter even if fails (I have code for this, but don't think its necessary)
2005-03-25 06:00:45 +00:00
Thijs Kinkhorst
a3de86e11f Add comment to parsePriority function. I had to duplicate this function in
Rfc822Header.php AND imap_messages.php because both seem to do header parsing.
2005-02-06 19:26:23 +00:00
tokul
cb6839ed67 Fixing sorting order in get_squirrel_sort() (#1115403). 2005-02-03 16:14:30 +00:00
Fredrik Jervfors
9faf3051c1 Changing squirrelmail/Squirrelmail to SquirrelMail in some strings as well as other minor documentation fixes 2004-12-29 15:06:20 +00:00
Thijs Kinkhorst
a73561b911 Increment year in copyright notice. 2004-12-27 15:04:02 +00:00
Thijs Kinkhorst
7f32e1d4d0 Add support for recognising 'Priority' and 'Importance' headers next to the
'X-Priority' that we've been supporting for a long time.
2004-11-21 13:10:06 +00:00
pdontthink
c05e7e12c8 Fix: Messages shown with bad times in message list due to misinterpreted UW IMAP internal date 2004-11-09 20:04:10 +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
Jimmy Conner
c9446974d8 Minor bug fix, just a misspelled variable 2004-10-28 05:17:41 +00:00
Fredrik Jervfors
b9788abcfa Minor cleanups 2004-08-24 22:00:05 +00:00
jangliss
66d9203809 Fix link 2004-06-19 23:30:00 +00:00
stekkel
abd8f5ebf7 Added documentation and fixed a minor issue 2004-06-01 21:44:37 +00:00
stekkel
abf6bbc461 Rewrite of internal message caching
Added paginator support for asearch
Added next/prev links in read_body to walk through search results
Added individual sort settings / mailbox
Added what I forgot to mention
2004-05-31 20:07:44 +00:00
stekkel
9694d7879b make use of new parseRFC822Address function 2004-05-26 01:18:42 +00:00
Thijs Kinkhorst
ac61dd81d2 Reset $msg on each iteration, otherwise a message with eg no subject
will take the subject from the previous message.
2004-05-25 13:47:49 +00:00
Thijs Kinkhorst
2f1cc08b0e Replace array_search that only uses a boolean to check whether the value
exists with in_array (which returns just that boolean), and fix the
left over call to array_search to also check for NULL return.
This should fix the problems that Fredrik, me and other PHP 4.1 users
had with Marc's recent changes.

From PHP docs:
"Note:  Prior to PHP 4.2.0, array_search() returns NULL on failure instead of FALSE."
2004-05-24 19:55:21 +00:00
stekkel
ca8d8b640f Set the content-type correct so we can check on multipart/mixed in
mailbox_display (printMessage).
2004-05-24 18:01:59 +00:00
stekkel
e3c519e440 cleanup up filter plugin 2004-05-23 15:38:40 +00:00
stekkel
c27886a4eb More cleanups. 2004-05-23 08:52:39 +00:00
stekkel
d91bbed263 Another big update:
1) do not do a search 1:* UID request in case we do not sort. That isn't
needed, just use a non uid fetch and request the UID together with the rest
of the headers.

2) Started on adding envelope parsing to sqimap_get_small_header list so we
can remove the imap related code from the messages class.

2) cleaned up the functions in mailbox_display, don't use trillions of
arguments when you can provide an array as well.

3) adapted right_main.php and search.php to fit the adapted functions in
mailbox_display

I hope the code makes more sense now an is easier to understand so that we
can start on separating the logic from the html output and prepare for
templates. Volunteers?
2004-05-22 20:39:10 +00:00
stekkel
01f20c33df Sigh, maybe I need sleep or so. To many bugs ... 2004-05-21 16:30:52 +00:00
stekkel
e0e3a3aed8 fix sort by internaldate if the internaldate does not have the expected
format.
2004-05-21 16:00:16 +00:00
stekkel
9349ee9987 More code cleanups and added a few notes/comments 2004-05-21 15:01:43 +00:00
stekkel
4b2a4469bb fix for non server side sorting on internal date
Modified the subject sort to strip out the [mailinglist] entries before we
start sorting.
2004-05-21 13:03:42 +00:00
stekkel
34dffa1d9d Simplified DMN and the findPrevious and FindNext functions. 2004-05-21 11:24:07 +00:00
stekkel
8881b9eaf4 code cleanup 2 2004-05-20 23:44:15 +00:00
stekkel
ac73116f5f Code cleanup. 2004-05-20 23:20:21 +00:00
stekkel
b65e1b0a60 prohibit message sets other then a single id when fetching a single message. 2004-04-20 16:55:41 +00:00
tokul
17c56f73ed two more subpackage blocks 2004-04-12 08:03:39 +00:00
stekkel
a6215b86bb Break 1 level less, otherwise the rest of the messages are not processed.
I hit this bug by coincidance and thnx to a server crash. Cyrus returned
information like UID, RFC822.SIZE, INTERNALDATE (that info is probably
cached by cyrus) correct, but an empty header. At the end of the response
there was an untagged OK response with as server message: Message <nnn> no
longer exists.
2004-03-26 10:24:45 +00:00
Thijs Kinkhorst
5a4550f372 Remove almost all left overs of our non-uid-imap-server support. 2004-03-15 20:15:16 +00:00
Thijs Kinkhorst
af4bc6527f Better support for malformed/absent dates and headerlines ending in only "\n". 2004-02-28 15:13:17 +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
Erin Schnabel
5378a6ad6e More UI changes - message list is more compact. Prev & Next links are
consistent between Index and read body displays, move is in the same place,
etc.

Comments welcome.
2004-01-30 06:59:47 +00:00
tokul
2cea5ee40c fixing multiline headers. space or tab should not be removed.
tab is replaced by space, because it is later used split decoded string into chunks
2003-12-30 15:30:11 +00:00
stekkel
dee1922ba6 EIMS workaround. EIMS returns the SEARCH response as multiple untagged
SEARCH responses. That is against RFC3501 !!!
example:

A005 UID SEARCH UID 1:*
* SEARCH 5949 8160 8401 8402 8413 8470 8471 8472 8497 8499
* SEARCH 8502 8504 8514
A005 OK SEARCH completed

We only use that call in case of non server side sorting.
2003-11-04 00:00:21 +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
alex-brainstorm
4d312957a9 Get rid of one of the two flavors of _(Unknown sender) for simpler translations 2003-09-01 00:36:44 +00:00
tassium
122f1e9e03 Added a "bypass trash" checkbox to the mailbox display. When checked, the Delete button ignores the use of the trash folder. 2003-08-28 17:28:21 +00:00
tassium
759fc2745f sqimap_msgs_list_copy now does what you'd expect it to.
sqimap_msgs_list_move does what _copy USED to do.
Only one reference to that function needed to be changed in the core code.
No core plugins use it.
2003-08-15 14:46:15 +00:00
stekkel
344a913ff6 Same story as THREAD fix. Skip the unsollicited responses 2003-07-29 23:54:49 +00:00