Commit Graph

134 Commits

Author SHA1 Message Date
Jamie Cameron
5760fb1c26 Make simplify_date always return HTML, and remove the eucconv call that's not useful for dates 2025-02-16 16:11:15 -08:00
Maarten Kossen (mpkossen)
abcdf51d10 Improve capitalization of auth command. 2024-03-31 10:48:23 -05:00
Maarten Kossen (mpkossen)
b3350f5b37 Capitalize SMTP auth command for broader compatibility. 2024-03-31 07:42:03 -05:00
Jamie Cameron
31eead4a08 Helo has to be sent again after switching to TLS 2024-03-29 14:27:25 -07:00
Jamie Cameron
ae6592602f HELO has to come first before STARTTLS 2024-03-29 12:54:32 -07:00
Jamie Cameron
97d1624bb0 Fix param to read only headers https://sourceforge.net/p/webadmin/usermin-bugs/501/ 2023-10-19 13:17:19 -07:00
Jamie Cameron
aa6edf6c55 Preserve original permissions, ownership and file times after gunzipping 2023-09-17 19:20:26 -07:00
Jamie Cameron
352326f574 Return decompression status 2023-09-16 18:44:16 -07:00
Jamie Cameron
54ad4f7f74 Work on function to uncompress mail folders 2023-08-27 21:54:18 -07:00
Jamie Cameron
2e93819c1b If a mail file is compressed, read it via gzip 2023-07-26 21:50:09 -07:00
iliajie
ca5c75785d Fix to test Perl version for make_date to support (still) CentOS 6
https://sourceforge.net/p/webadmin/bugs/5622/
2023-06-09 03:21:01 +03:00
iliajie
619726ea1a Add support for simplify_date to respect Local user option 2023-02-05 02:51:55 +02:00
Jamie Cameron
9f1cea1af4 Deal with multipart emails with just one part that's HTML 2022-09-17 00:15:55 -07:00
iliajie
d792d4ee7c Fix to use even shorter and later we'll use from input 2022-07-09 21:52:22 +03:00
iliajie
bb357fb2d1 Fix not to make string length that large not to break themes 2022-07-09 21:43:09 +03:00
iliajie
5200f5bc09 Add truncated string length to be configurable 2022-07-09 21:14:05 +03:00
iliajie
a951570ab9 Fix truncated string length 2022-07-09 20:36:22 +03:00
Jamie Cameron
63057dc6c7 mime-words encoded strings can have parts separated by just spaces 2021-09-02 14:18:43 -07:00
Jamie Cameron
e6017f7761 Replace some more old hard-coded 1024 byte buffers with the new function 2021-03-27 12:49:56 -07:00
Jamie Cameron
11d382cb36 Use new function to get buffer size, instead of hard-coding 2021-03-27 12:17:22 -07:00
Ilia Rostovtsev
34403b75e0 Always assume utf-8; add ascii test sub 2020-12-02 23:33:50 +03:00
Jamie Cameron
1f9e4795ca Do proper MIME encoding of subject header https://github.com/webmin/usermin/issues/67 2020-11-29 16:33:54 -08:00
Ilia Rostovtsev
18b12d3401 Fix a bug in UTF7 conversion to support other languages (like Russian) https://github.com/webmin/usermin/issues/62
Folder name like `.&BB8EQAQ4BDIENQRC-` wasn't working before
2020-10-23 22:40:26 +03:00
Ilia Rostovtsev
bec8d15d7a Add ability to decode UTF7 encoded imap folders https://github.com/webmin/usermin/issues/62 2020-10-23 17:11:29 +03:00
Jamie Cameron
600b0d7490 Add support for STARTTLS mode 2020-09-13 16:51:44 -07:00
Ilia Rostovtsev
43a86a8680 Enforce utf-8 for mail #1272 2020-07-30 14:18:40 +03:00
Jamie Cameron
00c1f1410c Invert test for non-ascii characters https://github.com/webmin/webmin/issues/1272 2020-07-26 22:32:45 -07:00
Jamie Cameron
a2dc3f7124 Switch all calls to open() to explicitly open for read 2020-03-14 17:20:54 -07:00
Jamie Cameron
3d28fd96f6 Deal better with empty string real names 2019-05-03 12:42:39 -07:00
Jamie Cameron
681abfd803 Fix case where writing to a file and not switching user https://sourceforge.net/p/webadmin/usermin-bugs/464/ 2017-10-18 20:01:00 -07:00
Jamie Cameron
d2b4cf6c66 Handle case where passed filename contains mode chars 2017-07-30 18:21:23 -07:00
Jamie Cameron
97e9c4e138 Use 3-arg open format to handle folders with spaces at the end of their names 2017-07-30 09:35:57 -07:00
Jamie Cameron
7de1f09c9f Use the correct var for the file handle https://github.com/webmin/webmin/issues/404 2016-07-11 02:12:34 -07:00
Jamie Cameron
8f18e8cdf4 Use formal parameters https://github.com/webmin/webmin/issues/403 2016-07-11 02:09:01 -07:00
Jamie Cameron
838f90c8d7 A regular rename coe call can fail if it crosses filesystems, so try the mv command as well http://virtualmin.com/node/37524 2015-07-28 22:08:25 -07:00
Jamie Cameron
a45f60a969 Allow callers to skip creation of mbox index files 2015-06-28 12:45:42 -07:00
Jamie Cameron
aabd5f7a4f Use /var/webmin for the maildir cache directory 2015-06-27 17:44:47 -07:00
Jamie Cameron
77795a6c40 Use /var/webmin for index files if there aren't already in /etc/webmin 2015-06-27 17:37:22 -07:00
Jamie Cameron
8f38cdac33 Users can actually have numeric names 2015-03-10 16:58:23 -07:00
Jamie Cameron
3a833870ff Fix spelling error 2015-03-08 21:52:19 -07:00
Jamie Cameron
17c63ef178 Put file handle into a package, so that all callers can use it 2015-01-12 16:37:06 -08:00
Jamie Cameron
3d18a1b9fd Add support for SSL encrypted SMTP connections 2015-01-11 10:03:02 -08:00
Jamie Cameron
69185c1df3 Use proper args in send_mail function 2015-01-09 18:25:54 -08:00
Jamie Cameron
5e2c23e0c2 When deleting from an mbox file, open the temp file with root permissions but only if it doesn't yet exist https://github.com/webmin/webmin/issues/184 2015-01-08 23:27:46 -08:00
Jamie Cameron
77600ecbcf Add function to safely delete a file 2014-12-28 21:32:23 -08:00
Jamie Cameron
3eb55ffee4 Remove debug message 2014-12-28 13:42:20 -08:00
Jamie Cameron
c031dfcb18 Allow nested calls to switch function, check perms when copying a folder 2014-12-27 20:26:48 -08:00
Jamie Cameron
b4fa4db0d6 Update more functions to operate as the correct user 2014-12-27 16:40:37 -08:00
Jamie Cameron
115683ca39 Use correct permissions when writing mail 2014-12-15 22:36:57 -08:00
Jamie Cameron
b1a0f07c3a More work on using correct permissions for folder ops 2014-12-15 22:31:04 -08:00