Commit graph

148 commits

Author SHA1 Message Date
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
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