Commit graph

1778 commits

Author SHA1 Message Date
stekkel
e375cf726b Due to changed behaviour of fread (see php bug 24033) we cannot use large
buffersizes anymore because we cannot trust fread if the requested buffer is
actually returned.
blocking socket connections do not work anymore like they supposed to work
:(
2003-07-24 21:23:18 +00:00
alex-brainstorm
e83198d1f1 Imap error management and 8bit chars encoding ;) 2003-07-24 18:51:59 +00:00
alex-brainstorm
ae6e881c88 Extracted error_box() calling code into sqimap_error_box() for unified imap error display 2003-07-24 18:49:28 +00:00
stekkel
b3c5fc5794 Correct on the fly base64 decode algoritm in case the returned data does not
have "proper" lines with the same length. With an old uw server I discovered
that lines were split in the middle by \n. This fix will correct it.

The rfc about base64 decoding does not mention anything about line length.
rfc2045 does mention that lines should not be longer then 78 characters but
does not say all the lines (excluding the last of course) must be of the same
size.
There for i could not ignore it and fixed it.
2003-07-24 18:08:10 +00:00
alex-brainstorm
e6cb0cca51 removed encode_mailbox_name() and changed calls since it is now in imap_general. removed INBOX name encoding. removed folder_prefix from forged LSUB INBOX response. 2003-07-23 12:12:14 +00:00
Thijs Kinkhorst
568177a395 off-by-one: when strlen == trim_at, we also don't want to print ...
make code a little cleaner and get default trim_at value out of the fct
2003-07-23 11:27:36 +00:00
Thijs Kinkhorst
6e8d622861 Extend sm_print_r so you can do:
sm_print_r($a, $b, $c);
2003-07-23 11:23:53 +00:00
alex-brainstorm
fc8568eca0 Fix more literal mailbox names 2003-07-23 03:02:08 +00:00
tokul
d9c197e468 Changed Lithuanian encoding in order to make it mbstring compatible. 2003-07-22 09:55:41 +00:00
Thijs Kinkhorst
7e05ef9cbe Fix that frequently subjects were displayed ending in ... even though nothing
was trimmed.
2003-07-21 15:21:42 +00:00
alex-brainstorm
e315732f7f Call set_my_charset() before actually using , and fix variable name in case != iso-8859-1, all pointed out by Tomas ;) 2003-07-21 12:47:06 +00:00
alex-brainstorm
bbdd328082 Charset spec test should be case-insensitive 2003-07-20 22:43:15 +00:00
alex-brainstorm
d6a5cf2712 Fixed Tomas' problem skipping iso-8859-1 2003-07-20 21:52:56 +00:00
tokul
9cd504edb4 iso-8859-1 test in imap_utf7_decode_local does not work 2003-07-20 17:23:26 +00:00
tokul
f2b9b5f5d5 Added optional mbstring functions to deal with i18n folder names 2003-07-20 16:17:08 +00:00
alex-brainstorm
4888607a79 Complete Marc's fix for untagged [PARSE] response to THREAD 2003-07-18 11:24:32 +00:00
Jimmy Conner
8e322c5909 Revert this part back, funny thing is that I never changed it in my local copy... 2003-07-18 03:03:11 +00:00
Jimmy Conner
7e8409022a Added 4 hooks (internal_link, mailbox_display_buttons, move_messages_button_action, create_collapse_link)
These are very useful for several plugins (Msg  Flags, Archive Mail, Link Buttons to name a few) and allow for a more pretty/graphical display
2003-07-18 02:53:37 +00:00
jangliss
0febb64ec6 Should have checked in further details what the possible side effects could
be... for now just mark them as Special Folders.  That should take care of
it.
2003-07-17 06:32:50 +00:00
jangliss
206f1e8c13 When using sent subfolders, the special folder option is overruled because
the parent isn't marked as a special folder.  This code forces the parents
of the special folders to also be marked as special.  The rest of the subs
for the parent special should follow the movement of the parent in left_main
2003-07-17 06:29:38 +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
jangliss
d80c698811 Fixed bug that would cause e-mails dated in the future to be displayed with
only the time.
2003-07-16 06:36:07 +00:00
jangliss
e03ab2b9b8 Provide user with ability to change date/time display in mailboxes. This was
requested on IRC, and I think it should have always been optional.
2003-07-14 05:58:54 +00:00
tokul
12396dc6cb Translation options in Display prefs won't be displayed if translation
directory is not present in locale/
2003-07-13 10:41:33 +00:00
pdontthink
a9ad963b2a Get a little extra room for internal links when attributions are off 2003-07-12 22:27:38 +00:00
tokul
0bd56c8b95 Bug. 765828. Rewrote patch in order to process locales correctly. If locale
is processed incorrectly, it is enough to add $languages['xx_XX']['LOCALE']
variable with full locale name. Fixed only ru_RU and lt_LT. Tested on
Linux Debian Woody and php 4.1.2, 4.2.3, 4.3.0, 4.3.2
2003-07-12 09:01:49 +00:00
indiri69
8818c6ee19 Fix message highlighting for text with spaces in it. 2003-07-11 17:51:34 +00:00
alex-brainstorm
6b8f490b9f oldway=false : Fix forged LSUB response triggered by new regexp, and internationalized INBOX display 2003-07-11 13:01:09 +00:00
alex-brainstorm
dab546e8da Fix literal and duplicate mailbox names 2003-07-11 10:51:54 +00:00
alex-brainstorm
f7a3fc6593 2 notices, \ needs literal 2003-07-11 09:53:35 +00:00
stekkel
959de6649a Remove check for INBOX. If inbox isn't in the LSUB response then it's
unsubscribed and we just add it to the list. No reason to check specificly
for LSUB "" "INBOX" or LIST "" "INBOX"
If there is no inbox then a select will produce an error message.
2003-07-10 20:20:05 +00:00
pdontthink
0b90dbad9a Oops, global addressbook wasn't working 2003-07-07 22:10:40 +00:00
Thijs Kinkhorst
c2ced472b6 Make the default element called 0 again in preparation of my next commit 2003-07-07 18:55:48 +00:00
Thijs Kinkhorst
b37346788e The first entry has to be called 'default'. 2003-07-07 13:47:02 +00:00
pdontthink
0ebe105bea Added initial_value and post_script options for widgets 2003-07-06 02:13:21 +00:00
pdontthink
75da814751 Bring my last changes into synch with code conventions in this file 2003-07-05 23:51:05 +00:00
pdontthink
660e54344d script needs to be added inside the widgets 2003-07-05 21:16:51 +00:00
alex-brainstorm
df539395ae 2 more notices 2003-07-05 00:42:04 +00:00
alex-brainstorm
7f62730491 fix mailbox list (noselect and array_values) 2003-07-04 22:06:13 +00:00
stekkel
e8247e3395 Added argument to set-up_language to force default language 2003-07-03 20:20:26 +00:00
stekkel
c696c38d79 Typo:
I didn't mean that large people called chuck are slow
2003-07-03 18:10:56 +00:00
stekkel
b0521febb8 Finally nailed down the exchange problem. It was caused by a very stupid
mistake from me. I didn't ended the query with \r\n but ended it with \n. I
should have known better.
An interesting discovery was that setting the number of queries to process
at once influence performance. A higher number doesn't mean more performance.
In our tests 128 was slower then 32 (on Exchange 2000).
2003-07-03 16:18:51 +00:00
tassium
2b5ba2626f New function: sm_print_r()
This is intended to be a debugging function.  Ever wanted to do a print_r, but found that some of the values were "eaten" by your browser's parser because they had <> in them?  Use this function instead.  It runs htmlentities() on the output of print_r() AND as a bonus wraps the entire thing in <pre> and </pre> tags.
2003-07-03 14:14:48 +00:00
stekkel
dfe15394f6 Hopefully fixed pipelined responses, I did something stupid and didn't test
out of order reponses. Now it works.
In imap_mailbox te array with mailbox objects wasn't create correctly. It
contained double entries. That's fixed too.
2003-07-03 11:45:02 +00:00
stekkel
cf4ee7583d renamed sqimap_read_data_list => sqimap_retrieve_imap_response and created a
new function sqimap_read_data_list which will inform plugins that they
should call other functions.
2003-07-02 20:55:04 +00:00
stekkel
2aba346acf Modified pipelined request function by splitting up the the provided queries
in parts. Now we do a request for 32 queries and retrieve the response
before we continue with the next 32 queries.

The number 32 is experimental and should be tested on Exchange 2000 because
that was the imap-server which drops the connection with 100 calls at once.
Maybe we should lower it or raise it.
2003-07-02 20:24:11 +00:00
tassium
873ce22eca Another patch from Alex to eliminate a notice with E_ALL. 2003-07-02 20:09:54 +00:00
tassium
abdf24c859 Required for the new advanced search. (Beginning with src/search.php v. 1.94) 2003-07-01 16:50:21 +00:00
Thijs Kinkhorst
3e606b09e1 JS for sendmdn was not output when comp_in_new was disabled. 2003-06-30 19:36:16 +00:00
stekkel
0edf989acc To many problems with this regex call. using \\\\ instead of \\ seems to
work for everyone. If somebody can explain why \\ is not sufficient please
explain.
2003-06-29 19:40:08 +00:00