Commit graph

174 commits

Author SHA1 Message Date
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
alex-brainstorm
51c8aa1716 sqimap_encode_mailbox_name() calls added 2003-07-25 01:02:17 +00:00
alex-brainstorm
4888607a79 Complete Marc's fix for untagged [PARSE] response to THREAD 2003-07-18 11:24:32 +00:00
stekkel
9ffa2585f1 fix for BAD response during thread view. The problem was the availability of
untagged OK responses before the actual thread response
2003-07-16 16:37:44 +00:00
Thijs Kinkhorst
1f4f6cf114 Fix this awfully ugly error message, finally. 2003-06-08 12:39:49 +00:00
Thijs Kinkhorst
62a3b54436 Remove some obsoleted parsing functions. 2003-05-22 16:22:52 +00:00
stekkel
2a676bec2a Missed a spot, now the date is also extracted from the header 2003-05-17 17:00:54 +00:00
stekkel
77a9ce5a49 Rewrite of the sqimap_get_small_header_list function.
Now we can handle returned fetch responses with a different order of
returned arguments. UID i.e. can be properly detected if it is returned
after the HEADER data.
Another issue I fixed is adapting the msgs_id_str to 1:* in case we request all
headers for a mailbox.
If we don't do that the msgs_id_str can become pretty large and in my case
it was 12kb large and the imap server returned a BYE, querystring to long.

We should inspect the last issue better because there are situations where I
can still trigger the error. Setting the number of messages to display to a
large value would cause a BYE again.
2003-05-16 22:46:20 +00:00
stekkel
ff1d3a53b5 moved address-parsing to the displayable messages 2003-04-25 16:21:19 +00:00
stekkel
001b91374f Whoops wrong file
In case of server sort and non sorted headers, display newest first
2003-03-01 01:35:10 +00:00
stekkel
56158f3748 charset encode / decode fixes
support for encoded personal names inside addresses
fix for headerrequest
2003-02-28 19:12:00 +00:00
stekkel
023e257faf rewrote unfold routine inside sqimap_small_header_list because it didn't
handle the headerlines like it should (rfc2060). For example a subject line
with a subject size of 70 chars (no spaces) could not be detected.
2003-02-24 20:36:51 +00:00
stekkel
0c732bedbd lot's of fixes:
* removed htmlspecialchars from charset_decode because of double
htmlspecialchars calls
* fix for \NoSelect folders
* code cleanups
* added htmlspecialchars for displayattachmnent (filename)
* fixed charset issue with base64 encoded strings (decodeHeader)
2003-02-24 18:49:53 +00:00
Thijs Kinkhorst
75de52f258 Getting ready for 1.4.0 RC1 2002-12-31 12:49:43 +00:00
tassium
286c5e1c39 sqimap_message_list_squisher() was returning nothing if the data passed to it was not an array. It should have just been returning the data as it was passed. 2002-12-11 17:52:23 +00:00
Thijs Kinkhorst
513e603e08 XXS fixes, as in stable 2002-12-06 16:42:12 +00:00
tassium
5414e1f492 sqimap_msgs_list_delete was calling sqimap_run_command using a variable ($handle_errors) which was not set. The call above it (also to sqimap_run_command) did not use $handle_errors, so I changed the bad call to match the other call. 2002-12-02 21:36:56 +00:00
indiri69
fdc0c3febc Make header checking case insensitive 2002-11-05 16:33:50 +00:00