Commit graph

478 commits

Author SHA1 Message Date
tassium
1d276f809a Missing property problem that only shows up when sending messages with attachments. Fixed! 2003-05-21 15:46:46 +00:00
stekkel
f2d09d0644 added Conbtent-Transfer-Encoding to rfc822 header 2003-05-12 09:18:38 +00:00
stekkel
c337b7acf5 Fix for folding inside msg-id's 2003-05-10 12:15:19 +00:00
stekkel
018f966bc9 Fix from Thomas Castelle.
This will fix the out of order argument list situation in case of literal
arguments. Literal arguments weren't added to the argument array
2003-04-25 15:47:18 +00:00
stekkel
5387c61b4e Fix for addressbook entries containing multiple email addresses (group)
This should solve the send error after compose.
2003-04-08 16:48:33 +00:00
jangliss
70687690e3 Fix for infinite loop when trying to decode multi-part mime attachments
(Bug #710210)
2003-03-27 16:16:48 +00:00
Thijs Kinkhorst
1e93969fcf Revert to 1.15: we don't currently use this field but it's defined
separately by RFC 2919, so we should support it for future use.
2003-03-24 14:29:06 +00:00
Thijs Kinkhorst
d175c69777 This field does not exist in the RFC spec and is not used in the code: drop it. 2003-03-23 11:39:51 +00:00
Thijs Kinkhorst
48e80e3c73 Small bug in content-type properties, thanks Ryan (hairball57) for reporting. 2003-03-16 12:34:03 +00:00
stekkel
b01c4f87da address parsing with encoded personal names 2003-03-07 22:12:51 +00:00
stekkel
8f11d00b31 better folding of header lines. 2003-03-07 22:12:06 +00:00
Erin Schnabel
5c622f417c Fixes bug 695150 in the 1.4.x stream
Not sure yet if/how to push it back to 1.2.x
2003-02-28 22:12:25 +00:00
stekkel
d66fd1ad2f charset encode/decode changes related to email addresses 2003-02-28 19:14:52 +00:00
stekkel
1b9f9de967 better parsing of email addresses (also used for processing compose form
addresses)
2003-02-28 19:14:08 +00:00
Thijs Kinkhorst
b3fb2a8829 If SERVER_NAME not set, use $domain as the domain in message-id.
Convert the things to the sqGetGlobalVar function.
Remove someone's debug code.
2003-02-27 07:59:28 +00:00
stekkel
0371a055e9 endless loop fix
"sometext\"" could cause an endless loop.
2003-02-25 12:20:13 +00:00
stekkel
8c9281094a Added method to encode email addresses 2003-02-24 18:37:39 +00:00
stekkel
07390629b6 removed encodeHeader calls for the complete addresses, Only the personal
name part of an email address should be encoded
2003-02-24 18:36:02 +00:00
stekkel
24fd9833f7 add checks for Messge Disposition Notifications.
Now we also identify X-Confirm-reading-To and Return-Receipt-To.
2003-01-27 09:26:55 +00:00
stekkel
6bbeb2e5a1 Rewrite of the foldLine function in order to fold correctly in case of
encoded strings (RFC 2047). Encoded strings may not be split in the middle!
2003-01-23 14:07:13 +00:00
stekkel
b54b1c2ac0 * fix for e-mail addresses like: <mailbox@host> (personal name)
now the personal name is no longer interpreted as comment
  but is stored as the personal name inside the address object if
  there is no other personal name supplied.
  in case of:
  "personal name1" <mailbox@host> (personal name2)
  personal name 1 is used and personal name 2 is treated as comment.
* removed an eval call and replaced by something that doesn't need eval.
2003-01-16 12:48:03 +00:00
tassium
289f91b1c1 Modified Deliver_SMTP to use HTTP_HOST in SMTP HELO commands.
If HTTP_HOST is not set, fall back to original SquirrelMail behavior. (Use $domain)
Should close #560524 (SMTP DNS resolution)
2003-01-15 14:38:35 +00:00
Thijs Kinkhorst
c416f80eb4 Identify SquirrelMail with User-Agent, not X-Mailer. Some researching learns
that User-Agent is more accepted as the new standard.
2003-01-06 19:02:00 +00:00
Thijs Kinkhorst
04ae233f08 Rewrite of errorCheck function, to make it: correct, more detailed and
more efficient all at once :)
2003-01-06 16:08:57 +00:00
tassium
4f914fc1a4 Very ugly hack to add rudimentary error check to SMTP for invalid/unsupported auth types. I don't like it, not one bit. It will do until I can fix up a better solution tomorrow though, right now I'm very tired and it's time for bed.. 2003-01-04 06:32:57 +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
stekkel
f082b4c5b6 This will probably fix the incorrect parsing of literals inside
bodystructures. Somehow the offset of $i was incorrect when returning in the
parser. Note: due to the trial and error way (in some design fases) of programming when writing the
structure parser things has come a bit too complex. I have already developed
a new parser that will be used for 1.5. That parser will be a lot easier to
follow and less bug sensitive like the  one we use now.
2003-01-03 12:01:57 +00:00
Thijs Kinkhorst
75de52f258 Getting ready for 1.4.0 RC1 2002-12-31 12:49:43 +00:00
stekkel
350ea314f2 ugly bugfix for parsing literals inside envelope structures.
Note: All the parser function are rewritten in a clean way and will be
commited soon in SM 1.5 . The just applied fix was needed for a stable release.
2002-12-27 15:49:35 +00:00
stekkel
a3d5bd344e oops, Rfc822Header->mailbox was initialized 2002-12-27 14:38:10 +00:00
stekkel
6fe35696cf Added address lookup callback function argument for parseAddress.
In stable we verified addresses against the addressbook. In devel this
functionality was forgotten.
Note: Required php version 4.0.4 due to the use of call_user_func_array.
2002-12-27 12:24:12 +00:00
Thijs Kinkhorst
8e6e6234c9 E_ALL fix when using proxy's with HTTP_VIA and no HTTP_X_FORWARDED_FOR 2002-12-24 11:23:21 +00:00
robsiemb
5b24abe09c 3 minor bugs:
* If we don't get a $msg back in parseStructure, don't call $msg->setEntIds.
* NIL can be 'NIL ' or 'NIL)'
* Literal sizes DO NOT include the \r\n in their counts.
2002-12-19 19:27:20 +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
stekkel
701b117bfa Improved entity_id calculation.
This solves problems when the Content-Type of the rfc822 header =
ressage/rfc822
2002-11-15 18:53:50 +00:00
tassium
d698527ab3 Merging in the tassium-auth branch. 2002-11-06 18:55:13 +00:00
stekkel
ed167ce382 Speed improvements by using php internal functions and bugfix regarding
DKIMAP
2002-11-04 20:25:09 +00:00
stekkel
ba9f56de0d Buggy messages with empty mime-parts (size=0) causes incorrect parsing.
Adding case '0': solved the problem.
2002-10-28 09:34:06 +00:00
stekkel
be1810e956 wrong return type 2002-10-18 17:38:52 +00:00
stekkel
1f747ca365 initialize cc correct 2002-10-18 08:54:35 +00:00
stekkel
2d4c13c5b1 added function to search the to and cc headers and return the best match 2002-10-17 22:22:55 +00:00
centaurix
1090e5e21d * added vcard url, skeleton functions. slow but not to slow ;) more is to come ! 2002-10-14 21:21:24 +00:00
stekkel
ec8ddf2cb5 Fix for incorrect folding of header lines. This fix the error message
"Message contains bare new lines" when we are appending the message to the
Sent folder.
2002-10-14 15:40:01 +00:00
centaurix
f16978dbdf just the file to remind me to actually *code* what i post on mailing lists ;)
will add stuff time by time. feel free to help everybody. (plz email me before coding)
2002-10-10 01:34:51 +00:00
stekkel
2c54f7ea8b code clean up. No need to use isset because the vars are properly
initialized
2002-10-08 12:28:47 +00:00
stekkel
76c2a4a9d5 Finally fixes de escaping '.' with sendmail. Sendmail supports the option -i
and with that option set we don't have to escape.

Thnx to Cor Bosman the issue is solved.
2002-10-08 11:27:55 +00:00
stekkel
5864703aee Hopefully this fixes finally the '.' problem on single lines. 2002-10-08 10:11:19 +00:00
stekkel
6bf49832f6 fixed warning 2002-10-07 17:09:36 +00:00
stekkel
4218de2642 fix parsing group related address headers. 2002-09-27 17:24:56 +00:00
stekkel
01eea88f16 rg=0 fixes 2002-09-25 18:03:52 +00:00