squirrelmail.git
20 years agoApplied bugfixes to htmlfilter code from stable.
graf25 [Sun, 29 Jun 2003 17:50:30 +0000 (17:50 +0000)]
Applied bugfixes to htmlfilter code from stable.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5166 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agofixed warning. isset doesn't work with string offsets > strlen
stekkel [Sun, 29 Jun 2003 11:39:48 +0000 (11:39 +0000)]
fixed warning. isset doesn't work with string offsets > strlen

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5162 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoand back in sync again
stekkel [Sun, 29 Jun 2003 11:06:24 +0000 (11:06 +0000)]
and back in sync again

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5161 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoremoval of status call requests.
stekkel [Sun, 29 Jun 2003 10:56:05 +0000 (10:56 +0000)]
removal of status call requests.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5160 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agorequest LIST calls / mailbox and STATUS info by using pipelined imap-calls.
stekkel [Sun, 29 Jun 2003 10:54:48 +0000 (10:54 +0000)]
request LIST calls / mailbox and STATUS info by using pipelined imap-calls.
This means we do the imap-call and don't wait for the response and continue
with the next mailbox.
Because we remember the issued tags we are able to retrieve the
imap-responses and assign the response to the correct mailbox.

The advantage of this method is that we don't have to wait on each response.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5159 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoreturn the result in case of pipelined responses
stekkel [Sun, 29 Jun 2003 10:51:31 +0000 (10:51 +0000)]
return the result in case of pipelined responses

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5158 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoTalking about stupid... backing out your own changes is stupid.
stekkel [Sun, 29 Jun 2003 10:12:40 +0000 (10:12 +0000)]
Talking about stupid... backing out your own changes is stupid.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5152 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoFix for draftmessages with message/rfc822 attachments.
stekkel [Sun, 29 Jun 2003 09:56:41 +0000 (09:56 +0000)]
Fix for draftmessages with message/rfc822 attachments.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5151 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoSome more group handling fixes.
indiri69 [Sun, 29 Jun 2003 03:33:09 +0000 (03:33 +0000)]
Some more group handling fixes.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5150 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoMake skiplist check casesensitive
stekkel [Sat, 28 Jun 2003 23:40:36 +0000 (23:40 +0000)]
Make skiplist check casesensitive

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5149 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years ago* INBOX should be skipped in case of rename,delete, subscribe, unsubscribe
stekkel [Sat, 28 Jun 2003 23:39:25 +0000 (23:39 +0000)]
* INBOX should be skipped in case of rename,delete, subscribe, unsubscribe
* Removed strtolower calls because mailboxes are casesensitive
* replaced if elseif elseif .. by a switch statement

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5148 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agomake use of sqimap_run_command instead of forbidden local fputs
stekkel [Sat, 28 Jun 2003 21:45:29 +0000 (21:45 +0000)]
make use of sqimap_run_command instead of forbidden local fputs

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5147 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agofixed warning
stekkel [Sat, 28 Jun 2003 21:44:28 +0000 (21:44 +0000)]
fixed warning

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5146 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoextra check for filename/name to achieve we do not show text/plain
stekkel [Sat, 28 Jun 2003 21:05:32 +0000 (21:05 +0000)]
extra check for filename/name to achieve we do not show text/plain
attachments inline in case of a missing Disposition mime-header

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5144 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoAdded rfc2184 support in order to handle:
stekkel [Sat, 28 Jun 2003 20:17:17 +0000 (20:17 +0000)]
Added rfc2184 support in order to handle:
Multilined parameters
Parameters with charset and language information.

Only problem:
I don't have a single message with rfc2184 headers so I couldn't test it.
Probably it works okay because the RFC wasn't that complicated.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5143 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agohandle escaped quotes again
stekkel [Sat, 28 Jun 2003 15:34:00 +0000 (15:34 +0000)]
handle escaped quotes again

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5140 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoFix bug while modifying addresses, if you get an error, you can't resubmit the form...
cigamit [Sat, 28 Jun 2003 15:01:54 +0000 (15:01 +0000)]
Fix bug while modifying addresses, if you get an error, you can't resubmit the form at all.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5139 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoRemoval of function call to sqimap_read_data_list.
stekkel [Sat, 28 Jun 2003 13:55:49 +0000 (13:55 +0000)]
Removal of function call to sqimap_read_data_list.
From now on plugins may never call that function. It's an internal function
used by sqimap_run_command or sqimap_run_command_list.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5138 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoDownloading attachments is fixed. Now we do not buffer the entire attachment
stekkel [Sat, 28 Jun 2003 13:36:41 +0000 (13:36 +0000)]
Downloading attachments is fixed. Now we do not buffer the entire attachment
before echo it to stdout. with fread we detect how long the base64 encoded
liones are so we can do base64 decoding on the fly.
The advantage of using fread instead of fgets is that the buffersize can be
used so we reduce the number of echo calls (fread doesn't stop at \n).

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5137 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agodo not start encoding in the middle of a string
stekkel [Sat, 28 Jun 2003 13:29:19 +0000 (13:29 +0000)]
do not start encoding in the middle of a string

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5136 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoAdded patch from seth randall to fix address group behaviour.
stekkel [Sat, 28 Jun 2003 12:35:06 +0000 (12:35 +0000)]
Added patch from seth randall to fix address group behaviour.
Fixed addressparsing in case of comments in the middle of email addresses.
example:  valid(this is a comment)@email.com

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5134 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoNeeded a little more info from subject link hook
pdontthink [Sat, 28 Jun 2003 08:18:25 +0000 (08:18 +0000)]
Needed a little more info from subject link hook

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5128 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoAdded section about rg=off requirement
pdontthink [Sat, 28 Jun 2003 07:54:26 +0000 (07:54 +0000)]
Added section about rg=off requirement

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5127 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoLittle bit of a tidy up. Code should be more efficient this way, and less
jangliss [Fri, 27 Jun 2003 07:56:20 +0000 (07:56 +0000)]
Little bit of a tidy up.  Code should be more efficient this way, and less
off it to make my eyes bleed.  Also removed the risk of ever getting an
infinite loop on weird occasions.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5126 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoLooks like somebody commented out the reference headers, which will break
jangliss [Fri, 27 Jun 2003 03:07:23 +0000 (03:07 +0000)]
Looks like somebody commented out the reference headers, which will break
references on resuming of a draft.  This should fix bug #722933.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5125 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoFixes bug #548189. The code was checking for the nickname being set in the
jangliss [Thu, 26 Jun 2003 03:42:22 +0000 (03:42 +0000)]
Fixes bug #548189.  The code was checking for the nickname being set in the
post, but the code didn't mind if nickname wasn't set later.  This caused
the whole add code to be skipped if you missed the nickname.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5122 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoupdated hook list
pdontthink [Wed, 25 Jun 2003 23:21:30 +0000 (23:21 +0000)]
updated hook list

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5121 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoThe performance related extra if call caused a bug when trying to decode
stekkel [Wed, 25 Jun 2003 20:22:20 +0000 (20:22 +0000)]
The performance related extra if call caused a bug when trying to decode
strings like:

Blah=?iso8869-1?Q?blah?=

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5120 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoUpdated translation
tokul [Wed, 25 Jun 2003 10:28:40 +0000 (10:28 +0000)]
Updated translation

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5116 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoOnly iso_8859_default and ns_4551_1 decoding is left in i18n.php. Others
tokul [Wed, 25 Jun 2003 07:10:23 +0000 (07:10 +0000)]
Only iso_8859_default and ns_4551_1 decoding is left in i18n.php. Others
are in functions/decode directory. In order to enable big5 or gb2312
decoding, user needs to set $agresive_decoding = true in functions/i18n.php

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5114 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoFixed dates in copyright. added koi8-r and koi8-u decoding. fixed ereg in
tokul [Wed, 25 Jun 2003 07:06:15 +0000 (07:06 +0000)]
Fixed dates in copyright. added koi8-r and koi8-u decoding. fixed ereg in
utf-8 decoding.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5113 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoNo one objected, so here's a new hook
pdontthink [Tue, 24 Jun 2003 23:20:12 +0000 (23:20 +0000)]
No one objected, so here's a new hook

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5112 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoSeparate gb2312 and utf-8 decoding
tokul [Tue, 24 Jun 2003 07:27:37 +0000 (07:27 +0000)]
Separate gb2312 and utf-8 decoding

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5108 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoFixed some mistakes.
tokul [Tue, 24 Jun 2003 07:26:09 +0000 (07:26 +0000)]
Fixed some mistakes.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5107 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoToo many spaces, makes the folder spacing look... odd... and too spaced out
jangliss [Mon, 23 Jun 2003 21:25:21 +0000 (21:25 +0000)]
Too many spaces, makes the folder spacing look... odd... and too spaced out

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5106 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoMore decoding functions
tokul [Sun, 22 Jun 2003 14:05:12 +0000 (14:05 +0000)]
More decoding functions

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5105 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoAdded iso-8859-3, iso-8859-10, iso-8859-11, iso-8859-14, iso-8859-16
tokul [Sun, 22 Jun 2003 09:36:56 +0000 (09:36 +0000)]
Added iso-8859-3, iso-8859-10, iso-8859-11, iso-8859-14, iso-8859-16
support. Switched iso-8859-4, iso-8859-5, iso-8859-13 and cp1257 to new way of
decoding. Older decoding functions still remain in i18n.php. Newer decoding
functions use different names. No undercore between iso and 8859 for iso-8859-x
decoding and cp12xx instead of windows_12xx for windows-12xx decoding.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5104 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoAdded separate iso-8859-*, cp1257 and big5 decoding files
tokul [Sun, 22 Jun 2003 09:19:16 +0000 (09:19 +0000)]
Added separate iso-8859-*, cp1257 and big5 decoding files

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5103 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoUW sends \NoSelect in LIST and not in LSUB, which is perfectly fine by
jangliss [Sat, 21 Jun 2003 18:16:28 +0000 (18:16 +0000)]
UW sends \NoSelect in LIST and not in LSUB, which is perfectly fine by
RFCs, but we didn't do that.  For UW IMAP, force a LIST command on each
mailbox, this should also fix the \NoSelect on INBOX if it occurs.

Also updated the check for \NoSelect to include the LIST option as well as
LSUB.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5102 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoMinor change
pdontthink [Sat, 21 Jun 2003 01:18:22 +0000 (01:18 +0000)]
Minor change

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5101 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoTypos and stuff found by Chris Hilts
pdontthink [Sat, 21 Jun 2003 00:26:24 +0000 (00:26 +0000)]
Typos and stuff found by Chris Hilts

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5100 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoUtility functions to deal with identities. Only one so far: get_identities(), which...
tassium [Thu, 19 Jun 2003 17:45:43 +0000 (17:45 +0000)]
Utility functions to deal with identities. Only one so far: get_identities(), which returns a keyed array of all the identities & their different attributes.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5097 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoNow we can handle nested parenthesis :)
stekkel [Thu, 19 Jun 2003 16:47:36 +0000 (16:47 +0000)]
Now we can handle nested parenthesis :)

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5095 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoServer defaults now include force_username_lowercase as appropriate.
tassium [Thu, 19 Jun 2003 15:43:10 +0000 (15:43 +0000)]
Server defaults now include force_username_lowercase as appropriate.
(Cyrus & Courier = false, Exchange & UW = true)
The only one we don't have is macosx, but that's because I don't have one of those to test with.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5094 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoDo utf7 decode after we created the tree, otherwise we cannot match
stekkel [Thu, 19 Jun 2003 12:58:43 +0000 (12:58 +0000)]
Do utf7 decode after we created the tree, otherwise we cannot match
unsubscribed parent_boxes. Besides it's more efficient

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5093 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoFix for bug #749568
stekkel [Thu, 19 Jun 2003 08:08:36 +0000 (08:08 +0000)]
Fix for bug #749568
Removal of non breaking spaces because they do not wrap.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5092 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoNow that I have seemed to have fixed the INBOX issue with courier/uw,
jangliss [Thu, 19 Jun 2003 05:40:56 +0000 (05:40 +0000)]
Now that I have seemed to have fixed the INBOX issue with courier/uw,
enabling this code actually does good in uw (it hides the mail/ non-select
folder), and makes the folders all line up.  In courier, folders no longer
appear (though they still are) subs of inbox... should we change this?

Retested code with exchange, cyrus, uw, and courier, all seem good now.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5091 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agofix for bug #756667
stekkel [Wed, 18 Jun 2003 23:55:32 +0000 (23:55 +0000)]
fix for bug #756667

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5090 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoAhhhh we don't use charset
stekkel [Wed, 18 Jun 2003 22:22:19 +0000 (22:22 +0000)]
Ahhhh we don't use charset

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5089 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoIn case of messages without a plain/text part (i.e. 1 part which is
stekkel [Wed, 18 Jun 2003 22:14:12 +0000 (22:14 +0000)]
In case of messages without a plain/text part (i.e. 1 part which is
application/octet-stream then the the contenttype wasn't set?

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5087 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoAhhh, this doesn't work when the buffer is smaller then the size of the
stekkel [Wed, 18 Jun 2003 22:11:09 +0000 (22:11 +0000)]
Ahhh, this doesn't work when the buffer is smaller then the size of the
attachment. Can somebody fix this?

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5085 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoForgot that $lsub_ibx[0] would be unset if LSUB didn't return INBOX, so
jangliss [Wed, 18 Jun 2003 21:58:03 +0000 (21:58 +0000)]
Forgot that $lsub_ibx[0] would be unset if LSUB didn't return INBOX, so
it'd never run the LIST code.  This meant in the case where they weren't
subbed to their INBOX, it'd never appear.

Thanks shaug for helping spot that.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5084 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoimap_utf7 decoding of mailboxes (mailbox-tree)
stekkel [Wed, 18 Jun 2003 20:13:23 +0000 (20:13 +0000)]
imap_utf7 decoding of mailboxes (mailbox-tree)

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5083 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agofixed formatting in case of oldway = false
stekkel [Wed, 18 Jun 2003 19:45:55 +0000 (19:45 +0000)]
fixed formatting in case of oldway = false

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5082 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoDO NOT buffer base64 encoded attachments before we decode them. Instead
stekkel [Wed, 18 Jun 2003 18:39:12 +0000 (18:39 +0000)]
DO NOT buffer base64 encoded attachments before we decode them. Instead
decode them directly after we retrieved the data from the imapserver and
echo te result. This will safe a lot of memmory usage :)

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5078 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agobig changes :)
stekkel [Wed, 18 Jun 2003 16:24:19 +0000 (16:24 +0000)]
big changes :)

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5077 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agononbreaking spaces are frustrating the address parser because they do not
stekkel [Wed, 18 Jun 2003 16:23:48 +0000 (16:23 +0000)]
nonbreaking spaces are frustrating the address parser because they do not
match with <space> => replace them before we parse those addresses.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5076 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoidentities_table and identities_buttons hooks were broken
pdontthink [Wed, 18 Jun 2003 08:04:51 +0000 (08:04 +0000)]
identities_table and identities_buttons hooks were broken

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5075 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agocheck for empty string before we add it to the token array
stekkel [Tue, 17 Jun 2003 21:22:57 +0000 (21:22 +0000)]
check for empty string before we add it to the token array

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5074 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agobecause we remove the quotes an empty string could be left => check if the
stekkel [Tue, 17 Jun 2003 21:21:57 +0000 (21:21 +0000)]
because we remove the quotes an empty string could be left => check if the
string is empty before we add it to the token array

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5073 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoRewrote address parsing and now it works a lot better.
stekkel [Tue, 17 Jun 2003 20:23:00 +0000 (20:23 +0000)]
Rewrote address parsing and now it works a lot better.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5072 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agofixes parseAddress. I think this thing is working brilliant :)
stekkel [Tue, 17 Jun 2003 17:17:17 +0000 (17:17 +0000)]
fixes parseAddress. I think this thing is working brilliant :)

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5071 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoRewritten addressparser
stekkel [Tue, 17 Jun 2003 00:27:58 +0000 (00:27 +0000)]
Rewritten addressparser
Should solve infinite loops and hopefully it's also quicker.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5069 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoCheck only POST and GET for optmode
pdontthink [Mon, 16 Jun 2003 17:07:05 +0000 (17:07 +0000)]
Check only POST and GET for optmode

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5068 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoAdd check for just FORM data (POST/GET)
ebullient [Mon, 16 Jun 2003 15:00:10 +0000 (15:00 +0000)]
Add check for just FORM data (POST/GET)

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5065 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoAllow optmode to be submitted in GET form.
pdontthink [Mon, 16 Jun 2003 09:28:14 +0000 (09:28 +0000)]
Allow optmode to be submitted in GET form.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5063 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoEugh, this code is getting messy, can somebody verify this regex for me,
jangliss [Mon, 16 Jun 2003 03:59:45 +0000 (03:59 +0000)]
Eugh, this code is getting messy, can somebody verify this regex for me,
I'm trying to get it to match on "INBOX" or INBOX but nothing afterwards,
but some IMAP servers are returning an extra char or two on the end, so
a direct match is messing up, so I've tried something a little different
and told it to do a full match, but fail it if the next char after INBOX is
a delimiter (do we have a full list of possibilities?).

Tested on uw, courier, exchange, and cyrus, and the list builds nicely now.
uw still has some odd behaviours when you have a default folder prefix, but
the others seem a lot better... got to do some minor tweaks, and I think this
can go for full testing.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5062 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoDo not turn references and in-reply-to headers into links.
kink [Sun, 15 Jun 2003 12:30:23 +0000 (12:30 +0000)]
Do not turn references and in-reply-to headers into links.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5053 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoInformation about added new decoding charsets.
tokul [Sun, 15 Jun 2003 11:44:05 +0000 (11:44 +0000)]
Information about added new decoding charsets.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5052 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoAdded experimental iso-8859-6 decoding support.
tokul [Sun, 15 Jun 2003 11:39:17 +0000 (11:39 +0000)]
Added experimental iso-8859-6 decoding support.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5051 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoAdded experimental windows-1255 and windows-1256 decoding support.
tokul [Sun, 15 Jun 2003 11:35:52 +0000 (11:35 +0000)]
Added experimental windows-1255 and windows-1256 decoding support.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5050 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoAdded koi8-u decoding support. Changed windows-1251 and iso-8859-5 decoding
tokul [Sun, 15 Jun 2003 11:05:11 +0000 (11:05 +0000)]
Added koi8-u decoding support. Changed windows-1251 and iso-8859-5 decoding
order. Now decoding does not use php decode_cyr_string function. See SM patch 622280.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5048 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoBack again... should have looked at my exchange window first... *grumbles*
jangliss [Sun, 15 Jun 2003 06:57:24 +0000 (06:57 +0000)]
Back again... should have looked at my exchange window first... *grumbles*
UW is a royal pain :P

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5047 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoUW can return a slightly different format for the LSUB when you step outside
jangliss [Sun, 15 Jun 2003 06:52:48 +0000 (06:52 +0000)]
UW can return a slightly different format for the LSUB when you step outside
the default_folder_prefix area, also they return NIL for the delimiter which
means the previous regex would always fail as it is looking for a 1 char
delimiter between ""

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5046 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoNeed this check, otherwise some weird stuff occurs with exchange, and only
jangliss [Sun, 15 Jun 2003 05:11:12 +0000 (05:11 +0000)]
Need this check, otherwise some weird stuff occurs with exchange, and only
the last root folder is displayed (in my case it was "Tasks").

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5045 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoCouple of tweaks... must include inbox otherwise it becomes an unselectable
jangliss [Sun, 15 Jun 2003 05:10:05 +0000 (05:10 +0000)]
Couple of tweaks... must include inbox otherwise it becomes an unselectable
link, which isn't good.  Some weird stuff happens when using the default
folder prefix check, so removed... fixes courier and uw for having INBOXes,
now just have to make uw's inbox really work now.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5044 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoMoved the INBOX check higher to save code duplication... something else in
jangliss [Sun, 15 Jun 2003 03:21:45 +0000 (03:21 +0000)]
Moved the INBOX check higher to save code duplication... something else in
here too... but cannot remember...

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5043 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoCorrected display (on Courier at least) of mailboxes with INBOX
ebullient [Sun, 15 Jun 2003 00:40:58 +0000 (00:40 +0000)]
Corrected display (on Courier at least) of mailboxes with INBOX
prefix. INBOX was being added to the tree twice (was already the
root), and then because it was root, the link (with proper nesting)
wasn't being displayed.

Also corrected setting 'noselect' for INBOX (now tree root) -
was being errantly set as 'flag' which was causing errors about
not havign noselect set...

Also removed the places where it was checking whether or not
noselect was set for a mailbox - given the structure, noselect should
always be set - and we should get an error if it isn't (for boxlist
formed from LSUB).

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5042 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoHi Tomas 8-)
philippe_mingo [Sat, 14 Jun 2003 08:15:09 +0000 (08:15 +0000)]
Hi Tomas 8-)

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5041 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoFaroese
philippe_mingo [Sat, 14 Jun 2003 07:39:55 +0000 (07:39 +0000)]
Faroese

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5040 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoFaroese by Danial Olsen
philippe_mingo [Sat, 14 Jun 2003 07:36:01 +0000 (07:36 +0000)]
Faroese by Danial Olsen

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5039 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoin case of BYE response display errormessage
stekkel [Fri, 13 Jun 2003 15:30:28 +0000 (15:30 +0000)]
in case of BYE response display errormessage

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5038 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoE_ALL notice removal
kink [Fri, 13 Jun 2003 10:42:59 +0000 (10:42 +0000)]
E_ALL notice removal

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5037 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoMore updates to the folder list. Allowed for user options for the display
jangliss [Fri, 13 Jun 2003 07:44:53 +0000 (07:44 +0000)]
More updates to the folder list.  Allowed for user options for the display
of unread messages to work as per text in options, where as before it was
always displaying the data.

Need to find out why my courier is returning no INBOX when folder_prefix is
set to INBOX. as it is totally messing up my tree.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5036 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agominor changes
pdontthink [Fri, 13 Jun 2003 05:28:50 +0000 (05:28 +0000)]
minor changes

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5032 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agotypo
pdontthink [Fri, 13 Jun 2003 05:25:11 +0000 (05:25 +0000)]
typo

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5031 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agominor rewording for plugin stuff
pdontthink [Fri, 13 Jun 2003 05:24:11 +0000 (05:24 +0000)]
minor rewording for plugin stuff

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5030 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoChanged the default behaviour to use Marc's experimental cpde... note this
jangliss [Fri, 13 Jun 2003 05:02:11 +0000 (05:02 +0000)]
Changed the default behaviour to use Marc's experimental cpde... note this
is devel, and would be great to get some field testing (courier/uw would be
great)... it seems to fix the folder display issues with Exchange IMAP where
folders where appearing in the wrong order.

Fixed an E_ALL error, and pulled the $imapConnection into the function,
Marc are you running with E_ALL?  The code caused an immediate error as it
couldn't connect to the IMAP server, causing a nice folder order to appear:
  (http://nuts.netdork.net/bad_folders.jpg)

Also fixed a couple of cases of "Editor Envy" and replaced \t with "    "
(hence the massive diff).

Also fixed the code so that the "Trash" is now selectable, and moved the
 (purge)
link back to after the mailbox name.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5029 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoAnother failsafe check which I missed. Thnx Erin.
stekkel [Thu, 12 Jun 2003 14:17:10 +0000 (14:17 +0000)]
Another failsafe check which I missed. Thnx Erin.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5009 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agobetter error processing, immediate break out of the while loop in case of an
stekkel [Thu, 12 Jun 2003 09:42:10 +0000 (09:42 +0000)]
better error processing, immediate break out of the while loop in case of an
error.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5008 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoMissing </option> tag after default identity
pdontthink [Thu, 12 Jun 2003 05:36:38 +0000 (05:36 +0000)]
Missing </option> tag after default identity

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5007 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoalign cases so they're easier to find..
ebullient [Wed, 11 Jun 2003 20:41:39 +0000 (20:41 +0000)]
align cases so they're easier to find..
{} and comments for the bigger blocks

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5005 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agofixed formatting, sjeesh that's realy dull work. Makes me simple :(
stekkel [Wed, 11 Jun 2003 19:53:22 +0000 (19:53 +0000)]
fixed formatting, sjeesh that's realy dull work. Makes me simple :(
The only exiting part was working with VIM for the first time. And I still
thing it's not the most user friendly editor unless you know all keycodes
which I don't know.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5004 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agobring up fix for default_pref file name (double-slash)
ebullient [Wed, 11 Jun 2003 18:33:25 +0000 (18:33 +0000)]
bring up fix for default_pref file name (double-slash)

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5003 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoupdate error_box, use more echos rather than big concat,
ebullient [Wed, 11 Jun 2003 18:30:37 +0000 (18:30 +0000)]
update error_box, use more echos rather than big concat,
ensure header check in both stable and devel

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5001 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agobring up changes from stable
ebullient [Wed, 11 Jun 2003 18:04:35 +0000 (18:04 +0000)]
bring up changes from stable

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5000 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoextra safetycheck before we process group addresses
stekkel [Wed, 11 Jun 2003 17:54:12 +0000 (17:54 +0000)]
extra safetycheck before we process group addresses

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4998 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoextra safety check before we process groups
stekkel [Wed, 11 Jun 2003 17:53:17 +0000 (17:53 +0000)]
extra safety check before we process groups

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4997 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years ago* fix for messageheader caching. We didn't cache somebody broke it :(
stekkel [Wed, 11 Jun 2003 17:26:52 +0000 (17:26 +0000)]
* fix for messageheader caching. We didn't cache somebody broke it :(
* fix for very large msgs_str genered by sqimap_msg_squisher. We don't need
that if we want to fetch the whole list (1:*)
Now the imapserver doesn't return BYE because of the size of the imap
request

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4996 7612ce4b-ef26-0410-bec9-ea0150e637f0

20 years agoRewrite of sqimap_read_data_list. This will raise performance and it's more
stekkel [Wed, 11 Jun 2003 17:16:29 +0000 (17:16 +0000)]
Rewrite of sqimap_read_data_list. This will raise performance and it's more
accurate.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4995 7612ce4b-ef26-0410-bec9-ea0150e637f0