700f5298a28c60d19936c3c20a6e4ff7d588fd9c |
|
16-Feb-2018 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
imap: Add client_create_finish() to finish namespace creation. |
a73052375a6696e47dbb0bd492974cece1b5fde7 |
|
16-Feb-2018 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
imap: When running standalone, delay initializing namespaces until PREAUTH is sent
Most importantly this makes the code paths similar for standalone and
non-standalone clients, which is needed by the following commits. |
e0dae5d76ea0a4aef849602750ce73dfae995bc8 |
|
12-Feb-2018 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
global: Flip MAIL_STORAGE_SERVICE_FLAG_DISALLOW_ROOT to ..._ALLOW_ROOT |
bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
838d6a4751c3fbe17c3ec45c0e109629c4156815 |
|
13-Dec-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Enable MASTER_SERVICE_FLAG_SEND_STATS for mail processes |
fcad7b5f8913030ef5bb6f23022fcdf15a089e14 |
|
13-Dec-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
imap: Add client.event and use it as mail_*user's parent event |
64c7bca60b07c3652f3071913f56c6029d6deae4 |
|
13-Dec-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
imap, pop3: Remove unnecessary call to mail_storage_service_io_deactivate()
The context is automatically deactivated when service user is freed. |
211caf3c233d562b0c8137e5eefae3cb1ef13003 |
|
11-Dec-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib-storage: mail-user: Added more information about the client connection.
Submission service will need it to pass to the backend MTA in XCLIENT and for creating the "Received:" header. |
60670187b0dd0e7f23f99a58feab11b862ad77ac |
|
11-Dec-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib-storage: Moved connection information in struct mail_user into separate struct mail_user_connection_data. |
7f4bcbb9f2d97745a12d301b9ee276200ac58605 |
|
02-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
imap, pop3: Don't access login_set.*_socket_path after they're freed from data stack
Call master_login_init() before master_service_init_finish(), which frees
all the data stack done in initialization.
This didn't normally cause any visible problems, because data stack wasn't
currently being used in a way that the strings were invalidated. However,
it was causing failures if --enable-devel-checks was used. |
1ef9fe877817de76eb38883ccf3833fae60e6865 |
|
05-Oct-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: stop including fd-set-nonblock.h & fd-close-on-exec.h directly |
1519df1d514ed508c9708e3d2a4daf89e9c937e0 |
|
05-Oct-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
imap: Drop dependencies on lib-lda settings.
Start using lib-smtp/smtp-submit-settings instead.
Put any other settings required by IMAPSIEVE in struct imap_settings. |
9e0f35dcc277e3f55da306519738e5ca3499a2b6 |
|
07-Sep-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
global: Remove random_init/random_deinit calls
lib already initializes it. |
e031d9aaae59a9f79710dc1138b76b69272615a3 |
|
19-May-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
imap: login reply should be sent sooner |
3c902023723d178357b83d21cd03d418bc88482c |
|
26-Mar-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
imap: Remove imapc-specific "is connection valid?" code
This is now done by imapc itself in the previous patch |
646817f0cfb39b0e0eb545900f1566b76a851b20 |
|
23-Mar-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Replace MAIL_STORAGE_SERVICE_FLAG_AUTOEXPUNGE with explicit mail_user_autoexpunge()
This allows better control of which users are being autoexpunged. This
patch changes behavior at least in two ways now:
1) After shared folder access, the owner user isn't autoexpunged at deinit.
Although this is a bit questionable of whether it should be or not.
2) LMTP's quota check at RCPT TO stage doesn't trigger autoexpunging. |
d4847b921058734e0668bc7690465c91523d9ec0 |
|
23-Mar-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
global: Log mailbox_list internal errors |
3c6a7ca2d3ed89dd999cc6885220097777090791 |
|
16-Mar-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
imap, pop3, indexer-worker: Add (deinit) to process title before autoexpunging runs.
lmtp should also do this, but it needs a bit larger changes. |
eb318ea05532d2e54ed3bfc89bc15dcf1adae838 |
|
22-Feb-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Replace mail_storage_service_user_free() with _unref() |
211c638d81d382517d196ad47565e0d85012c927 |
|
19-Feb-2017 |
klemens <ka7@github.com> |
spelling fixes |
b1c85a1f889a5e71f491e320bdac95df3c9fe550 |
|
30-Jan-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib: Add error_r to t_abspath and its callers |
dfa2201c6ac8ddb2d2798dee15662cfe774e644e |
|
30-Jan-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib: Rename abspath to path-util |
2454dfa32c93c20a8522c6ed42fe057baaac9f9a |
|
01-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2017. |
efe78d3ba24fc866af1c79b9223dc0809ba26cad |
|
24-Dec-2016 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
global: Replaced all instances of memset(p, 0, sizeof(*p)) with the new i_zero() macro.
Used the following script:
C_FILES=`git ls-files *.c`
H_FILES=`git ls-files *.h`
for F in "$C_FILES $H_FILES"; do
echo "$F"
perl -p -i -e 's/safe_memset\(&\(?([^,]*)\)?,\s*0,\s*sizeof\(\g1\)\)/i_zero_safe(&$1)/g' $F
perl -p -i -e 's/safe_memset\(([^,]*),\s*0,\s*sizeof\(\*\g1\)\)/i_zero_safe($1)/g' $F
perl -p -i -e 's/memset\(&\(?([^,]*)\)?,\s*0,\s*sizeof\(\g1\)\)/i_zero(&$1)/g' $F
perl -p -i -e 's/memset\(([^,]*),\s*0,\s*sizeof\(\*\g1\)\)/i_zero($1)/g' $F
done |
2ac5f36aa7c2e7a07ba8815d43a6d7483f62e74c |
|
16-Dec-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Change string position/length from unsigned int to size_t
Mainly to avoid truncating >4GB strings, which might potentially cause
some security holes. Normally there are other limits, which prevent such
excessive strings from being created in the first place.
I'm sure this didn't find everything. Maybe everything could be found with
compiler warnings. -Wconversion kind of does it, but it gives way too many
unnecessary warnings.
These were mainly found with:
grep " = strlen"
egrep "unsigned int.*(size|len)" |
0f5dc4da3982053036be65190e44bf28a67b1ca2 |
|
02-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: API change - var_expand*() now returns error string.
This allows callers to fail properly if the format string is invalid. |
c15e8f33c81141381a788bf8f9aa3d407e3b1ee2 |
|
23-Mar-2016 |
Stephan Bosch <stephan@rename-it.nl> |
imap: Made LDA settings accessible from plugins.
This way, plugins can also send mail. |
2812f5744f44ffb070bb6f8bede8dcaa04fe6337 |
|
03-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
imap, pop3, imap-urlauth: Added -a <auth-master socket path> parameter |
1fba10ff6f401ee03b0bc8a70150440baf4486cf |
|
20-Jan-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
imap, pop3, lmtp: Enable MAIL_STORAGE_SERVICE_FLAG_AUTOEXPUNGE |
02c335c23bf5fa225a467c19f2c063fb0dc7b8c3 |
|
12-Jan-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: freshen copyright
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-5]/$1-2016/g;s/ (201[0-5]) Dovecot/ $1-2016 Dovecot/' |
7dea51952dc68bffb4d6a626d8d1d2ccf499b60b |
|
05-Jan-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
imap: Don't hang at ambiguous commands when they were pipelined already before login
For example if all of these are sent in a single IP packet:
a login user pass
b select inbox
c noop
d unselect |
814bf67459ad405a157af0b8940602024d7fadfe |
|
23-Sep-2015 |
Teemu Huovila <teemu.huovila@dovecot.fi> |
Remove now-unnecessary direct stdlib.h #includes. |
5ef28f68edef46f69961b19b7c1dcd8ec5a955e8 |
|
24-Aug-2015 |
Timo Sirainen <tss@iki.fi> |
Added imap-hibernate process for gathering IDLEing imap processes.
imap_hibernate_timeout setting controls how quickly the connection is moved
from imap process to imap-hibernate process.
Some IMAP extensions like NOTIFY, SEARCH=CONTEXT and COMPRESS aren't
supported yet.
There's also a new X-STATE command, which can be used to export the current
IMAP connection state to a string and later on imported to get back to the
original state (a quick resync feature for IMAP clients). However, this
command is disabled for now due to the current code being unoptimized for
untrusted input. |
695332dede7f4d0b17b13321acd867602b63b021 |
|
19-Aug-2015 |
Timo Sirainen <tss@iki.fi> |
imap: Code cleanup
Keep client_add_input() functionality separate from
client_create_from_input(). Also this way temporary buffer doesn't need to
be created to add the input in login_client_connected(). |
58ab5b9e71ea561d049050f56a723c6c9feef66b |
|
19-Mar-2015 |
Timo Sirainen <tss@iki.fi> |
imap: If mailbox list is unusable at startup, return failure immediately.
This is currently used only by imapc when login fails. |
7cb128dc4cae2a03a742f63ba7afee23c78e3af0 |
|
05-Jan-2015 |
Phil Carmody <phil@dovecot.fi> |
global: freshen copyright
Robomatically:
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-4]/$1-2015/g;s/ (201[0-4]) Dovecot/ $1-2015 Dovecot/'
Happy 2015 everyone!
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
eec75bde5b8de6667483b48e5f4a41df495d84b0 |
|
25-Sep-2014 |
Timo Sirainen <tss@iki.fi> |
imap: die-callback didn't set log prefixes correctly for client handlers
Calling mail_storage_service_io_activate_user() unfortunately doesn't set
the ioloop context itself, so timeouts weren't inheriting it. It seemed a
bit difficult to change this, so for now I just moved the call to the
timeout handler. |
2df651ae18342cbe72c92d5489af5fc582b65937 |
|
25-Sep-2014 |
Timo Sirainen <tss@iki.fi> |
imap, pop3: Show user's proper log prefix when deinitializing users at exit. |
b36a03e5ad84039d63b024cada151768448c48e5 |
|
21-May-2014 |
Timo Sirainen <tss@iki.fi> |
imap: If we're waiting for client to read data, show in process title how many bytes are buffered. |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
d6b3cfd855c0eebed68be50d3111de1b5a6afeb0 |
|
13-Jun-2013 |
Timo Sirainen <tss@iki.fi> |
Call master_service_init_finish() only after all of the initialization is done.
This way if the init crashes, the master process will throttle a buggy
service. |
5a580c3a38ced62d4bcc95b8ac7c4f2935b5d294 |
|
02-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Oops :) Update copyrights to 2013 without breaking all .c files. |
cca4ba2a504d70a9fe9fee37f8433997359de52c |
|
02-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2013. |
70375a50991814959d061db0e2d4da35e542e437 |
|
18-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
Moved random_init() from lib-imap-urlauth to imap/imap-urlauth main().
This way if the processes are chrooted they are still able to open
/dev/urandom. |
14ee25b3a5839420707c11d6fc0131663a657096 |
|
12-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
imap: Don't waste data stack memory at startup. |
f9511e684858bf5f6ac77ab12254b85b737beae8 |
|
15-Sep-2012 |
Stephan Bosch <stephan@rename-it.nl> |
Added support for IMAP URLAUTH and URLAUTH=BINARY extensions
Extends imap service with URLAUTH and URLAUTH=BINARY support:
- Adds new commands URLFETCH, GENURLAUTH and RESETKEY.
Creates imap-urlauth service in src/imap-urlauth.
Functionality common to both the imap and imap-urlauth services is located
in src/lib-imap-urlauth.
TODO:
- use mailbox GUIDs instead of names
- doveadm command to delete stale urlauth entries?
- add delay when attempting to access nonexistent user
- create urlauth-worker queue, similar to how indexer-worker works
(could we share code?..) |
ab90f702ceedb7ba445a9a592be0b213b27cbafa |
|
14-Sep-2012 |
Stephan Bosch <stephan@rename-it.nl> |
Added support to perform token-based service process authentication.
Creates hidden SASL method DOVECOT-TOKEN. This method is not available on
the normal auth login socket and thus never presented to clients.
Creates new auth socket type 'tokenlogin'. This otherwise normal login
socket only offers authentication using the DOVECOT-TOKEN mechanism.
Creates new token-login directory in base_dir to separate token logins from
normal logins. This directory is otherwise completely identical to the
normal login dir, i.e. it contains sockets for the service backends, used
to chroot login processes to, etc.
Makes default login socket configurable.
Performs some minor changes to src/login-common to build very sparse
protocols, e.g. avoid the need to implement methods that are not needed. |
3281669db44d09a087a203201248abbc81b3cc1a |
|
06-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
Renamed buffer_create_*data() to buffer_create_from_*data() for consistency.
Especially i_stream_create_from_data() was a very similar function, which
made it difficult to remember which one should have "from" and which one
shouldn't. |
5a7acd67806132cbc1ec9578df60d712d307e4be |
|
21-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
imap: Fixed command output locking. |
51cbc45fc1ac5dde29bc2adbb175945df1b4f7d4 |
|
13-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
imap: Implemented NOTIFY extension.
Requires mailbox_list_index=yes to work (and to show up in capabilities).
SubscriptionChange event is still unimplemented. |
4307c886579381dbb1897ea1388ae6978c96f560 |
|
27-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Changed i_close_fd() API to set the fd to -1 after closing. |
cb78bd2ad54e402c1f53930b41e2295683bda90b |
|
25-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Replaced (void)close(fd) and close_keep_errno() with i_close_fd().
i_close_fd() preserves the errno and logs an error if the close() fails. |
e34d170f8f0e084bd94bfbc1a7085ece67e508df |
|
25-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Make sure we check all the functions' return values. Minor API changes to simplify this.
Checked using a patched clang that adds attribute(warn_unused_result) to all
functions. This commit fixes several error handling mistakes. |
c36b65f27864a841bb703ccc4fec406aaf9fdff0 |
|
08-Mar-2012 |
Timo Sirainen <tss@iki.fi> |
imap: Crashfix when running standalone. |
b55f914c0ade77252cfd798ea8eb9a84bda56315 |
|
07-Mar-2012 |
Timo Sirainen <tss@iki.fi> |
Added a "session ID" string for imap/pop3 connections, available in %{session} variable.
The session ID passes through Dovecot IMAP/POP3 proxying to backend server.
The same session ID is can be reused after a long time (currently a bit
under 9 years). |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
53dff078a5f49e9d28d6c81d3437755e27526e3e |
|
20-Jan-2012 |
Timo Sirainen <tss@iki.fi> |
imap, pop3: Added -t parameter to specify post-login script timeout. |
2e37d45867d081db150ab78dad303b9077aea24f |
|
04-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2011. |
183bea41fa640dc8117f3eb45ff935cd81377a84 |
|
04-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2011. |
d47aaddba741b9194dd82bf9b76a6f9ea182fea8 |
|
19-Nov-2010 |
Timo Sirainen <tss@iki.fi> |
imap, pop3: Fixed giving any -parameters. |
d482079eb385cd071bbc9637cacee225e4aff968 |
|
15-Nov-2010 |
Timo Sirainen <tss@iki.fi> |
"Running standalone?" check now uses a new DOVECOT_CHILD_PROCESS environment rather than GENERATION.
The GENERATION environment was already set in some systems for Java. |
0e6bd4b9af5bf002325c3fcea7813b6b1ab2a0bd |
|
02-Nov-2010 |
Timo Sirainen <tss@iki.fi> |
imap, pop3: Use absolute path to auth-master socket. |
23163a94645ea16faf2d557e8af61d1e39e56d95 |
|
02-Nov-2010 |
Timo Sirainen <tss@iki.fi> |
imap: Fixed SELECT QRESYNC not to crash on mailbox close if a lot of changes were being sent. |
93f0b2f8b3a4b1afe39a7bbcf7c4c251f3ca8e48 |
|
04-Oct-2010 |
Timo Sirainen <tss@iki.fi> |
imap: Added imap_client_created_hook_set() to update the hook. |
6469403946bdf147886daba5ee8de07516c32238 |
|
30-Jun-2010 |
Pascal Volk <user@localhost.localdomain.org> |
imap, pop3: Added an assert to client_connected().
--HG--
branch : HEAD |
db693bf6fcae96d834567f1782257517b7207655 |
|
27-May-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master API changed to avoid accidentally leaking client connections.
This change also fixes many such leaks.
--HG--
branch : HEAD |
747c5d36868aa738b64ceedc87cda169aa1dbe96 |
|
29-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
Compiler warning fix.
--HG--
branch : HEAD |
3b22894b8805b186c73d8b754001e8d7e944be85 |
|
31-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
Added support for userdb lookup to fail with a reason (many API changes).
--HG--
branch : HEAD |
124e615e2949883473e30950a15a563feef26406 |
|
25-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
imap, pop3: Added -u <username> parameter to do userdb lookup.
--HG--
branch : HEAD |
7b1bdf60531f8d511e9983e2bd6375938d711cff |
|
13-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
imap: Remember if TLS compression is enabled.
--HG--
branch : HEAD |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
af15bd5da7fcb8244554dcb56b9ffd61c613349e |
|
14-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
imap, pop3: Don't crash if post-login socket path wasn't given.
--HG--
branch : HEAD |
1d3b9fce06b466bcf64f9ab7b622f3a6e4e939ba |
|
12-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
imap, pop3: Added back ability to run post-login scripts.
--HG--
branch : HEAD |
6667f4006484bcaf9ab8fd03b97a7a3ae84ce0d5 |
|
11-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
imap, pop3: If client creation fails, update lib-master connection count.
--HG--
branch : HEAD |
b71f152acb8a197d20b709ca74366e6d765bd200 |
|
11-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
*-login: Check for missing username in lib-master code.
--HG--
branch : HEAD |
3ba9a079592f46e94ce846e5aa80e4d479cd5e41 |
|
27-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
imap, pop3: Connection counting fixes.
Multiple real connections can come from "login connections". For now don't
even try to count login connections.
--HG--
branch : HEAD |
4f7987384f306ea93b0258623a4cdd69601f2d0e |
|
27-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
imap: Added support for verbose_proctitle=yes
--HG--
branch : HEAD |
86791365b10f45982c88e70f2eb94fd6c3fea151 |
|
23-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
Handle shutdown_clients globally for all services.
Delay shutting down processes until it's convenient for them, but if they're
not gone in 30 seconds forcibly stop. And if that doesn't help, master will
start killing them in 60 seconds.
--HG--
branch : HEAD |
376a41ab9e1b035737653fa6813c8c9e674caf20 |
|
23-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
imap: Compiling fix.
--HG--
branch : HEAD |
573731df7d9b2ebb9028311a6c33b338dd2dd34d |
|
23-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
imap/pop3: Cleaned up initialization code.
--HG--
branch : HEAD |
ff68bb15ea27c179bbb98f4d40d669df11f05f81 |
|
23-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
imap/pop3 now supports multiple connections/process, removed the restriction.
--HG--
branch : HEAD |
4da8c6cdefabd31262318c32da3c13de1d9ea953 |
|
22-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
Merged single and multi mail_storage_service_*() functions.
--HG--
branch : HEAD |
a3fe8c0c54d87822f4b4f8f0d10caac611861b2b |
|
21-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
Moved process title init to lib-master. With Linux-hack enabled it now preserves command args.
--HG--
branch : HEAD |
578ef2538ccf42e2a48234c24a8b709397101d88 |
|
21-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
Moved most of getopt() handling to lib-master.
--HG--
branch : HEAD |
39802a0699533868bf6054d73265b1ac99c225f5 |
|
21-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
imap: Removed all dump-capability handling. We don't use it anymore.
--HG--
branch : HEAD |
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3 |
|
20-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
Redesigned how login process passes connections to mail processes and changed related APIs.
Master process is no longer in the middle.
--HG--
branch : HEAD |
a8284e999d091cd29210fa75ecdc8076376a7345 |
|
16-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
imap, pop3: Moved imap/pop3_client_workarounds setting parsing to config checking.
--HG--
branch : HEAD |
15a772a036234a9065ed0717983ea47384b08f3b |
|
06-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
imap, pop3: Process permissions weren't properly dropped.
--HG--
branch : HEAD |
b9f801d33dcb13ac65987e32d442da15b405886a |
|
06-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
imap, pop3: Root mail access wasn't properly disallowed.
--HG--
branch : HEAD |
7cc26a6fd2308906d03baaca8885f39a9d777a43 |
|
04-Sep-2009 |
Timo Sirainen <tss@iki.fi> |
imap, pop3: shutdown_clients setting wasn't working.
--HG--
branch : HEAD |
a9ba65037107e370c126d2b7e8c6e3f2a4aafd23 |
|
26-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
imap/pop3: Compiling fix.
--HG--
branch : HEAD |
cef2be5fb553b05f421f86c1ef497f0dc29d069e |
|
25-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
If imap/pop3 service is tried to be started without being auth_dest_service, log better error.
If login_executable=imap/pop3, give better error message.
--HG--
branch : HEAD |
50a984f4a50e0753b08add77046ccdedae2449dd |
|
01-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
imap: If CAPABILITY was used before login, "Logged in" was missing OK prefix.
--HG--
branch : HEAD |
55e77eb1c37a894399bb567ab1fed5c45626bc8a |
|
01-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
imap: After logging in, send CAPABILITY and tagged OK in the same IP packet.
--HG--
branch : HEAD |
bbba7d0fce1b6ce5baa2d7ef946eb1b63e2ab518 |
|
28-May-2009 |
Timo Sirainen <tss@iki.fi> |
imap-login now advertises only pre-login capabilities.
If client had used CAPABILITY command before logging in, untagged CAPABILITY
is sent to client in the hope that client understands this. This change
could get reverted if it breaks too many clients.
--HG--
branch : HEAD |
b935d08e155589103e674b6f3a865a89e44b9423 |
|
26-May-2009 |
Timo Sirainen <tss@iki.fi> |
imap, pop3: Fixed assert-crash on exit.
--HG--
branch : HEAD |
f13c9ae4f96d4d13b3996ec716a959cf3380896c |
|
23-May-2009 |
Timo Sirainen <tss@iki.fi> |
imap, pop3 no longer assume that there's only a single client in process.
--HG--
branch : HEAD |
4d4d6d4745682790c20d759ba93dbea46b812c5d |
|
22-May-2009 |
Timo Sirainen <tss@iki.fi> |
lib-master has now a global master_service variable that all binaries use.
There should always be only one of them anyway.
--HG--
branch : HEAD |
16834f18f903048c772112838c015051642a0e77 |
|
21-May-2009 |
Timo Sirainen <tss@iki.fi> |
IMAP: Register FETCH handlers at startup so we don't break if plugins add them.
--HG--
branch : HEAD |
1358e2c58ce29231485a5cfa454756d429ad3d2c |
|
12-May-2009 |
Timo Sirainen <tss@iki.fi> |
config handling fixes and improvements. Separated module/service lookups. Added support for per-lip/rip settings.
--HG--
branch : HEAD |
08d6658a4e2ec8104cd1307f6baa75fdb07a24f8 |
|
05-May-2009 |
Mark Washenberger <none@none> |
Renamed headers to prevent collision if they were flattened on an install.
--HG--
branch : HEAD |
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76 |
|
24-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
Initial commit for v2.0 master rewrite. Several features are still missing.
--HG--
branch : HEAD |
d1fff80640050631b06bfab904a34b2ad24601e8 |
|
21-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
Pass remote/local IPs to mail_users. Standalone mail programs now log with mail_log_prefix.
--HG--
branch : HEAD |
f0eef692645df08d0173491cd8327d1cc890267a |
|
17-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
imap: Initialize commands hash before plugins are initialized so they can register commands.
--HG--
branch : HEAD |
812883e7758a86f615b9508ef10df1339123da83 |
|
15-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
mail_storage_service_init*() can now take multiple set_roots.
--HG--
branch : HEAD |
1b04762685272a53643ac2179939537a44c7c044 |
|
12-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
imap and pop3 now use mail-storage-service API.
--HG--
branch : HEAD |
8d3278a82b964217d95c340ec6f82037cdc59d19 |
|
10-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
Added lib-master and mail-storage-service code that makes it easier to build new Dovecot binaries.
Currently only the standalone applications (e.g. deliver) uses this.
--HG--
branch : HEAD |
a85d9c3e0b7cb1744a5c8f71501b3039d678c47a |
|
08-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
Cleaned up restrict_access*() API.
--HG--
branch : HEAD |
b70234f335410d6a8913f145d1cc9befa6f00b42 |
|
01-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
When a process is killed, show the signal code and the sending process's pid and uid.
--HG--
branch : HEAD |
1c7fa51b35231f375998f66d5756f214519218f8 |
|
01-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
lib-signals: Changed callback API to return siginfo_t.
--HG--
branch : HEAD |
a55742ae2e6b3fd53c8e2b5b63565d081ecfb1fc |
|
03-Mar-2009 |
Timo Sirainen <tss@iki.fi> |
Improved logging for core dumping. With Linux use PR_SET_DUMPABLE for imap/pop3.
--HG--
branch : HEAD |
528862222dfae36874e51753a6782e3f7acc9ec5 |
|
03-Mar-2009 |
Timo Sirainen <tss@iki.fi> |
Improved logging for core dumping. With Linux use PR_SET_DUMPABLE for imap/pop3.
--HG--
branch : HEAD |
2421fd34d51fed6da985c62b5e078d7e96640653 |
|
10-Feb-2009 |
Timo Sirainen <tss@iki.fi> |
pop3/imap: When master closes our log fd, don't die when trying to log disconnect reason.
--HG--
branch : HEAD |
ad0f1d2f2e7f1d42b2de403b04a0ffe1675109cc |
|
02-Feb-2009 |
Timo Sirainen <tss@iki.fi> |
Plugin setting backwards compatibility support and other fixes.
--HG--
branch : HEAD |
a64adf62fa33f2463a86f990217b0c9078531a40 |
|
28-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Initial commit for config rewrite.
--HG--
branch : HEAD |
45312f52ff3a3d4c137447be4c7556500c2f8bf2 |
|
06-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2009.
--HG--
branch : HEAD |
67c47dbb3fde79218320fd38a45c33f61bbf3012 |
|
21-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
mail_user_*() now handles home directory lookups when necessary.
Namespace owner is now a pointer to struct mail_user rather than a string.
--HG--
branch : HEAD |
e3fabe8d0faa9aab7cae2d0eee9653f581a3061d |
|
19-Oct-2008 |
Timo Sirainen <tss@iki.fi> |
Added a simple flat file dict backend.
--HG--
branch : HEAD |
092018b35bb1dc5bd61848a38189fe6ac8f791dd |
|
12-Aug-2008 |
Timo Sirainen <tss@iki.fi> |
Removed pool parameter from mail_namespaces_init*(). Use mail_user's pool intead.
--HG--
branch : HEAD |
d23c747de9d33966483fbdd41f08ad7766da7c5c |
|
12-Aug-2008 |
Timo Sirainen <tss@iki.fi> |
Added struct mail_user and fixed the code to support multiple users per process.
--HG--
branch : HEAD |
ab0d9eecd85f74acae18fe88529302e0776cc500 |
|
20-Jul-2008 |
Timo Sirainen <tss@iki.fi> |
extern/static fixes (from a sparse check by Diego Liziero)
--HG--
branch : HEAD |
d988c6c1055a553dfa90bee8acc3df910027bb0a |
|
12-Jul-2008 |
Timo Sirainen <tss@iki.fi> |
imap/pop3: Don't open /dev/urandom at startup. Nothing needs it.
--HG--
branch : HEAD |
8dec1377c7cf33823da5d8f831d10cb82333bc8b |
|
21-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
Just send CAPABILITY response code for all LOGIN/AUTHENTICATE commands.
Simplifies things and Lemonade spec specifies it as a "MUST be sent" anyway.
--HG--
branch : HEAD |
7753eaa6a4275e074b4ce8428b85d9d04fc67f31 |
|
20-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
Send login command OK reply in IMAP/POP3 process.
--HG--
branch : HEAD |
cd94aeaa294f7cc507206b4b2075852f00e14d61 |
|
20-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
If commands are pipelined after the login command, pass them to the
IMAP/POP3 process so it can process the command instead of discarding it.
--HG--
branch : HEAD |
ca9b9a1458ad3a3ad984a406b472d2f967a2e0d8 |
|
21-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
Added support for IMAP ID extension.
--HG--
branch : HEAD |
3517cb9bcf01610a9dfc9862a28414cc78b20dfb |
|
09-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
Moved threading code to lib-storage.
--HG--
branch : HEAD |
24e3b6aee28a8fb126e1f21348cc80acb2338518 |
|
09-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
Moved code around so that cmd-thread.c can do the THREAD reply writing.
--HG--
branch : HEAD |
1d80a9710774642f0111b127b2182967f9f9c315 |
|
16-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
Initial thread indexing code.
--HG--
branch : HEAD |
e959e240bb8975cba293a94dbc61712b232904f6 |
|
05-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Reverted "environment array" changes. It broke overriding imap/pop3 settings
from userdb and the performance improvements weren't all that great anyway.
--HG--
branch : HEAD |
cffa5888a8bd922e0a84f3b3ffe0ab7392e6dc3f |
|
02-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Build environment using envarr and pass it to execve(). This is faster than
using putenv() directly. restrict_access_*_env() API changed to take
environment array parameter.
--HG--
branch : HEAD |
76b43e4417bab52e913da39b5f5bc2a130d3f149 |
|
01-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2008.
--HG--
branch : HEAD |
da1444b45ce6ffaa0e6c423cf1a6a648e6223147 |
|
09-Oct-2007 |
Timo Sirainen <tss@iki.fi> |
If namespace initialization fails, die with a fatal error message instead of
just exiting.
--HG--
branch : HEAD |
89a126810703c666309310d0f3189e9834d70b5b |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Replaced my Copyright notices. The year range always ends with 2007 now.
My name was replaced with "Dovecot authors". In many cases I didn't really
even own the copyright, so this is more correct.
--HG--
branch : HEAD |
648d24583c1574441c4fa0331a90bd4d6e7996c5 |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
pool_unref() now takes ** pointer.
--HG--
branch : HEAD |
042a07daa4a5614159532a2a3878e76e3f176965 |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Renamed strocpy() to i_strocpy().
--HG--
branch : HEAD |
43d32cbe60fdaef2699d99f1ca259053e9350411 |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Renamed __attr_*__ to ATTR_*. Renamed __attrs_used__ to ATTRS_DEFINED.
--HG--
branch : HEAD |
cb05ecbd96ddb5e53c1850d27434541138a3f284 |
|
02-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
mailbox_keywords_create() checks keyword validity now and returns failure if
any of them are invalid. Added mailbox_keywords_create_valid() that only
drops invalid keywords. Removed mbox and IMAP-specific keyword checks, they
all use the same checking now.
--HG--
branch : HEAD |
eb10133e1b9d55fff6e9182aa17d8d7838a9ecee |
|
07-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
Moved back to non-indexed THREAD code. It'll be fixed after v1.1. Also
X-REFERENCES2 threading is gone for now.
--HG--
branch : HEAD |
117fa14ba2b925659a33ecbdd099702c64380c8d |
|
06-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
Client is now never disconnected in IDLE because it hasn't sent anything.
Removed outlook-idle workaround because it's no longer needed.
--HG--
branch : HEAD |
c3e30ffd8ac58854cc1162c33b4019a6d710b013 |
|
13-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Added imap_logout_format setting with default to bytes=%i/%o
--HG--
branch : HEAD |
e8490a52a1bc71bc53034e68f464435684ad810f |
|
03-Apr-2007 |
Timo Sirainen <tss@iki.fi> |
Moved namespace handling to lib-storage. Beginnings of namespace support for
non-IMAP parts of Dovecot.
--HG--
branch : HEAD |
174a54c74848b8668acd72ddf36d9b4745e1ad5e |
|
15-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Fixes to handling log prefixes. imap/pop3 processes now log the
mail_log_prefix even when started with --exec-mail.
--HG--
branch : HEAD |
b439928e47cb120eacee4ff1eb53156ae31d30dc |
|
08-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Removed pool parameter from io_loop_create()
--HG--
branch : HEAD |
41590df9f518459d66a9f7b9be2126f2e31fb221 |
|
22-Feb-2007 |
Timo Sirainen <tss@iki.fi> |
Don't compare to PACKAGE_VERSION in lib/ core directly, rather make
module_dir_load() have the version string as parameter. Plugin version
checks can be skipped with version_ignore=yes.
--HG--
branch : HEAD |
4449ad85fcbd4f6fedbaa9a5bdfe58a9ae60f8ae |
|
16-Feb-2007 |
Timo Sirainen <tss@iki.fi> |
module_dir_load() doesn't call init() functions anymore. Added a new
module_dir_init() which does it. This way imap/pop3 can load the modules
before chrooting and initialize them after.
--HG--
branch : HEAD |
8f4982b23e421f9193a36e356aea412108690d87 |
|
15-Feb-2007 |
Timo Sirainen <tss@iki.fi> |
mail_debug=yes: Log also home directory.
--HG--
branch : HEAD |
59151b71059df1190acd75d8717ed04a7920c862 |
|
15-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
Added context parameter type safety checks for most callback APIs.
--HG--
branch : HEAD |
5fb3bff645380804c9db2510940c41db6b8fdb01 |
|
25-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
Mailbox list indexing and related changes. Currently works only with
maildir and mmap_disable=no. This allows doing STATUS to synced mailboxes
without opening their index files at all.
--HG--
branch : HEAD |
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3 |
|
16-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
Initial code for separation of mailbox accessing and directory layout
handling. It's not yet possible to change the default layouts though.
--HG--
branch : HEAD |
05b422b01541f742c4d145c1aa48f4b03256f1ae |
|
10-Aug-2006 |
Timo Sirainen <tss@iki.fi> |
Require that master's version number matches the child's, unless
version_ignore=yes. Usually it's an accidental installation problem if the
version numbers don't match.
--HG--
branch : HEAD |
419cf63077e755935ce105747d6ebc67b7d38a7f |
|
30-Jul-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Berkeley DB dict support is now enabled only when using --with-db configure option.
--HG--
branch : HEAD |
14f39a0ed2d08e48cfb27e29000fa08fca91f480 |
|
11-Jul-2006 |
Timo Sirainen <tss@iki.fi> |
THREAD command handling is now done through a hash index file. This speeds
up the threading most of the time when the thread hash exists.
With in-memory indexes the hash is kept in memory, but it gets the same
benefits for subsequent THREAD commands as long as the mailbox is kept open.
--HG--
branch : HEAD |
c86392a82185a4854ae1e69a857daa7f2f201e90 |
|
27-Jun-2006 |
Timo Sirainen <tss@iki.fi> |
Changed the mail_plugins/mail_plugin_dir settings to be passed as the same
environments. If MAIL_PLUGIN_DIR environment isn't given, use the built-in
default.
--HG--
branch : HEAD |
eb49a3378f746e95366be78448995253ff4f1412 |
|
04-May-2006 |
Timo Sirainen <tss@iki.fi> |
Use lib_signals_ignore() for signals we really want ignored.
--HG--
branch : HEAD |
e2685db85982a37937a527aa64d74b1b8f8a5d28 |
|
14-Apr-2006 |
Timo Sirainen <tss@iki.fi> |
If we have plugins set and imap_capability unset, figure out the IMAP
capabilities automatically by running imap binary at startup. The generated
capability list isn't updated until Dovecot is restarted completely, so if
you add or remove IMAP plugins you should restart.
--HG--
branch : HEAD |
bba9bf9760690778fcd46b8ce3a1390f60f7d816 |
|
13-Apr-2006 |
Timo Sirainen <tss@iki.fi> |
Destroy client connection at deinit before unloading modules.
--HG--
branch : HEAD |
b725e5503d72a29a3eb18f93c1cbe597c4c31dcd |
|
12-Apr-2006 |
Timo Sirainen <tss@iki.fi> |
Added shutdown_clients setting to control if existing imap/pop3 processes
should be killed when master is.
--HG--
branch : HEAD |
f9ef36afc131626754716d6f4874a2ad04da0ac4 |
|
09-Apr-2006 |
Timo Sirainen <tss@iki.fi> |
When master dies (by closing log file descriptor), kill ourself also.
--HG--
branch : HEAD |
457cafc9e72edb81eacfe88b35f14a75a96cf00a |
|
26-Feb-2006 |
Timo Sirainen <tss@iki.fi> |
Replaced mail_use_modules and mail_modules settings with mail_plugins and
mail_plugin_dir. Now instead of loading all plugins from the directory,
you'll have to give a list of plugins to load. If the plugin couldn't be
loaded, the process exits instead of just ignoring the problem (this is
important with ACL plugin).
--HG--
branch : HEAD |
b3b4b44669a1c19bd3e11afa1c6c0944ed9465aa |
|
14-Feb-2006 |
Timo Sirainen <tss@iki.fi> |
PREAUTH banner should show the capability from capability_string in case
some plugins had changed that already.
--HG--
branch : HEAD |
d5cebe7f98e63d4e2822863ef2faa4971e8b3a5d |
|
14-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
deinit, unref, destroy, close, free, etc. functions now take a pointer to
their data pointer, and set it to NULL. This makes double-frees less likely
to cause security holes.
--HG--
branch : HEAD |
c000aa8509e03b4f7b0574f910d38a7e5e7e002a |
|
30-Dec-2005 |
Timo Sirainen <tss@iki.fi> |
Register proxy dictionary support and link libdict. Currently it's used only
by quota plugin, but later it'll be useful for more things..
--HG--
branch : HEAD |
8b63896feaef40e8c85fa00acdcc123b508e8d42 |
|
30-Dec-2005 |
Timo Sirainen <tss@iki.fi> |
Clarify that workaround lists are space separated. But allow commas as
well..
--HG--
branch : HEAD |
38a72d61d3a114816771f3045f374d56e2194232 |
|
02-Dec-2005 |
Timo Sirainen <tss@iki.fi> |
Added syslog_facility setting to config file.
--HG--
branch : HEAD |
130191cd9b8dfaf988fd28f9a7d52c1bddc24045 |
|
28-Oct-2005 |
Timo Sirainen <tss@iki.fi> |
Ignore SIGALRM signal. We don't want to crash when it happens.
--HG--
branch : HEAD |
321221ddc2dedc4ad79839770765adc40d311a0d |
|
25-Sep-2005 |
Timo Sirainen <tss@iki.fi> |
Implemented new signal handling framework, which makes handling signals much
easier.
--HG--
branch : HEAD |
533d87fb8acc91908bc9c30bf313cde447fb5664 |
|
22-Jul-2005 |
Timo Sirainen <tss@iki.fi> |
Added tb-extra-mailbox-sep IMAP workaround.
--HG--
branch : HEAD |
ab8e7c30442b7f625d074336430ea44bbf2b2978 |
|
03-Apr-2005 |
Timo Sirainen <tss@iki.fi> |
Removed tb-negative-fetch workaround. It shouldn't be needed anymore because
of the FETCH ordering changes.
--HG--
branch : HEAD |
fdc557286bc9f92c5f3bb49096ff6e2bcec0ea79 |
|
15-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
Major mail-storage API changes. It's now a bit cleaner and much more plugin
friendly. Removed proxy_mailbox* stuff, they were difficult to use and
there's now much easier way to replace them.
--HG--
branch : HEAD |
294f1a51763015cda0e2d874c5027d6fe7a2cd54 |
|
14-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
Renamed oe6-fetch-no-newmail workaround to delay-newmail and changed it to
work more like the name says: only newmail notifications are skipped and
not only for FETCH command.
--HG--
branch : HEAD |
5ffb4d27772d2ad19d5e1e8136bbac4b7cdc0706 |
|
29-Dec-2004 |
Timo Sirainen <tss@iki.fi> |
Print effective uid/gid when mail_debug is enabled.
--HG--
branch : HEAD |
4dbe08e1f7f1271299ada9338ff5015367efd0b7 |
|
09-Nov-2004 |
Timo Sirainen <tss@iki.fi> |
Make sure imap or pop3 processes cannot be started from inetd.
--HG--
branch : HEAD |
80bade1fe92cfb591a43da66e109a4cde2ec7d9b |
|
20-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
Added tb-negative-fetch workaround.
--HG--
branch : HEAD |
9e89f1d9d0ef06a4ae086a13270b57d76074cfe6 |
|
11-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
Removed mailbox_check_interval completely. It wasn't currently implemented,
and most (all?) clients which would benefit from it support IDLE anyway.
--HG--
branch : HEAD |
99a072b692b72a1a31eec0b77f7b38cc1018c5ea |
|
23-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
Accidentally committed debugging code.
--HG--
branch : HEAD |
95d493c371891ea3b7598926d6b5464eabe27860 |
|
21-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
Added netscape-eoh workaround.
--HG--
branch : HEAD |
bd96f3feda739823bac48ab881be2a19d7ccb114 |
|
22-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
header filter can now optionally use either LF or CRLF linefeeds.
--HG--
branch : HEAD |
2767104d81e97a109f0aa9758792bfa1da325a97 |
|
15-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
We never do blocking reads/writes to network anymore. Changed imap and pop3
processes to use a single I/O loop.
Not much tested yet, and currently LIST/LSUB may eat too much memory and
APPEND eats all CPU.
--HG--
branch : HEAD |
fa45f3f1ad423381ba07056e415ffc4d6449f089 |
|
10-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
Split client_workarounds to imap_ and pop3_ ones. Added outlook-no-nuls POP3
workaround.
--HG--
branch : HEAD |
b565c76999227da8db3670ec2f4b0c39690d8c40 |
|
23-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
DEBUG: If GDB environment is set, don't do fd leak checks.
--HG--
branch : HEAD |
c0a05ba822189ff4f2c86645c38a5a904943192a |
|
30-May-2004 |
Timo Sirainen <tss@iki.fi> |
Added support for password scheme plugins. auth module dir defaults under
module_dir now.
--HG--
branch : HEAD |
c1b0fc9bde0ca3690aa71c5812406b82eb50b356 |
|
10-May-2004 |
Timo Sirainen <tss@iki.fi> |
removed debugging
--HG--
branch : HEAD |
316dad8277db6575354eba30d3fc7a1c0447c513 |
|
10-May-2004 |
Timo Sirainen <tss@iki.fi> |
Write all logging through master process. Fixes problems with log rotation,
chrooting, etc. Master process also allows max. 10 log messages per second
per child process, it then begins throttling them (eventually making the
child process start blocking on stderr).
--HG--
branch : HEAD |
ee246b46953e4b94b2f22e093373674fa9155500 |
|
03-May-2004 |
Timo Sirainen <tss@iki.fi> |
memory leak fixes
--HG--
branch : HEAD |
b7132f4170ba7d40ccd29611fcb0ccc6f7413fcd |
|
02-May-2004 |
Timo Sirainen <tss@iki.fi> |
and a few more custom flag -> keyword changes
--HG--
branch : HEAD |
d8b77aef97e89f1ccc5cbdaef77be9052279e35f |
|
02-May-2004 |
Timo Sirainen <tss@iki.fi> |
s/custom flags/keywords/
--HG--
branch : HEAD |
31ddc75584c5cde53d2e78a737587f2e7fdcb0d2 |
|
28-Apr-2004 |
Timo Sirainen <tss@iki.fi> |
Forced locking to be right with mprotect()ing index file. Support for
disabling mmap for indexes, and disabling just mmap+write().
--HG--
branch : HEAD |
be5e7de9415b8fb995c0566448a5b3d2c752631e |
|
21-Aug-2003 |
Timo Sirainen <tss@iki.fi> |
Separated rawlog into it's own binary.
--HG--
branch : HEAD |
60ac3b8975c9fcd8acfa2fbae6d8dff5e214aff9 |
|
27-Jul-2003 |
Timo Sirainen <tss@iki.fi> |
Getting ready for namespaces. LIST is still broken with them.
--HG--
branch : HEAD |
b728c54e411fd1964195497572ab7066138206cb |
|
27-Jul-2003 |
Timo Sirainen <tss@iki.fi> |
Mail storages support now configurable namespace prefix and hierarchy
separator. Subscription file handling needs some more thought.
--HG--
branch : HEAD |
2c776fc36328447eea694ce01401d57b414911e0 |
|
26-Jul-2003 |
Timo Sirainen <tss@iki.fi> |
hook changes
--HG--
branch : HEAD |
0753c5271036de8fed24f1a6707080af4455f357 |
|
26-Jul-2003 |
Timo Sirainen <tss@iki.fi> |
Added hook_client_created and hook_mail_storage_created for modules.
--HG--
branch : HEAD |
290d0477ac0fed6e0c5faa17d55364a971696923 |
|
15-Jul-2003 |
Timo Sirainen <tss@iki.fi> |
index_mmap_invalidate = yes now invalidate memory maps before accessing
them. Setting this on should fix some problems with OpenBSD. It should also
make it possible to use index files over NFS as long as lock daemon is used.
It might be such a good idea however.
--HG--
branch : HEAD |
892f02d4ab8f764f86015009aaf7437349398286 |
|
05-Jul-2003 |
Timo Sirainen <tss@iki.fi> |
Moved all dotlocking code to lib/. Also we now use temp file + link() rather
than rely on working O_EXCL.
--HG--
branch : HEAD |
1733dc0970314e157c001dd21c39b275d515c259 |
|
02-Jul-2003 |
Timo Sirainen <tss@iki.fi> |
IMAP parser memory limits are now enforced by bytes per line rather than
limiting maximum amount of tokens per line. Default is 64k now, which should
help with the huge message sets generated by some clients.
--HG--
branch : HEAD |
e6acae319b8e3895cbeb403d38afed23185c582a |
|
30-Jun-2003 |
Timo Sirainen <tss@iki.fi> |
Keep capability in string_t so plugins can modify it.
--HG--
branch : HEAD |
c9666590922a85fa21b80608402448215e71fc10 |
|
23-May-2003 |
Timo Sirainen <tss@iki.fi> |
Minor speedup
--HG--
branch : HEAD |
9e708a17f984ef7690ff2468ec19ad62c95b1ac2 |
|
14-May-2003 |
Timo Sirainen <tss@iki.fi> |
Added support for dynamically loadable imap/pop3 modules.
--HG--
branch : HEAD |
1fccbe1347d03a17b08f70a9eabb576a4e5d3965 |
|
14-May-2003 |
Timo Sirainen <tss@iki.fi> |
Added command_register() and related functions so we can dynamically
register new commands.
--HG--
branch : HEAD |
18d788657cff0fc3905b6a484d33c8c9fc2b9eba |
|
11-Apr-2003 |
Timo Sirainen <tss@iki.fi> |
minor memory leak/cleanup fixes
--HG--
branch : HEAD |
21332e9eb15f8b1c55af21ad4a87716a0735d740 |
|
26-Mar-2003 |
Timo Sirainen <tss@iki.fi> |
Support for mailfront.
--HG--
branch : HEAD |
51b4c2c50a1eb94b9f9c6589afcf82586cf9a2f1 |
|
18-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
fix
--HG--
branch : HEAD |
d9887839f7fee360364cce098b1076879859b17b |
|
18-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
Use getlogin() alternatively if USER environment isn't found.
--HG--
branch : HEAD |
d1bcee48225783610f0f6f639973677dd72b884a |
|
13-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
Support for IDLE extension.
--HG--
branch : HEAD |
799b32a1c5a51b2f534cd80d6c6a1c87b64d428e |
|
14-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
Added setting to limit length of custom flag names.
--HG--
branch : HEAD |
1c55875d04c444f12bdc3248d533331fdba4e95d |
|
10-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
Added client_workarounds setting, with currently one workaround for OE6.
--HG--
branch : HEAD |
4f2a24a029bf3e088cc2f804e051a1430bdb4db3 |
|
03-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
We don't need to raise SIGHUP in alarm handler, that was just a mistake in
first tests. That also means gdb won't break at SIGALRM and I can remove the
DISABLE_ALARMHUP kludge.
--HG--
branch : HEAD |
0493d225656af5f130003b7a6c5ed0ca8830e6bc |
|
31-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
wrong debug check
--HG--
branch : HEAD |
fc60e984083286229bf908fbadb896882f85dc6c |
|
30-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
Rewrote setting handling. Changed some existing settings also since POP3
support required changes anyway. POP3 seems to be really working now :)
--HG--
branch : HEAD |
fb8e400512210d49339775747a520411987d4353 |
|
27-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
some header file cleanups
--HG--
branch : HEAD |
25757faf029c369a8318349dafe952e2358df1d8 |
|
27-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
We have now separate "userdb" and "passdb". They aren't tied to each others
in any way, so it's possible to use whatever user database with whatever
password database.
Added "static" userdb, which uses same uid/gid for everyone and generates
home directory from given template. This could be useful with PAM, although
insecure since everyone uses same uid.
Not too well tested, and userdb/passdb API still needs to be changed to
asynchronous for sql/ldap/etc lookups.
--HG--
branch : HEAD |
c0435c854a0e7246373b9752d163095cc4fbe985 |
|
05-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
Naming style changes, finally got tired of most of the typedefs. Also the
previous enum -> macro change reverted so that we don't use the highest bit
anymore, that's incompatible with old indexes so they will be rebuilt.
--HG--
branch : HEAD |
65497fd5c3efa66319a1486addb272413403653a |
|
20-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
Added info_log_file setting and i_info() function to write to it. Default is
the same as failure log. Currently only logged information is client logins.
--HG--
branch : HEAD |
aff95d423ca04ac801d55bbb3e29cc18d630f97a |
|
18-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
Drop root privileges earlier. Close syslog more later in imap-master when
forking new processes, so that any errors get logged. Make sure that all
errors show up in log files - use specific exit status codes if we can't
write to log file. Make sure imap and login processes always drop root
privileges even if master process didn't ask for it for some reason.
putenv() wasn't verified to succeed - luckily we never allowed large user
given data there.
--HG--
branch : HEAD |
def516ea503a60f20d510c14d5070b7ff5bbddf4 |
|
08-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
Added buffer API. Point is to hide all buffer writing behind this API which
verifies that nothing overflows. Much better than doing the same checks all
around the code, even if it is slightly slower.
Buffer reading is still mostly done directly, that isn't such a big security
risk and I can't think of a reasonable API for it anyway.
--HG--
branch : HEAD |
314d6e095e757da9eff882c541cf3caa347ab08b |
|
03-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
imap processes open syslog fd now immediately at startup, so dropping roots
and potential chrooting won't break it.
--HG--
branch : HEAD |
c7556e6ae179d63a2e6ad6d912622848c986f316 |
|
03-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
Sanity check to make sure USER environment exists.
--HG--
branch : HEAD |
908edbc95406dfab19a0376ddc3e34ef19302038 |
|
03-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
Set process title for rawlog process.
--HG--
branch : HEAD |
9411122c42c6faaa7b26526008faf28b502537d8 |
|
01-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
DEBUG: We shouldn't verify the fds when running in pre-auth mode (breaks
with gdb).
--HG--
branch : HEAD |
962d9d2bb349ba5522247fb10a693a8a2c14c33c |
|
01-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
We use close-on-exec flag now to make sure that master process closes the
fds when executing other processes.
--HG--
branch : HEAD |
252afb852b38133098707fc64587bdfed097b87f |
|
20-Nov-2002 |
Timo Sirainen <tss@iki.fi> |
No space before "* PREAUTH" ..
--HG--
branch : HEAD |
85f9e5069ad607f6bf57bc2bd2a9b2daeff14b43 |
|
19-Nov-2002 |
Timo Sirainen <tss@iki.fi> |
Send PREAUTH if we were started without LOGIN_TAG environment (ie. not
through master process).
--HG--
branch : HEAD |
34c52d6d4f55de604f08c0bfbc11ab1266827af5 |
|
06-Nov-2002 |
Timo Sirainen <tss@iki.fi> |
Drop root privileges before handling rawlog opening.
--HG--
branch : HEAD |
94f11e46199ea913e4ae17198b3024771b1bef68 |
|
06-Nov-2002 |
Timo Sirainen <tss@iki.fi> |
Added verbose_proctitle setting: Show more verbose process titles (in ps).
Currently shows user name and IP address. Useful for seeing who are actually
using the IMAP processes (eg. shared mailboxes or if same uid is used for
multiple accounts).
--HG--
branch : HEAD |
23bf2324edeafffc16927d12a733fac9f6f34dab |
|
29-Oct-2002 |
Timo Sirainen <tss@iki.fi> |
--with-rawlog: Build support for logging traffic of user sessions. If
user's home directory contains "rawlog" directory, the input and output
traffic is written to YYYYMMDD-hhmmss-pid.in and .out files. This was made
for debugging purposes.
--HG--
branch : HEAD |
b646fdb90f75ab80ea7feca42fa2e1f8e788b004 |
|
14-Oct-2002 |
Timo Sirainen <tss@iki.fi> |
Split IOBuffer into mmaped IBuffer, file IBuffer, memory data IBuffer and
file OBuffer.
--HG--
branch : HEAD |
647afe054117804e3e156b46ada4c5bec0ac4c38 |
|
09-Oct-2002 |
Timo Sirainen <tss@iki.fi> |
ioloop_create() takes now pool-parameter. io_buffer_create_mmaped() takes
start_offset parameter instead of getting it with lseek(). Instead of using
offsets to index file, we now use record indexes (first_hole_index, tree
file).
--HG--
branch : HEAD |
868572d42fb8c1e90ea5ab6a5cc5d98f16aec3b6 |
|
26-Aug-2002 |
Timo Sirainen <tss@iki.fi> |
Added log_path and log_timestamp settings to config file. Removed -l command
line option for imap-master.
--HG--
branch : HEAD |
468bb8fbe53f28a18a47b8dc6761171d5d8ce706 |
|
24-Aug-2002 |
Timo Sirainen <tss@iki.fi> |
mbox fixes, not fully working yet but almost :)
--HG--
branch : HEAD |
66251e6ab31e5cc153fe5cae608e416dacafe9cd |
|
08-Aug-2002 |
Timo Sirainen <tss@iki.fi> |
Initial revision
--HG--
branch : HEAD |