Commit graph

289 commits

Author SHA1 Message Date
philippe_mingo
3849a687a3 Jon, please check this. 2003-03-29 13:20:11 +00:00
jangliss
1910cefb96 Weird locales seem to mess with uppercase i, and php seems to like to
convert function names according to locales... bad php, but not much we can
do.  Changed quoteIMAP to quoteimap to work around this for now.  It's only
used during login as far as I can find.
2003-03-10 18:01:45 +00:00
stekkel
df9067c865 improved encodeHeader function and decodeHeader handling to follow RFC's
better.
2003-03-07 22:11:22 +00:00
stekkel
a8c6763ace in case of non sorting display newest messages first 2003-03-01 01:22:30 +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
fad2721642 added RECENT response to result array of sqimap_get_status in order to
remove an expensive select call in the newmail plugin. Probably the
influences on speed when the newmail plugin is disabled are minimal.
2003-02-06 19:36:09 +00:00
jangliss
cf1ed1cacd Added a check in sqimap_login to verify $onetimepad is set. Not sure why
no check was ensured before.  Should make plugin developers a little happier
in some cases too.
2003-01-09 20:12:40 +00:00
Erin Schnabel
d0bc2d45e0 This makes more sense to me, and has been shown not to break anything, and while the other method should probably be fixed at some point, I think this is good for now. 2003-01-09 01:40:00 +00:00
tassium
32740804c9 Improved error handling, especially for everyone whose CVS install just broke because plain auth no longer exists. (Now renamed to login) 2003-01-04 06:21:06 +00:00
tassium
d1cc599af5 Ok, I screwed up. When I put in cram-md5 and digest-md5, I left the alternative as being "plain", which is a misnomer. There really IS a mechanism called "plain", and what we're doing isn't it. So I've renamed our "plain" to "login".
For IMAP, it uses the IMAP4rev1 "LOGIN <user> <pass>" syntax.
For SMTP, it uses the AUTH LOGIN (two-step) method.
2003-01-04 06:01:26 +00:00
Thijs Kinkhorst
75de52f258 Getting ready for 1.4.0 RC1 2002-12-31 12:49:43 +00:00
Thijs Kinkhorst
b57577e4fd Assorted fixes, courtesy Roberto De Luca && kink 2002-12-21 16:13:47 +00:00
tassium
1fc6f1eced With a little help from Marc (ok, a lot), CRAM-MD5 and DIGEST-MD5 no longer require the mhash extension. If present, mhash will be used. 2002-12-07 04:02:05 +00:00
Thijs Kinkhorst
513e603e08 XXS fixes, as in stable 2002-12-06 16:42:12 +00:00
tassium
d698527ab3 Merging in the tassium-auth branch. 2002-11-06 18:55:13 +00:00
Thijs Kinkhorst
2bbed74510 Move error checking up 2002-10-26 14:20:00 +00:00
Thijs Kinkhorst
2cd17048c6 Language fix 2002-10-26 11:11:28 +00:00
stekkel
2c28f46a6a nice error messages 2002-10-24 13:57:13 +00:00
stekkel
fced9cf08c error check on imap_stream. 2002-10-24 09:25:20 +00:00
Thijs Kinkhorst
2b3080ed24 If stream is FALSE also don't logout 2002-10-23 15:21:21 +00:00
Thijs Kinkhorst
5ccfbf3bec In sqimap_logout, check if we have a stream to logout to.
If we don't, logging out is not neccessary.
This prevents an endless loop of fgets when there's no connection anymore.
2002-10-23 15:12:13 +00:00
stekkel
2025b8406b typo 2002-10-17 19:46:29 +00:00
stekkel
4336cb7efc added status function for getting total/unseen information with one imap
call
2002-10-17 19:39:04 +00:00
stekkel
82e53c4441 sqsession_destroy 2002-10-06 19:28:38 +00:00
Thijs Kinkhorst
067363daea Update function directory to rg=0. 2002-09-21 15:59:32 +00:00
indiri69
56f1d28aec More SM_PATH changes 2002-09-10 22:35:30 +00:00
thomppj
9001d31cf8 Converted all files in functions/ to use SM_PATH. This will break all
plugins. Each callable script needs a:

  define('SM_PATH', '../../');

Or something like that put at the top.
2002-09-06 00:31:43 +00:00
stekkel
0835e1dddb Fixes from Jason to sqimap_read_data.
This also removes the ")" characters which doesn't belong to the requested
data but are part of the imap output.
2002-08-28 14:52:01 +00:00
stekkel
ad52b8232c quick hack to remove the preg_match for * [0-9]+ FETCH in case of
sqimap_run_command. Explanation: if we request for a single fetch (not a
list) we shouldn't look for extra fetch lines because this stops the
processing in case of body entities with * a001 fetch lines.
Later we can glue the 2 functions together if we add information to
sqimap_read_data_list about the nature of the call (list or not)
2002-08-26 09:27:43 +00:00
centaurix
3b80127aaf integrated patch 403567 (from januar 2001 !!)
it enables sysadmins to specify a function in $imap_server_address.
This function gets the users imapserver. There is an example function map_yp_alias that gets the server from yellowpages (NIS)
thanks to karenb@cc.gatech.edu.
2002-07-19 22:20:17 +00:00
jmunro
b7e8bbbbf9 rewrite of sqimap_read_data_list() see this for more info:
http://sourceforge.net/mailarchive/forum.php?thread_id=884872&forum_id=7139
2002-07-14 02:02:10 +00:00
stekkel
55488af3a1 UID support 2002-07-05 13:07:32 +00:00
philippe_mingo
f9cbd7d61d Some optimization on frequent loaded code.
Unification of logout error messages.
Strings update.
Spanish strings update.
2002-03-30 09:31:43 +00:00
indiri69
5efca09a45 Tons of formatting changes by Jon Tai.
Didn't merge changes to imap_search.php, as I wanted to take a
closer look at it.

Jon Tai said:
I cleaned up the four imap_*.php files - fixed comments so they use the
/* */ style, fixed spacings, added { } around logic blocks that didn't
have them, etc.

I also hacked sqimap_find_email() in imap_general.php to support strings
in the form of "lehresma@css.tayloru.edu (Luke Ehresman)".
2002-03-16 19:44:50 +00:00
indiri69
e9c6acd2f8 Fix IMAP PARSE reponse matching. This should get rid of retrival errors
with Missing parameters and those stupid <Undisclosed-Recipient:;> To:
lines that UW IMAP chokes on from Outlook Express.
Also changed some ereg to preg and removed some useless spacing.
2002-03-16 04:23:22 +00:00
indiri69
95949406b0 Fixed a problem with sqimap_unseen_messages where some versions of UW
Imap will send 2 lines of response on a STATUS mailbox (UNSEEN) when
the last EXAMINE was on the same mailbox.  This kept the INBOX from
displaying the number of unread messages.  This seems like valid behaviour
to me, but UW IMAP doesn't like it depending on how it's been compiled.
2002-03-08 21:07:49 +00:00
simond
17f36392d0 Clear out tabs for proper spaces 2002-03-02 20:31:04 +00:00
simond
52cf1b1aba Fix filename 2002-02-25 18:29:56 +00:00
teepe
044df18388 fix of David Rees 2002-02-19 23:15:59 +00:00
thomppj
6773db3272 This is Philippe Mingo
Added query string to imap error
2002-02-09 23:11:10 +00:00
philippe_mingo
06a1bfb758 The module was not honoring some mails in uw, the problem was uw answering
* OK [PARSE] Missing parameter
This commit pretends to fix this, but I confess I'm not happy with
the way I did it. I would be happy if someone improve it 8)
2002-02-09 15:06:29 +00:00
Thijs Kinkhorst
d338b160a0 Partially fixed #511204 2002-02-02 17:25:35 +00:00
Thijs Kinkhorst
95d386a18f Fixed display error in From-lines of the form: "Doe, John" <john@doe.org> 2002-01-28 23:10:35 +00:00
Thijs Kinkhorst
52716a0ed3 [ #500564 ] "" in From header causes empty From 2002-01-22 17:53:52 +00:00
teepe
5b2de098b6 comment typo 2002-01-19 15:41:50 +00:00
teepe
2b05fd40db last(?) icy fix 2002-01-19 15:38:20 +00:00
Bron Gondwana
7aff136d92 Remove leading spaces from IMAP commands, which was breaking Cyrus. This
is brittle behaviour from Cyrus, but covered by the spec, which does indeed
require once single 0x20 only.  My bad, or something.
2002-01-15 10:55:30 +00:00
Bron Gondwana
3b0a9e3935 Switch over to support for real IMAP sequence numbers (from A001 ->). Needed
to fix my own function to only call sqimap_session_id() once!

Note: the old API is still there in its entirity, this is just another way to
call things.  With the changing sequence numbers though, any function working
with sqimap_session_id() must cache the result for testing against the
response of any command sent.
2002-01-12 11:37:40 +00:00
Bron Gondwana
f8d8561f8d This is a big one - fixes to sqimap_run_command in most uses. Had to add
sqimap_run_command_list as well for those list instances.

I believe that it's now safe for sqimap_session_id() to return a different
ID each time, but haven't yet tested this.
2002-01-12 11:15:12 +00:00
Bron Gondwana
fe30258212 Add function sqimap_run_command which combines sending and receiving a
message, ready for changes to other code which uses it.
2002-01-12 09:57:20 +00:00