Commit graph

163 commits

Author SHA1 Message Date
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
stekkel
80ff67e460 wrong version, 2ed try 2002-11-04 22:55:59 +00:00
stekkel
892fd3c1b5 added flag related functions for handling sets of messages instead of using
an individual imap-call per message
2002-11-04 22:38:08 +00:00
jmunro
16542833cd Since changing to rg=0 we make extensive use of $_SESSION and $HTTP_SESSION_VARS. Because of this session_register, session_unregister, and session_is_registered should NOT be used (see the PHP manual at php.net). They are buggy over different PHP versions anyway. Now when changing a session var using the custom 'sq' version of these functions (all located in global.php) the superglobal array is accessed directly. This fixes the problem with corrupted objects in the session. Tested with 4.1.2 rg=0 and 1. 2002-10-06 23:43:02 +00:00
Thijs Kinkhorst
91f4b6989d Fix for IMAP servers that don't always return a UIDNEXT value 2002-09-23 08:32:29 +00:00
Thijs Kinkhorst
067363daea Update function directory to rg=0. 2002-09-21 15:59:32 +00:00
stekkel
9970784525 fix for never ending while loop 2002-09-06 17:44:29 +00:00
thomppj
caeff8b548 First, more formatting conventions.
1. Wrap all operands of a complex expression with parentheses.
     For instance:
         if ($bob == 'foo' || $bob == 'bar') {
     is wrong. Do this instead:
         if (($bob == 'foo') || ($bob == 'bar')) {

  2. Carefully decide between pre and post incrementation. If it
     does not matter, always choose pre because it is technically
     more efficient. For instance:
         for ($i = 0; $i < $count; $i++) {
     is wrong. Do this instead:
         for ($i = 0; $i < $count; ++$i) {

  3. Classes should be named in style like this:
         MessageHeader
         Rfc8222Header
     etc. When there is an acronym at the beginning, treat it
     like a word - do NOT captitalize each letter of the acronym.

  4. Put each class in a seperate file named ClassName.class.php.
     Related classes can be put in one directory and then included
     in a main include file.

Second, big changes with mime.class.php here. And I don't think I broke
anything. (Sounds like famous last words, eh?)
2002-08-29 23:42:46 +00:00
stekkel
660b1536b4 allow_call_time_pass_reference = Off 2002-08-16 10:38:45 +00:00
stekkel
0e8cd5f791 Fix for broken imap-servers with a missing UIDNEXT Value.
Thnx Thijs Kinkhorst for solving this issue.
2002-08-14 12:10:17 +00:00
robsiemb
271ff2d72a make the failure to set the \Answered flag on a message when replying
non-fatal
2002-08-08 18:54:28 +00:00
stekkel
86e5cf0709 rfc822_header 2002-08-06 22:46:03 +00:00