e16f28d4b75e86b5e2d2ca8d3fd248f35f5051ef |
|
24-Oct-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
doveadm: mail: Removed redundant cur_username field from struct doveadm_mail_cmd_context. |
2ff59d50fe18864f3532004fbbcd98f371a6e22f |
|
24-Oct-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
doveadm: mail: Removed redundant cur_client_ip field from struct doveadm_mail_cmd_context. |
a435fb28fa05a589e40be2c313bd798f14846d06 |
|
24-Oct-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
doveadm: mail: Removed struct doveadm_cmd_context function parameters that are now useless.
It can be accessed from struct doveadm_mail_cmd_context. |
1b58508a918279d773ef32518f5d5d933023c252 |
|
24-Oct-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
doveadm: Changed command contexts to contain the input, output, and connection type values directly.
Before, it used a direct pointer to the connection.
It used also flags to indicate the connection type, which is now consolidated in the connection type enum. |
9384ef699a57687ce6dbdae7d686181f4791b1e5 |
|
27-Feb-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm: Fix allow-empty-mailbox-name handling
It was supposed to be handled for metadata commands only.
Broken in 26c41874cf6019c3e39f0ed630b2a07a92b2635f |
209d29ccf7550b0731147c53a0419749270fc501 |
|
14-Feb-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm: Added "mailbox path" command
This allows easily printing a path for a mailbox, index, control dir, etc. |
26c41874cf6019c3e39f0ed630b2a07a92b2635f |
|
14-Sep-2016 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
doveadm: allow access to server attributes via empty mailbox name |
2593d6105ecd92f6cd874ed1e3c0faefb37e699b |
|
08-Aug-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm: Fixed -A and -u wildcard handling with server connections. |
0dffa25d211be541ee3c953b23566a1a990789df |
|
06-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: unsigned int:1 -> bool:1
perl -i -pe 's/unsigned int ([^,:;]+):1;/bool $1:1;/' **/*.[ch] |
c220c8cd341ee9ba78979397c5d33ccd98b5d19f |
|
17-May-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm-mailbox: Add update subcommand |
9990080334c292192954eecafbed47289f3549c3 |
|
29-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm-server: Drop privileges only temporarily when running mail commands.
This allows running mail commands for multiple users within the same doveadm
connection. |
aaa1b6bb4cd2d7f8f4e7977d61176ea1c8f7e32b |
|
28-Feb-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm: Changed v2 command APIs to be easier to use. |
50e4970035d1278597d13cac6c5ae26e7af93025 |
|
26-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm: Pass through mail_storage_service_input fields in doveadm_cmd_attributes |
4ae632e126d92dca465870ad5d7f9341025d6ba4 |
|
26-Feb-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm-copymove: Use ver2 structures |
c874dcb48156e0225ea13d4b66ecfbd32b4fd44d |
|
26-Feb-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm-search: Use ver2 structures |
ae8c89c81de5d867bd1359fb9c438dd8771210c7 |
|
26-Feb-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm-import: Use ver2 structures |
a893aaa999856b1ba6e4541890016767aaa283c7 |
|
26-Feb-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm-flags: Use ver2 structures |
977f08d645b1779527c0938bbb848b61064839c3 |
|
26-Feb-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm-expunge: Use ver2 structures |
e1d08b1c39c63de92f0e914064a508bbf6c6fcc5 |
|
26-Feb-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm-deduplicate: Use ver2 structures |
844929a7bd6e9d21f0a8cdb3a19f4620a17cdeca |
|
26-Feb-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm-altmove: Use ver2 structures |
c45a841bee3f42ec6524b8f62c3fd457115c3f97 |
|
22-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm: Define DOVEADM_CMD_MAIL_USAGE_PREFIX, which v2 commands use as their usage prefix.
This allows implementing the next changeset without kludging. |
71f4549303dc1691382748a096c2ada9d2a1a9fe |
|
22-Feb-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm-index: Use ver2 structures |
5ba6009f4e5493c4e6be9ffb3134525004a7975c |
|
22-Feb-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm-save: Use ver2 command structure |
89d31290dab6e4bde08b8a118121f008154772e9 |
|
22-Feb-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm-fetch: Use ver2 structures |
14102a0c5db8828ca8c7751ec96587fadc97a0bc |
|
19-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm: Use char type for short options instead of a string.
The ":" = "has parameters" can be determined from the type.
Also removed "?" checks since it wasn't actually used. |
0368f3b0ae3fc1ea892da5c5ec02c05c0c3989af |
|
19-Feb-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm: Use ver2 structures for all "doveadm mailbox *" commands. |
14af7be4aa26d55c341cd6efe32bb2add2c39830 |
|
19-Feb-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm: Add infrastructure for doveadm_cmd_ver2
Version 2 commands have named parameters, which also have types. This is
especially useful for reading input from HTTP/JSON API. This also simplifies
the parameter parsing for command line input.
For v2.3 the plan is to replace all the old doveadm_cmds with this new
version and get rid of the _ver2 suffixes. But for now we'll have two
versions of commands.
For backwards compatibility with old commands we have also implemented
wrappers so that v2 structs can be defined and there's a function to convert
the named parameters to old v1 style args[] string, so the old command
handlers can still be run. This will also be removed in v2.3.
This change also adds requirement for getopt_long(). It's already available
in all the Linuxes and BSDs, so this shouldn't be too big of a requirement.
Other systems can install it from an external library. |
eff34528733a7893b2914a26023aac227ef4ae7f |
|
16-Jun-2015 |
Timo Sirainen <tss@iki.fi> |
doveadm: Added doveadm_killed_signo() |
e4ba52b8290d366b5763df03be6709af3da0bc57 |
|
09-May-2015 |
Timo Sirainen <tss@iki.fi> |
doveadm: Removed unused doveadm_mailbox_find_and_sync() function |
344bb4abc3acb63d04131cb63f1503a6ca01fb40 |
|
08-May-2015 |
Timo Sirainen <tss@iki.fi> |
dsync: Stop running if SIGINT/SIGTERM is received. |
f7141101e27d766b695ef27726f755117332a58e |
|
06-May-2015 |
Timo Sirainen <tss@iki.fi> |
doveadm: Added -U <file> parameter for executing the command for all the users in the file.
This is similar to -A parameter, but instead of getting the list of users
from userdb they are read from the file. The file contains one username per
line. |
98e8f95ffee4eacca72b1bcf082f2c735592301b |
|
06-May-2015 |
Timo Sirainen <tss@iki.fi> |
doveadm-server: Invalid parameters for some commands caused crash at deinit handlers.
deinit() can be called even if init() was never called. |
e617d6e7db43c176502ac02b65d2dcb4d27103de |
|
15-Feb-2015 |
Timo Sirainen <tss@iki.fi> |
doveadm: Added "save" command to directly save mail to specified mailbox.
The mail is read from stdin. |
32c779d5d0b3dabc697408e6b5d9d2e652180b33 |
|
15-Feb-2015 |
Timo Sirainen <tss@iki.fi> |
doveadm: Added support for mail commands to read an input stream (from stdin)
This is done by calling doveadm_mail_get_input() from the command's init()
function. Currently it reads the entire input into a seekable istream with
hardcoded 5 minute timeout. The input stream sending works also through
doveadm proxying.
This could probably be used by dsync at some point to support proxying over
doveadm proxies, but that would require some more work. Especially a flag
for commands to specify that they allow non-blocking input streams. |
42681892b206d13cb87a5f526d2bf4ff3f2f4af7 |
|
09-Feb-2015 |
Timo Sirainen <tss@iki.fi> |
doveadm: Added comments to struct doveadm_mail_cmd_vfuncs |
bb25bed75eefd011138ebf1b8e033fc8ef55ca74 |
|
19-Jan-2015 |
Timo Sirainen <tss@iki.fi> |
doveadm: Added missing error handling to various mail commands.
This fixes assert-crash that happened when the commands failed, because they
hadn't set any exit_code. |
2c57ebc900742bd1119ef011b77b4910c4660cfa |
|
23-Oct-2014 |
Timo Sirainen <tss@iki.fi> |
doveadm: Added metadata set/unset/get/list commands. |
1d082a46e1676e7ec13928d588c4a25e062713cc |
|
06-Aug-2013 |
Timo Sirainen <tss@iki.fi> |
doveadm-server: Include client's IP address in logs. |
138495d02aa177230a9f1eaf90b720b4ce0f6544 |
|
18-Jun-2013 |
Timo Sirainen <tss@iki.fi> |
doveadm: Added deduplicate command.
By default it deduplicates only by GUIDs. With -m parameter it deduplicates
by Message-Id: header. |
6eb7938cd366fc087b39fc9a901e7de426131384 |
|
18-Jun-2013 |
Timo Sirainen <tss@iki.fi> |
doveadm: Added "flags" command to modify messages' flags. |
eed1ec3ac96fddb8d9e4fa2af6e760ee42801fb8 |
|
14-Apr-2013 |
Timo Sirainen <tss@iki.fi> |
Linking error fix. |
5685e60e62a8e0d368bd28a1526056f97bbba022 |
|
25-Mar-2013 |
Timo Sirainen <tss@iki.fi> |
doveadm: Added "batch" command to run multiple mail commands.
This only makes sense when the commands are run with -A or -u <usermask>, so
that the commands are run for the same user before moving onto the next user. |
0a9cb42cbb135e3200cbfbb657820304cca8ecb8 |
|
24-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
dsync: Added tcp:host[:port] target for syncing via doveadm-server. |
2a15ce3abe14099b94535f6dfc2d4ee023a7c455 |
|
17-Jan-2013 |
Timo Sirainen <tss@iki.fi> |
doveadm: Compiling fix |
a8281b7c770f4a9a842b19303083fc7f6859e756 |
|
30-Nov-2012 |
Timo Sirainen <tss@iki.fi> |
expire plugin: Don't crash when doveadm is run with proxying |
a8fe899601735459641edae975c0fa08be8482e2 |
|
16-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
Removed all the "enum foo;" declarations.
They didn't seem to be very standard. Old gcc versions warn about them and
C++ code doesn't like them. |
cdfdb67422891a44fc7d9ace6bc1a00185fd3528 |
|
23-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
doveadm copy/move: Added "user" parameter to specify the source user. |
01cb2914161db669195d3f611f13b9255aeb4c65 |
|
23-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
doveadm: Added "copy" command. |
4ee00532a265bdfb38539d811fcd12d51210ac35 |
|
19-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Array API changed: ARRAY_DEFINE(name, type) -> ARRAY(type) name
Easy way to update your existing code:
perl -i -pe 's:ARRAY_DEFINE\(([^,]+), *([^)]+)\);:ARRAY($2) $1;:' **/*.[ch] |
c14c5561e85853d91280235a7611b6050feaebb2 |
|
04-Mar-2012 |
Timo Sirainen <tss@iki.fi> |
doveadm server now returns unknown users with -NOUSER error. |
62d0db14d2c5008758983c28d242ec158baabf9e |
|
02-Mar-2012 |
Timo Sirainen <tss@iki.fi> |
doveadm: Added prerun() method for mail commands. |
5fbccc935e3f7b916aa7c6e302a212821072e83a |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
doveadm: Improved error handling. Failures should now always have non-zero exit code.
doveadm now uses sysexits.h exit codes in most places, although there are
still a lot of places where it simply returns EX_TEMPFAIL even though
something else might be better. |
ad58b50aef8125981ebdbc89513236558bcccf60 |
|
06-Jan-2012 |
Timo Sirainen <tss@iki.fi> |
doveadm: Hide "dsync-server" from list of commands. |
885a3c2287ae3e5827aa580ea06b231de38abb47 |
|
29-Dec-2011 |
Timo Sirainen <tss@iki.fi> |
Merged dsync into "doveadm dsync".
dsync symlink is installed for backwards compatibility. |
10b8040903b1d1591f1d44552ff466c8789b8814 |
|
07-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
doveadm-server: Many fixes to make it actually work properly. |
5230375627245d0c7ceb636ad10b985f4444e49e |
|
07-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
doveadm server: Fixed handling command parameters |
72bc08129fb0aaec8144cc183a998ccc426fef9e |
|
20-May-2011 |
Timo Sirainen <tss@iki.fi> |
doveadm: Added support for using local/remote {} settings. |
67cc1d2d8495c3effad6f639cd8468d0ac7ff198 |
|
20-May-2011 |
Timo Sirainen <tss@iki.fi> |
doveadm: Added doveadm_proxy_port setting to make it work with proxying. |
643a81fff9003cba13deb49a565a3c8171da524d |
|
05-May-2011 |
Timo Sirainen <tss@iki.fi> |
doveadm: Added "index" command to add unindexed messages into index/cache/fts.
The caching adds only the fields that were previously added to the mailbox's
caching decisions, so it won't do anything useful for mailboxes that user's
client hasn't accessed yet. |
b932ee7fbbec6e79b777dcc7ba613b9e99f8337b |
|
23-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
doveadm: Added "move" command for moving mails between mailboxes. |
636f017be100bce67d66fd3ae1544a47681efd33 |
|
01-Feb-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Mailbox virtual names are now in UTF-8 format, not IMAP mUTF-7.
Plugins that use mailbox names in configuration now take them also as UTF-8
rather than mUTF-7. |
51327f2489a4e0e615eb9f7d921473cf8512bb79 |
|
01-Jan-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Moved some items from mailbox_get_status() to a new mailbox_get_metadata().
The idea is now that all status items are tracked all the time after mailbox
is opened and they can always be looked up without failure. The metadata
items are looked up lazily and the lookups may fail at any time.
mailbox_get_status() can be used after mailbox_alloc() to indicate that the
mailbox doesn't necessarily have to be opened, just that the status fields
get returned.
If mailbox is already known to be open, mailbox_get_open_status() can be
used. It never fails. |
2cc88ff507e244faa63683f804833b321a62c665 |
|
23-Nov-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm server: Fixes to command/parameter handling. |
88c816e8be4e1a29bca8b67d67a92c67a33f3795 |
|
18-Oct-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm: Added import command for importing mails from other storages. |
354268abe5b47e263171aed3800c56f375a07355 |
|
18-Oct-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm: Call mail command's init() only after service storage is initialized. |
29f138b4b9bc037b21dfaa6b8e458943a99d5db2 |
|
21-Sep-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm: Added iterate_single_user mail context field. |
71df09024cea5f2faa93da3bb9513ee96ba6bf22 |
|
23-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm: Added client/server architecture support for running mail commands.
This is done when doveadm_worker_count is non-zero. |
0779e926687b319fe1bcc0f1010ba7f88023e789 |
|
23-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm: Make a couple of functions global for future use. |
1c633f71ec2060e5bfa500a97f34cd881a958ecd |
|
23-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm: Code cleanup: Moved some functions to doveadm-util.[ch] |
7ed711d973b319320da100d3e905ef7b99ed69d6 |
|
11-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm: Output is now written via "formatter" interface. The default can be changed with -f parameter.
Currently implemented 3 formatters: flow, tab and table.
--HG--
branch : HEAD |
97437f768d1a3e6134fed1971202803fd250eef2 |
|
09-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm: Don't fail immediately if some mailbox can't be opened.
--HG--
branch : HEAD |
b8b085f7bc6f1c0367802a9f00062bbbd981690d |
|
09-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm: Added mailbox status command.
--HG--
branch : HEAD |
7358272563d8ef77366447708ab0e58c0cff4151 |
|
09-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm: Mail commands now prefix each line with username if -A parameter is given.
--HG--
branch : HEAD |
bd417d416988d11a6b555b9aa57779e7ed976951 |
|
28-May-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm: Group subcommands into a single line in usage output.
--HG--
branch : HEAD |
767431e5084a037c4dbefdf30ebfa03c84b1f449 |
|
28-May-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm help and without parameters now writes output to stdout, otherwise stderr.
--HG--
branch : HEAD |
1db62753d9e3b5d71018889c8ef0a3722a307455 |
|
27-May-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm: mail commands can now be extended more easily by plugins.
Also plugins can now override the list of -A users.
--HG--
branch : HEAD |
ecbbdf594f9329fc15a182bd6c7c4a7fb144ed74 |
|
13-May-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm: Added subscribe/unsubscribe commands.
--HG--
branch : HEAD |
e09c7dc961cb9cab04ec7cc79215c2f6318fbde0 |
|
13-May-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm mailbox *: Added -7 and -8 parameters to translate between mUTF7/UTF-8 mailbox names.
--HG--
branch : HEAD |
23878bd03d1de531e3261a25598beec621351910 |
|
13-May-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm: Changed mail command API to be more easily extensible.
--HG--
branch : HEAD |
fab850a6aee4aaef4f4795bd7946807a3ba45041 |
|
12-May-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm help: Fixed to work with multi-word commands.
--HG--
branch : HEAD |
9cf4bb70f014849735aab4226691edcdf56b3271 |
|
04-May-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm: Renamed "list" to "mailbox list" and added mailbox create/rename/delete.
--HG--
branch : HEAD |
cf63dc8723b971cc80638fccbf494d961cbafc7f |
|
30-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm: Changed mail command handler API.
This should help add some new future features.
--HG--
branch : HEAD |
c24a61b4d7fa494422013c1932c1bfd22347aaa6 |
|
30-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm: Added search command.
--HG--
branch : HEAD |
4eecd3e2aadb20768a60f701e329b4345d04430c |
|
28-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm: Added expunge command.
--HG--
branch : HEAD |
97afa073e3e1e0301dc41173ec34beb08edcce50 |
|
28-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm: Reduced code duplication.
--HG--
branch : HEAD |
2649ea100281f64252f676202d8e3e575791d9a2 |
|
28-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm: Added list command for listing users' mailboxes.
--HG--
branch : HEAD |
5fb3f13537dffd15a31e997da133a721c0728af8 |
|
20-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
mdbox: Moving messages to alt storage is done done with doveadm altmove command.
The command can take an arbitrary search query listing what messages should
exist in alt storage. If the message has been copied to multiple mailboxes,
the search query must match all the instances of the message.
Since the search query can now be specified in command line, mdbox_altmove
setting was also removed.
--HG--
branch : HEAD |
94ba4820927b906b333e39445c1508a29387c3aa |
|
13-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm: Added initial code for fetch command.
--HG--
branch : HEAD |
096f030bbe60f09efb50ced1df2ad88c50b802de |
|
07-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm: Added more consts to code.
--HG--
branch : HEAD |
a9efdb661eb7a8a33aacfdcc3486dcc675a21543 |
|
04-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm: Marked some functions ATTR_NORETURN.
--HG--
branch : HEAD |
0f9a8663b0ff6fe30389d02284a2b002c40914eb |
|
26-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
doveadm: Fixed printing help for purge and force-resync commands.
--HG--
branch : HEAD |
a6ab8f00351265e35b79f3a22b1f5a4978ae5c35 |
|
08-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
Moved doveadm to a separate directory and made it a bit more easily extensible.
--HG--
branch : HEAD |