Commit graph

454 commits

Author SHA1 Message Date
stekkel
b39f674f1d fix boundary_end in case of recursion
Thnx Aaron van Meerten for spotting this.
2003-10-24 19:15:51 +00:00
stekkel
46f8bf20ee Fixed generations of secondairy boundaries in case of multidimensional
structures.
All thnx goes to Aaron van Meerten for identifying the bug and all the
testwork.

Modified rfc822 headers to avoid getting hit by spamassassin rules.
2003-10-21 17:41:56 +00:00
tassium
a80567bc15 Remove extra HELO sent when using $smtp_auth_mech == 'none' 2003-09-26 16:54:46 +00:00
stekkel
806cb181e1 better fix for bug #812690 2003-09-25 23:43:25 +00:00
stekkel
3891538bb1 fix for security exploit described in bug #812690 reported by Neal Krawetz
(hackerfactor)
2003-09-25 23:33:32 +00:00
tassium
160ebd3c07 By request, SASL PLAIN for IMAP and SMTP.
I did not add detection to conf.pl, perhaps later..
2003-09-23 18:06:12 +00:00
indiri69
608dc28376 Make sure a token isn't blank before adding it 2003-08-22 16:58:54 +00:00
stekkel
91ea5d36ca Workaround for mozilla bug #200412. 2003-08-15 16:57:15 +00:00
Thijs Kinkhorst
a4bca53bb3 Add support for Mail-Followup-To to devel. In short, Reply To All will
set To to the value of this header if set.
http://cr.yp.to/proto/replyto.html
http://www.ietf.org/proceedings/98dec/I-D/draft-ietf-drums-mail-followup-to-00.txt
I'm not a real DJB-enthousiast, but reportedly quite some software uses
this header; no harm in supporting it if it's present.
2003-07-25 21:02:32 +00:00
stekkel
1fcc8f38c5 This will add the default domain again if the email address does not contain
it.
2003-07-10 16:04:26 +00:00
stekkel
fb866a2012 <SPACE> isn't allowed after MAIL FROM: and RCPT TO: (RFC2821)
Thnx Thomas Skyt for spotting this.
2003-07-07 18:35:41 +00:00
stekkel
b8315ed3cf fixed warning. 2003-06-30 08:17:48 +00:00
stekkel
c023caa1d5 fixed warning. isset doesn't work with string offsets > strlen 2003-06-29 11:39:48 +00:00
indiri69
07e70f8603 Some more group handling fixes. 2003-06-29 03:33:09 +00:00
stekkel
82c1c23345 extra check for filename/name to achieve we do not show text/plain
attachments inline in case of a missing Disposition mime-header
2003-06-28 21:05:32 +00:00
stekkel
e164d8975c 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.
2003-06-28 20:17:17 +00:00
stekkel
3b5c7da3b8 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
2003-06-28 12:35:06 +00:00
stekkel
0a3f63b983 Now we can handle nested parenthesis :) 2003-06-19 16:47:36 +00:00
stekkel
67eafdcf9e check for empty string before we add it to the token array 2003-06-17 21:22:57 +00:00
stekkel
2a0e35494d Rewrote address parsing and now it works a lot better. 2003-06-17 20:23:00 +00:00
Erin Schnabel
38f0a08e19 bring up changes from stable 2003-06-11 18:04:35 +00:00
stekkel
33d86250f9 extra safety check before we process groups 2003-06-11 17:53:17 +00:00
stekkel
722b5b9f4d Address parsing fixes. This whole addressparsing is driving me nuts and the
implementation sucks!!!
This definately needs a rewrite.
2003-06-03 20:30:53 +00:00
stekkel
5d7eea6d3d better address parsing. This should fix wrong parsing of addresses with
comments
2003-05-28 22:09:49 +00:00
stekkel
b24cf2b7e2 Here we go again, another try to fix folding of headerlines with encoded
addresses
2003-05-28 22:08:07 +00:00
stekkel
e116ece45c Code clean up, make indentations correct and removal of tabs 2003-05-21 16:46:25 +00:00
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