Commit graph

139 commits

Author SHA1 Message Date
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
Thijs Kinkhorst
9380bf6b72 Fix typo, thanks to Scott A. Hughes. 2002-07-28 17:09:30 +00:00
stekkel
cbc9d9de55 moved check for issent to mailbox_display where it belongs 2002-07-22 19:25:55 +00:00
stekkel
a8d0e85ae6 typo 2002-07-12 16:30:50 +00:00
uid77282
b752a13b74 Spacing fixes 2002-07-05 22:56:07 +00:00
uid77282
cd9d641e7f $msgi+1 doesn't work when using anything but the system's default sort.
And maybe not even then.  This makes it so you don't select message 134 and
end up deleting message 1 just because it happens to be first on the list.
2002-07-05 22:37:47 +00:00
stekkel
0e59838711 removed debug message 2002-07-05 17:18:17 +00:00
stekkel
dc7e555a2c UID support 2002-07-05 13:18:00 +00:00
centaurix
7c00d76e60 changed preg_match from /AU to /AUi flags to catch headers case insensitive
(before that headers like SUBJECT: resulted in a "unkown subject")
2002-06-23 10:31:28 +00:00
jmunro
61d81edeb2 looks like a typo at line 632 giving me parse errors. 2002-05-28 19:05:07 +00:00
stekkel
4371e203e5 Added function to get mime-entity headers 2002-05-28 14:22:31 +00:00
Pontus Ullgren
11ed1b3a56 OK according to the RFC this fix should be done for all imapservers, sorry about that 2002-05-23 19:00:44 +00:00
Pontus Ullgren
8f827545da Forgot to add as global 2002-05-23 15:50:57 +00:00
Pontus Ullgren
6786ec6b9a Added TZ-fix for cyrus and mac os x mailserver aswell since these have been reported. 2002-05-23 09:33:40 +00:00
Pontus Ullgren
f32c6c8fdd Fix for badly formated date string from INTERNALDATE when using courier 2002-05-22 19:59:30 +00:00
stekkel
50e5f6a484 create unfolded lines breaks the header->to header-cc methods for adding the
individual addresses to an array.
Now it's fixed :-)
2002-05-02 20:40:01 +00:00
stekkel
f1497cd440 removed echo 2002-05-01 11:21:29 +00:00
stekkel
030403b49e Speed related changes to sqimap_get_small_header_list. However it's tested
it might need some more tests.
2002-05-01 11:00:06 +00:00
jmunro
2840fdffeb final fix for thread sort indent before 1.2.6 2002-04-29 22:23:44 +00:00
jmunro
e36f830879 fixes sort order when using server-side and $sort=6 2002-04-28 04:52:44 +00:00
stekkel
f3f73f57ed minor fix 2002-04-16 09:11:59 +00:00
jmunro
b9fecdce5d fix E_ALL warnings when server/thread sorting not supported 2002-04-16 05:45:16 +00:00
jmunro
758f5ae733 fix for bug # 544264, replying with Cyrus 2002-04-15 22:35:45 +00:00
stekkel
2a671a510b Added headerfield type for use with multipart/related messages 2002-04-15 21:32:18 +00:00
jmunro
78e92a61d9 rewrote the function that determines message indent levels for thread sort.
fixes problems with big threads and does a little fake threading when the
message thread has been broken.
2002-04-12 04:16:52 +00:00