Commit graph

478 commits

Author SHA1 Message Date
pdontthink
d95e0da38c Allow SSL socket context to be specified as well 2014-01-21 03:47:03 +00:00
pdontthink
cedca778de Add advanced control over the SSL context used when connecting to the SMTP and IMAP servers over SSL/TLS (Thanks to Emmanuel Dreyfus) 2014-01-21 01:13:49 +00:00
pdontthink
581dc23061 Happy 2014 2014-01-01 20:33:20 +00:00
Fredrik Jervfors
c076a1f1ae Update copyright 2013-07-26 17:31:02 +00:00
pdontthink
782b8ee337 Fix sloppy use of nearly identical variable names 2013-06-17 18:34:16 +00:00
pdontthink
4df49402b3 Document the findAddress function 2013-06-17 18:32:33 +00:00
Thijs Kinkhorst
efd75f4867 Replace calls to htmlspecialchars() with sm_encode_html_special_chars().
New function sm_encode_html_special_chars() encodes HTML special
characters by calling htmlspecialchars(). It sets the character set
to ISO-8859-1, to fix compatibility with PHP >= 5.4.

Patch by Paul Lesniewski.

See #3491925
2012-12-09 12:06:30 +00:00
pdontthink
cc299d4d41 Revert revision 14314; static functions are a PHP 5+ feature 2012-04-08 01:51:00 +00:00
Thijs Kinkhorst
535547780f functions are only used statically. mark as such. 2012-04-07 15:17:48 +00:00
pdontthink
152869c29f Fix E_STRICT notices 2012-04-01 22:18:51 +00:00
pdontthink
f63b89047c Fix E_STRICT notice 2012-04-01 21:27:53 +00:00
pdontthink
b2cc0dac1c Revert changes in revision 14302. Revision 14302 should only have changed functions/imap_general.php 2012-04-01 20:09:11 +00:00
pdontthink
33ebad3f5c Fall back to using LIST if NAMESPACE answer is malformed or otherwise problematic. This still doesn't account for situations where the NAMESPACE or LIST answer can't be parsed correctly. 2012-04-01 19:50:49 +00:00
pdontthink
aa556c9fab Re: rev 14289 - Proper fix is not to define a new object; code was assuming header that was already defined was placed in the message object (which it was not). Also fix indention issues 2012-04-01 17:57:20 +00:00
Thijs Kinkhorst
43c72ec195 must initialise MessageHeader object to avoid
PHP Warning:  Creating default object from empty value
2012-03-24 10:27:57 +00:00
pdontthink
acc409fb2a Updating copyrights. Happy New Year. 2012-01-02 02:09:17 +00:00
pdontthink
d7ee5f0bba Fix hook name clash: new smtp_auth hook added recently (a few months ago) has been renamed to smtp_authenticate 2011-09-05 07:00:18 +00:00
pdontthink
eee0c34977 Add smtp_auth hook (thanks to Emmanuel Dreyfus) 2011-04-02 19:19:45 +00:00
pdontthink
fc57bf2b59 Happy New Year! 2011-01-06 03:16:21 +00:00
pdontthink
c4785809ee Force the addition of a file suffix to attachments that lack a filename (helps forwarded messages avoid spam filters) (Thanks to Petr Kletecka) (#3139004) 2010-12-17 21:41:39 +00:00
pdontthink
e560eba6a3 Now properly quote personal part of encoded addresses when replying 2010-06-21 07:58:11 +00:00
Thijs Kinkhorst
fee4b7be06 r13926 from stable:
code in findDisplayEntity expects object, not array. Make findAltenativeEntity
return an object or null consistently.
2010-03-08 09:37:07 +00:00
pdontthink
83236fcc19 Encoded From headers now properly quoted (#2830141). A better fix might be to re-write encodeHeader() 2010-01-30 17:10:07 +00:00
pdontthink
7aa0e60863 Update copyrights to 2010 2010-01-25 03:23:30 +00:00
jangliss
aeef8c04ba Fix issue with multi-part related messages not showing all attachments (#2830140). 2009-11-22 16:19:52 +00:00
Fredrik Jervfors
134d462c94 The copyright symbol isn't really needed since the word "copyright" is there. Also it doesn't display right in the documentation. 2009-09-29 12:15:33 +00:00
pdontthink
26e421a39d Ungreedy modifier does nothing here; remove to avoid unecessary confusion 2009-09-15 20:48:33 +00:00
pdontthink
6092b83f73 Remove personal data from Message ID seed. (#880029/847107) 2009-07-31 05:23:04 +00:00
pdontthink
bc3fb36016 Stop using deprecated ereg() functions (#2820952) 2009-07-29 01:55:21 +00:00
pdontthink
6618a28091 Anchor the regexp. Thanks Thijs Kinkhorst. 2009-05-21 09:21:56 +00:00
pdontthink
ef75b59bbb When sending an address literal to an SMTP EHLO command, do it with the right syntax 2009-05-20 20:59:44 +00:00
pdontthink
4e08ebbbc0 Add display indicator for forwarded messages 2009-04-17 10:49:38 +00:00
Fredrik Jervfors
0a6245814a There are too many modified files being committed without the copyright year being updated, so here's a copyright year update the old-fashioned style. 2009-04-15 22:00:49 +00:00
pdontthink
326a1c7f10 Encode outgoing attachments that have lines longer than allowed per RFC. Otherwise, they can be corrupted when artificially (forced) folding - unfolding typically produces an extra space at the fold in most MUAs. This fixes #2226470 and #1473714. Thanks to Kelly Fallon. 2009-04-03 08:31:17 +00:00
pdontthink
1dca6f714b Rewrite foldLine(). The old version *might* have been fixable, but it contained several bad assumptions, RFC misunderstandings and design problems. The new one is better documented if nothing else. PLEASE PLEASE PLEASE TEST THIS. This is a candidate for backporting to STABLE since it fixes some buggy behaviors - see #2501008 and #1951776 and others 2009-04-03 01:21:07 +00:00
pdontthink
5fcffc7336 Default Content-Transfer-Encoding is now RFC-compliant "7bit" instead of "us-ascii". (#1942060) 2009-04-02 00:39:15 +00:00
pdontthink
d8660a41f4 Documentation fix 2009-04-01 20:53:02 +00:00
pdontthink
fed4b6376b Make our Date header RFC-compliant. Redundant timezone info does not comply with RFC 822 section 5.1 2009-04-01 20:39:41 +00:00
pdontthink
45517fd6f0 Put quotes around both encoded and non-encoded addresses for consistency (#2449213) 2009-04-01 11:06:10 +00:00
pdontthink
83854bb3e4 Add RFC 2231 support. Thanks to Piotr Pawlow. (#2501379) 2009-04-01 08:24:48 +00:00
pdontthink
77b3c3d037 Put sample .htaccess in all directories browser does not access directly 2009-03-26 22:34:32 +00:00
pdontthink
e54daefe82 Supposedly user info could be removed from received header regardless of edit_identity setting, but this was not the case - now it is; Also add one more clarifying note to config script. 2008-12-05 21:05:16 +00:00
pdontthink
d09e079fd1 Empty header values cause PHP notice - fix 2008-10-29 23:06:25 +00:00
pdontthink
e4252c5bf3 Just fiddling. Give credit where credit is due. Template class header() function now supports the 'replace' argument. 2008-09-24 01:56:59 +00:00
pdontthink
68e7ef6f2e RPC requests should use their own template sets with different content-type. 2008-09-10 06:48:00 +00:00
pdontthink
fa7436a9de Allow template sets to define what the content-type of their output is. 2008-09-10 03:04:14 +00:00
pdontthink
580f61c204 Fix PHP 5.3.0 notices 2008-08-11 01:30:35 +00:00
pdontthink
8523ca3d2c Allow a different server address for the POP server to be configured when using POP before SMTP 2008-07-19 17:27:54 +00:00
pdontthink
2fbd9de6f4 add fixme 2008-07-04 19:22:02 +00:00
pdontthink
42240d3964 Change order of arguments 2008-04-28 02:19:12 +00:00