bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
2454dfa32c93c20a8522c6ed42fe057baaac9f9a |
|
01-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2017. |
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)" |
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] |
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/' |
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> |
432f2b63d375a198b7c6bfebd40bd64c4146b771 |
|
24-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
imap: Return SPECIAL-USE flags for LSUB command. |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
94cd1e3ed5391a091da5589db438d732eb9dbf0c |
|
21-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
imap: Allocate LIST patterns from command pool so they don't get corrupted in long runs. |
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. |
9b706b345064ce8e8a657f54633f009a101298ea |
|
29-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
If prefix="" namespace isn't defined, autocreate it as an unusable namespace.
This avoids having to handle mail_namespace_find() errors all over the
place. Instead now the mailbox accesses will simply fail. |
44f93baa7b8dca7d00bf187cd3db1c15eed384d2 |
|
24-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
Use imap_append_astring() instead of imap_append_string() where possible. |
686ad6d723004b807fd558f3ef9d1f88afa7e127 |
|
24-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
Use imap_append_*string() instead of imap_quote_append*() where possible.
This makes it clearer what types of output should be sent. |
ca26874b18894dcba306a8f6e009d11c683a9e09 |
|
03-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
imap: LIST (SPECIAL-USE) shouldn't send INBOX reply. |
9a312bf5e78070e466b77813576376525781af56 |
|
02-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
Various fixes to listing mailboxes.
Some of these are a bit kludgy, v2.2 has a larger rewrite of the code to
implement them more nicely. |
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. |
d05913105ec3d3fa89fbfc3132d586a4efbd66c7 |
|
04-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
LIST: Fixes to handling subscriptions |
3e0bae44b65f5c46989fcef3d1e07203f496327e |
|
02-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
Renamed enum namespace_type to enum mail_namespace_type |
7174e94025e4d156aea9a27c7eb674a7068cb3a0 |
|
30-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Moved most of the IMAP LIST code to lib-storage.
Also removed MAILBOX_LIST_ITER_SHOW_EXISTING_PARENT flag, since there wasn't
any clearly good way to handle it. Some clients got confused when they saw
that foo/ mailbox was returned with \Noselect flag. Either they thought that
the mailbox was named foo/ or that foo was \Noselect. Pretty much the only
sane way to handle this would be to not make return \Noselect and to treat
foo and foo/ as equivalent in all commands, but that might cause trouble
with ACLs and similar checks.. |
2c8dd018fc726ccb12e640a55406b6d791f7f3b3 |
|
23-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
imap: Fixes to handling UTF-8 namespace prefixes |
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] |
1b302c5f04a1fb49731f9e103586ad6c409b1ca8 |
|
14-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
imap LIST: Don't set \haschildren flag for namespace prefix if it has list=no |
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. |
4f5f48fcfacc47329428c82e0bc98d6fdb7b40b4 |
|
13-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
imap: Made STATUS handling API more flexible. |
402e999a878e0cc41a0afb830fea0a93afc75f0d |
|
11-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Renamed struct mailbox_info.name to vname. |
30bbe0d3d896f426a2ef06f8fb7ac941299c403f |
|
31-Jul-2012 |
Timo Sirainen <tss@iki.fi> |
imap: Fixed LIST handling with reference parameter.
For example "LIST shared/ %" failed to list shared/user namespace prefix. |
a4f2e420ebf0478b92df9a8cb5bd2a36f3817a42 |
|
02-Jul-2012 |
Timo Sirainen <tss@iki.fi> |
imap: Mailbox names in STATUS replies were sent as UTF-8 instead of mUTF-7. |
31a574fda352ef4f71dbff9c30e15e4744e132c0 |
|
25-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Added array_append_zero() to write a zero-filled record to an array.
Replaced (void)array_append_space() calls with it. |
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. |
66e01d59677f41a36e0e8d4b568666e69a8a8efd |
|
02-Apr-2012 |
Timo Sirainen <tss@iki.fi> |
imap: Enabling SPECIAL-USE selection option should also enable the same return option. |
e7afe6e3c56684dd203036353a937ebee0d064f6 |
|
15-Mar-2012 |
Timo Sirainen <tss@iki.fi> |
imap: Use mailbox_exists() to find out if namespace prefix is selectable or not.
mailbox_list_mailbox() should be treated as an internal function, since
ACLs don't apply to it. |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
e3a4539a3dde8e38ac1f6a08f13f5e377256f0f2 |
|
04-Jan-2012 |
Timo Sirainen <tss@iki.fi> |
Added MAILBOX_LIST_ITER_SELECT_SPECIALUSE option and enable it for IMAP.
RECURSIVEMATCH option doesn't currently work properly with it. |
ec82a9ba81e4dae822694eb58da44753fd58a384 |
|
12-Dec-2011 |
Timo Sirainen <tss@iki.fi> |
imap: Convert LIST/LSUB patterns from mUTF-7 to UTF-8 for internal representation. |
ed354926406e28254b581f821bb052f38d9c14e8 |
|
02-Dec-2011 |
Timo Sirainen <tss@iki.fi> |
Implemented IMAP SPECIAL-USE extension. |
34e4d771f71518a419342cf21508b64b20d2c416 |
|
16-Sep-2011 |
Timo Sirainen <tss@iki.fi> |
Fixes to listing mailboxes/subscriptions in shared namespaces. |
1c3e6a4a7557f23f02abacbef9847dd4346f8553 |
|
12-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
imap: Added tb-lsub-flags to imap_client_workarounds.
Patch by Bruno Tréguier. |
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. |
c5f13b6f0217e044bb97370331e8286846c661e0 |
|
02-Feb-2011 |
Timo Sirainen <tss@iki.fi> |
IMAP LIST: Never return subscribed children state if RECURSIVEMATCH isn't specified.
Not even when backends give it automatically. |
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. |
c0a87e5f3316a57e6f915882fa1951d0fbb74a61 |
|
20-Jan-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: mailbox_alloc() now takes a virtual mailbox name and other related API changes.
All storage_name <-> vname conversions now go through the same two
mailbox_list methods. This has many benefits, such as:
* listescape plugin is now much simpler and bugfree
* allows changing lib-storage API to use UTF-8 mailbox names in future
* allows creation of "mailbox aliases" plugin |
676bf7a0b210a92c17967b655368c01122c86d9c |
|
02-Nov-2010 |
Timo Sirainen <tss@iki.fi> |
imap: Fixed LIST-STATUS when listing subscriptions with subscriptions=no namespaces. |
67d4dc4c96ff696aedce32fb0571b6d5ff91ae0f |
|
13-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
imap: Fixed checking if list=children namespace has children. |
9e3c348e665b90f1d5faa208f5b061436eaa5ff4 |
|
12-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Show "foo/" style replies only for IMAP LIST command.
Internally those replies just mess up things. |
c07e35cfc9587fc7589cbc1db0daeeb828456b2b |
|
11-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Removed code related to listing mailboxes with non-virtual names.
The non-virtual listing code would have already crashed with assert. |
eb64c3586d854cddd693f0b811d897399076a441 |
|
06-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
Fixes to INBOX sharing.
NAMESPACE_FLAG_INBOX was split to two flags: _FLAG_INBOX_USER (this namespace
has the user's own INBOX) and _FLAG_INBOX_ANY (namespace has INBOX, either
user's own or another user's).
--HG--
branch : HEAD |
c19f0dd4d274c15ef7b592dcc9d8c2c8c1e22abe |
|
17-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
mailbox list iter: Require MAILBOX_LIST_ITER_VIRTUAL_NAMES flag.
The backend code will be simplified later by removing two code paths for
virtual/non-virtual names.
--HG--
branch : HEAD |
c24bb6b8e2e39c19687b0b43e1beafd5d2aa9488 |
|
28-May-2010 |
Timo Sirainen <tss@iki.fi> |
imap: LIST now handles better if INBOX is in a different namespace than prefix=""
--HG--
branch : HEAD |
c2fbbf7515aa419dc8b2d62a3c2bb0471d51a391 |
|
05-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
lib-imap: Changed imap_arg accessing APIs.
The new one is easier for both coders and static analyzers.
--HG--
branch : HEAD |
8bb360f9e5de1c25e4f875205bb06e8bf15dae14 |
|
05-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
Removed dead code.
--HG--
branch : HEAD |
a959856efd1ed4c40fd5096910d43a2d9e7900a2 |
|
05-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
LIST-STATUS: When listing subscriptions, don't return STATUS for unsubscribed parents.
--HG--
branch : HEAD |
fbd918f47f591f8084fd52b207ef29515ddd11b9 |
|
09-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: STATUS_GUID moved to mailbox_get_guid() that can fail.
--HG--
branch : HEAD |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
5809410b9d2504a6ec2bd9e24c0dcc3a32135941 |
|
23-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
imap: LIST "" inbox shouldn't crash when using namespace with "INBOX." prefix.
--HG--
branch : HEAD |
f62114b9566fbe5cf9a8d551429931422aff947d |
|
08-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
imap: Fixed listing namespaces with multiple hierarchy separators.
--HG--
branch : HEAD |
7bd72e4deca3cbf757dd1ea298486d9f3bc24226 |
|
02-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
Use array_foreach() more.
--HG--
branch : HEAD |
dcd4d96ba85264382f2f928f139607db87975f03 |
|
23-Nov-2009 |
Timo Sirainen <tss@iki.fi> |
imap: Don't send NONEXISTENT resp code to non-delete operations.
--HG--
branch : HEAD |
43385757d7d83e3ab2cd02be7b564cdc5183a2b5 |
|
05-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
LSUB "" %: List namespace prefix if namespace has separate subscriptions.
--HG--
branch : HEAD |
1c885b304f060e3ac4fe04195a2f53457d0ac99e |
|
03-Aug-2009 |
Timo Sirainen <tss@iki.fi> |
Allow namespace prefix to be opened as mailbox, if it already exists.
--HG--
branch : HEAD |
781c573fcdc3d9f8be55c514eb506c2c66879d91 |
|
12-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
IMAP: Fixed LIST RETURN (STATUS ..) if namespace separator wasn't storage separator.
--HG--
branch : HEAD |
eed1586863e24e0c2df15d30fbc4366c6377c9d6 |
|
12-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
IMAP: Fixed untagged error messages for LIST RETURN (STATUS ..) failures.
--HG--
branch : HEAD |
2615df45a8027948a474abe5e817b34b0499c171 |
|
03-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
Initial commit for making mail_storage:mailbox_list to be from 1:1 to n:n.
This will allow namespaces to share the same storage and a single namespace
to have multiple storages (multiple mailbox formats). Neither works
currently, and this commit probably breaks some things.
--HG--
branch : HEAD |
b2a3c00309849aa9799b366a571401dbe15e3da2 |
|
17-May-2009 |
Timo Sirainen <tss@iki.fi> |
LIST: Previous prefix="", list=no change broke listing other list=no namespaces.
--HG--
branch : HEAD |
8b8f95b9ad0c0af4bceeadfaad7aba245397697c |
|
09-May-2009 |
Timo Sirainen <tss@iki.fi> |
Allow prefix="" namespace to have list=no and make it work in a somewhat useful way.
Based on patch by Mark Washenberger.
--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 |
aef95687bc8d78e14a6e6746cd4ef061f158fb9a |
|
20-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
namespaces: list=children wasn't working correctly.
--HG--
branch : HEAD |
96e97fde09b1e8ea8ea97a1263b3658bf478fdbf |
|
03-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
imap: Fixed LIST with namespace prefixes that have multiple hierarchies.
--HG--
branch : HEAD |
45312f52ff3a3d4c137447be4c7556500c2f8bf2 |
|
06-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2009.
--HG--
branch : HEAD |
4ac2d38239cea8090154e17faefd77de5a71d882 |
|
21-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
Added list=children option for namespaces.
--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 |
6d842c55d10ba10c87cab7d9c3e127fda7c54232 |
|
20-Jul-2008 |
Timo Sirainen <tss@iki.fi> |
LIST didn't show INBOX if list patterns didn't match namespace prefix.
--HG--
branch : HEAD |
26911c5c36ddd6d793441969cfd129c1f6f648af |
|
10-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
LIST: Renamed X-STATUS return option to STATUS, since the first draft of the
standard was released now. The capability isn't added yet though.
--HG--
branch : HEAD |
cd5a3d256bceadbd591a13493ac04683f9c8e509 |
|
24-May-2008 |
Timo Sirainen <tss@iki.fi> |
LIST X-STATUS: Send LIST reply before STATUS reply.
--HG--
branch : HEAD |
04033d75ab92dd6e4751edecb552d0391edb5a2c |
|
24-May-2008 |
Timo Sirainen <tss@iki.fi> |
LIST-EXTENDED: CHILDINFO shouldn't be quoted.
--HG--
branch : HEAD |
e329e422a01b7937b6f74eab9f4baf13293d0c6c |
|
04-May-2008 |
Timo Sirainen <tss@iki.fi> |
LIST-EXTENDED options were ignored.
--HG--
branch : HEAD |
4bb3372220fbd6393396ff6eda4159d7a1d5c61b |
|
16-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
Don't convert real separators to virtual separators. The mailbox listing
code already did it for us.
--HG--
branch : HEAD |
fbab7f128edf0684a8fbedb1dbec4206d84b5328 |
|
16-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
Don't convert real separators to virtual separators. The mailbox listing
code already did it for us.
--HG--
branch : HEAD |
19e8adccba16ff419f5675b1575358c2956dce83 |
|
11-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
Renamed T_FRAME_BEGIN/END to T_BEGIN/END. Removed T_FRAME() macro and
replaced them with T_BEGIN/END calls. T_FRAME() made it difficult to debug
code with gdb.
--HG--
branch : HEAD |
5ee58e8be70daf745534310298362fd4186d7db7 |
|
12-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Added "command state" for running commands. Use it instead of some bitfields
to test for the current state.
--HG--
branch : HEAD |
76b43e4417bab52e913da39b5f5bc2a130d3f149 |
|
01-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2008.
--HG--
branch : HEAD |
eddd9bf1a1369aea4a2715f6be1137da6d17d293 |
|
05-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
Replaced t_push/t_pop calls with T_FRAME*() macros.
--HG--
branch : HEAD |
1fbe70b7db75e3f892da0cd42702ea6ca782e365 |
|
25-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
If client tries to use unknown list-extended options, fail with BAD.
--HG--
branch : HEAD |
ef50336eefcb9ba99f73c6af37420eaf8857a39b |
|
28-Oct-2007 |
Timo Sirainen <tss@iki.fi> |
Fixes to handling namespace prefixes and real!=virtual separator. Added a
new MAILBOX_LIST_ITER_VIRTUAL_NAMES which specifies if mailbox listing
should be using virtual or real mailbox names.
--HG--
branch : HEAD |
32e1554df9abca74fef0af2ba2e4c37e90a06cd0 |
|
21-Oct-2007 |
Timo Sirainen <tss@iki.fi> |
Added subscriptions setting to namespaces to specify if it should handle
subscriptions itself or if the parent namespace should handle them.
--HG--
branch : HEAD |
72ececf72e9963924b32569e7cda89e47bcb3e0e |
|
21-Oct-2007 |
Timo Sirainen <tss@iki.fi> |
Send namespace prefix LIST reply for list=no namespaces also if doing LIST
"" prefix.
--HG--
branch : HEAD |
a5335779cad1ee1e2a5c38b181eb66eb8ecb809e |
|
20-Oct-2007 |
Timo Sirainen <tss@iki.fi> |
Fixes for listing namespaces with prefixes and real != virtual separator.
--HG--
branch : HEAD |
e2163b3ae3a800a1b4ea755450171733e2fc7bc9 |
|
24-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Compiler warning fixes
--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 |
00395881d1dbbf37178d1efc193a7e9804aaff3b |
|
15-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Removed _ prefix from all public APIs.
--HG--
branch : HEAD |
b2416534352f1a0f336e75fbfd12c831627b3518 |
|
27-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
Don't crash if mailbox named INBOX is listed in prefixless namespace, but
which doesn't have inbox=yes. Instead the mailbox is simply not listed.
--HG--
branch : HEAD |
0d331bf0620f2ecfc1a920730430440534090536 |
|
15-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Added X-STATUS (..) return option to send STATUS replies to client for
listed selectable mailboxes.
--HG--
branch : HEAD |
778b0df2817e920f7cb6c4a5d4729ec037d3eaed |
|
15-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
code cleanups
--HG--
branch : HEAD |
19bddd1e461cece08ceafbe89c391868bf758f3a |
|
15-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Let lib-storage handle matching namespace prefixes as well.
--HG--
branch : HEAD |
46b751b16486fdc3b15f89a6beec43f52ae9a029 |
|
15-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
LSUB: If pattern doesn't end with %, don't show extra unsubscribed mailboxes
--HG--
branch : HEAD |
d92f33f13830ba23d814342bf3ea8db721a15bb1 |
|
15-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Added support for multiple mailbox list patterns.
--HG--
branch : HEAD |
542ddc71e8c0951f3d7955d35c50610bb2d21b98 |
|
29-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Use explicit IMAP_MATCH_* comparisons for imap_match() instead of assuming
something about the values.
--HG--
branch : HEAD |
533bfba437e4120aa29dd45bca2aa87e30ee28a2 |
|
29-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
s/mask/pattern/ for mailbox listing.
--HG--
branch : HEAD |
7c7a364a72d4edd1701df72fee835c09db19d933 |
|
29-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Changed imap-parser API to use standard arrays for lists instead of its own
imap_arg_list struct.
--HG--
branch : HEAD |
f1e9611e93dcb3b745c1904029084fa81644e1b3 |
|
29-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Added more consts to imap-parser API
--HG--
branch : HEAD |
e5ad2cfb8cc16ae565fb18695be053e9b7ed55e9 |
|
29-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
LSUB \Noselect fix
--HG--
branch : HEAD |
78e13ef7fd5496541d7077dd0b23266ab1af0e52 |
|
29-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Parse LIST-EXTENDED parameters more correctly.
--HG--
branch : HEAD |
18ffea71d9beeec3cc1d400f751926ee72807f62 |
|
29-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Mailbox listing API changed to support more features. Used to implement
support for half of LIST-EXTENDED.
--HG--
branch : HEAD |
23f7bef8705e15942825b8e0301017311d273a91 |
|
27-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Don't use subscriptions with hidden namespaces.
--HG--
branch : HEAD |
c32be1372bc5d07964eb5c1eaaaf0b6c18032d69 |
|
27-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Handle listing flags correctly for all namespace prefixes.
--HG--
branch : HEAD |
413f542d76761a9e9d5db201212db1ff59a670c4 |
|
27-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Fixes for last changes.
--HG--
branch : HEAD |
296dca49e4fe6046e0328c67ef1cf4b8077dec9c |
|
27-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Moved several namespace booleans to a flags field. Removed unused
subscriptions boolean.
--HG--
branch : HEAD |
61e84692827b6a64912343f515c984853021483a |
|
27-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
mailbox_list_iter_next() returns now const pointer.
--HG--
branch : HEAD |
48664786a944ebe33e35e09b6bb04b7093a0b702 |
|
27-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Code cleanups
--HG--
branch : HEAD |
71fa0bcefbb888ae6c196e1dc5e0c632aa2d8217 |
|
27-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Code cleanups
--HG--
branch : HEAD |
14376e0584c178306c400750352869cf2aaf6fee |
|
27-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Make sure all listable namespaces use the same separator. If there's no ref
or "" namespace, use that separator instead of INBOX's.
--HG--
branch : HEAD |
d03007e5a453abcbd9a133108ed480ab38704886 |
|
25-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Added list setting to namespaces to control whether mailboxes in the
namespace are visible with LIST command without giving the namespace prefix
(eg. does LIST "" * show the mailboxes or not)
--HG--
branch : HEAD |
a185fddd0a6f9850cae449a67bd6ba43e45e3cca |
|
25-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Put UW-IMAP emulation back after all
--HG--
branch : HEAD |
90c9f16641e81bfbc683fdb50227848aaa4394fa |
|
25-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Cleaned up LIST ref "" handling. Removed some UW-IMAPisms, they shouldn't be
needed.
--HG--
branch : HEAD |
cc5f10a56e192268de110da9b382d04ddc178891 |
|
13-May-2007 |
Timo Sirainen <tss@iki.fi> |
Removed mail_storage_set_list_error(). Handle the errors directly.
--HG--
branch : HEAD |
1aedd65760a63d6295c2e0e5ba40d45c1c733ddc |
|
17-Apr-2007 |
Timo Sirainen <tss@iki.fi> |
fix
--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 |
12ac6e5e57b39f063f63777b86eaf3aa16436206 |
|
27-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
LIST "" "" should return something even if we don't have a namespace with
empty prefix. Use INBOX namespace's separator then.
--HG--
branch : HEAD |
5e186e2bbc5e268eabcecebc28c538ddb757af6b |
|
15-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Last change caused LIST replies to have extra spaces
--HG--
branch : HEAD |
5f35c48094480edab5f3212766e95538bbf150b9 |
|
15-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Use less memory when listing lots of mailboxes
--HG--
branch : HEAD |
770cbd7d71f9e97256ecfcd8bfc134f7f048dafc |
|
14-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Added casts to some enums to avoid compiler warnings.
--HG--
branch : HEAD |
11a4e8d71341af2100aa5864941cc3900a285d96 |
|
06-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
With namespace prefixes LSUB prefix.* listed INBOX.INBOX.
--HG--
branch : HEAD |
0329e6102f15e29ffb9e149c56fdc630232599f0 |
|
23-Feb-2007 |
Timo Sirainen <tss@iki.fi> |
If prefix.INBOX has children and we're listing under prefix.%, don't drop
the prefix.
--HG--
branch : HEAD |
81242bc40801fab57cb62c443288df9d627fb3c1 |
|
05-Feb-2007 |
Timo Sirainen <tss@iki.fi> |
If namespace has a prefix and inbox=no, don't list prefix.inbox if it
happens to exist when listing for %.
--HG--
branch : HEAD |
42507d758b053bb483de58fba55c73a9eb5d3fba |
|
20-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
Dovecot is now able to execute multiple commands at the same time.
Practically this means commands: FETCH, LIST, SEARCH and syncing output for
all commands. For example it's possible that doing two FETCH commands at the
same time makes their output mixed together.
Non-blocking SEARCH is done by doing search for 20 mails at a time, and then
checking if another command is pending.
Also added X-CANCEL <tag> command to cancel running commands.
--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 |
6e402bc745c6cd3e0b5939ff247ad2641c027eb7 |
|
02-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
If we had only prefixed namespaces and we listed for "%", INBOX's flags
weren't correct and it wasn't shown at all with LSUB.
--HG--
branch : HEAD |
6c462846d78e139fccfefb7c6ae0d3077b525c2d |
|
08-Oct-2006 |
Timo Sirainen <tss@iki.fi> |
Handle INBOX-prefixed namespaces better. Avoid duplicate INBOX replies if
namespace prefix is given.
--HG--
branch : HEAD |
e524897d3ff3b25bfa6f635f2076eae762374b55 |
|
07-Aug-2006 |
Timo Sirainen <tss@iki.fi> |
When listing INBOX from inbox=yes namespace, don't insert the
namespace prefix
--HG--
branch : HEAD |
8e3a0cd9ab7e09d4d485cce9e145029681c3da93 |
|
06-Aug-2006 |
Timo Sirainen <tss@iki.fi> |
Fixes to handling INBOX in LIST.
--HG--
branch : HEAD |
c4de36c548b3812db1f7eb122f471fab877d1639 |
|
06-Aug-2006 |
Timo Sirainen <tss@iki.fi> |
Don't show INBOX if reference parameter is given.
--HG--
branch : HEAD |
8d80659e504ffb34bb0c6a633184fece35751b18 |
|
28-Jun-2006 |
Timo Sirainen <tss@iki.fi> |
Array API redesigned to work using unions. It now provides type safety
without having to enable DEBUG, as long as the compiler supports typeof().
Its API changed a bit. It now allows directly accessing the array contents,
although that's not necessarily recommended. Changed existing array usage to
be type safe in a bit more places. Removed array_t completely. Also did
s/modifyable/modifiable/.
--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 |
73adaed66be14dd4acb9c515316cae48d69d2c4d |
|
14-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
Fixes to returning namespace root with "" mask.
--HG--
branch : HEAD |
d208f7e2d9de54102a2b2ca7cef94011b7eac041 |
|
14-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
Cleaned up and added comments. Also added some kludging so that listing
namespace prefix itself with and without trailing separator works.
--HG--
branch : HEAD |
6ef7e31619edfaa17ed044b45861d106a86191ef |
|
13-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
Added "bool" type and changed all ints that were used as booleans to bool.
--HG--
branch : HEAD |
c60578cb9dc540ab9672c1d3b2b47bdcc85e2e2b |
|
12-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
Fixes to handling namespace prefixes.
--HG--
branch : HEAD |
03c85c18720c9309ae1207649fd6d8a12d44a10a |
|
17-Apr-2005 |
Timo Sirainen <tss@iki.fi> |
LSUB was returning namespace prefixes.
--HG--
branch : HEAD |
d84ee3fb73403edd1bdc4fbec9a78c1ca0a07ba3 |
|
18-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
We weren't returning "root name" properly with LIST <ref> "".
--HG--
branch : HEAD |
e60a349c641bb2f4723e4a395a25f55531682d2b |
|
05-Feb-2005 |
Timo Sirainen <tss@iki.fi> |
Moved command-specific variables from struct client to struct
client_command_context and changed code to use it.
--HG--
branch : HEAD |
28bef1cec189874df1429cdfcd1c68f35d2b3338 |
|
11-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
Don't force showing INBOX when listing only subscribed mailboxes.
--HG--
branch : HEAD |
e7a0e520d57efa969c075a391e6e6b98e5fa8293 |
|
11-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
Added MAILBOX_LIST_INBOX flag. Do the special cased INBOX handling only if
it's set.
--HG--
branch : HEAD |
58eb8cb6d545ee90e7b198eeeedef72bd524b56d |
|
02-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
Fix for having INBOX/ namespace.
--HG--
branch : HEAD |
d60b28334b05f1f31a028907f13fd9c1dd3fd6f2 |
|
18-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
LIST command interrupts itself when output buffer gets full and continues
again when there's space.
--HG--
branch : HEAD |
a988180101f4b987bdc988855f3282d3d8db5be8 |
|
27-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
LSUB sent LIST replies instead of LSUB.
--HG--
branch : HEAD |
3211d04d92d65d4ea844e6c6d7e123775147b9b2 |
|
26-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
fix
--HG--
branch : HEAD |
b33e0fb975a0bcff909b87bc43c3dc0e1a75e4aa |
|
26-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
fix
--HG--
branch : HEAD |
84f80d9231b6ddc80ebfae425fd3674620fdf746 |
|
22-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
Moved namespace and hierarchy separator handling to imap-specific code. LIST
now shows non-hidden namespaces in the LIST reply.
--HG--
branch : HEAD |
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834 |
|
27-Apr-2004 |
Timo Sirainen <tss@iki.fi> |
importing new index code. mbox still broken.
--HG--
branch : HEAD |
e6724fcdaa15c15e3c9d4992fa0ff549cbb130e8 |
|
06-Jan-2004 |
Timo Sirainen <tss@iki.fi> |
LIST: If reference parameter is given, get the namespace from it.
--HG--
branch : HEAD |
218ad257435470e78869d20e3dc8f15d51610953 |
|
25-Nov-2003 |
Timo Sirainen <tss@iki.fi> |
LSUB should never show \HasChildren flags.
--HG--
branch : HEAD |
fa1c552535308a3003efa488ea849bf265f7a2d0 |
|
17-Nov-2003 |
Timo Sirainen <tss@iki.fi> |
Children/NoChildren -> HasChildren/HasNoChildren
--HG--
branch : HEAD |
988b735ce4cc016975d909b9ad3a19335e5e0239 |
|
06-Sep-2003 |
Timo Sirainen <tss@iki.fi> |
whops, left extra stuff.
--HG--
branch : HEAD |
8ad3e29a788650f48c25c892518e739a9218ce1b |
|
06-Sep-2003 |
Timo Sirainen <tss@iki.fi> |
If LISTEXT is used and CHILDREN info isn't wanted, don't send it.
--HG--
branch : HEAD |
c3cc73406454e17500cd03b20c73931f6763a020 |
|
27-Jul-2003 |
Timo Sirainen <tss@iki.fi> |
A bit more temporary kludging
--HG--
branch : HEAD |
4ff4bc25c29160e24339205ce36c9d2d96e7e1ff |
|
27-Jul-2003 |
Timo Sirainen <tss@iki.fi> |
fixes
--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 |
05ea76547573aec80f1b58654bce7b850dd99501 |
|
27-Jul-2003 |
Timo Sirainen <tss@iki.fi> |
API change: Mailbox list sorting must now always done by storage itself if
it's needed.
Maildir listing rewritten.
--HG--
branch : HEAD |
4393e184152643728342c7f020dbb9779d30748a |
|
23-Jun-2003 |
Timo Sirainen <tss@iki.fi> |
LIST and STATUS replies shouldn't strip tabs and spaces from mailbox names.
--HG--
branch : HEAD |
c2820b44812b2da7f3b172bb3521b623a3f84f2b |
|
04-Jun-2003 |
Timo Sirainen <tss@iki.fi> |
Give more verbose protocol level errors + some fixes.
--HG--
branch : HEAD |
839c67ba93b58e394daa435f7b99587eec97cefb |
|
02-Apr-2003 |
Timo Sirainen <tss@iki.fi> |
Mailbox names are now sent through imap-quoter instead of just escaping it.
This means that mailbox names that would require escapes are instead sent
as literals now.
--HG--
branch : HEAD |
63bc8e680c583e6108a0adcc8eb871ebfa0b3e2a |
|
20-Mar-2003 |
Timo Sirainen <tss@iki.fi> |
More kludgy LIST fixes for maildir subfolders
--HG--
branch : HEAD |
6b3078260dae9082e422d2f72fa225db73eb0821 |
|
20-Mar-2003 |
Timo Sirainen <tss@iki.fi> |
LIST "" foo.% doesn't anymore reply "foo." folder.
--HG--
branch : HEAD |
41ec59c287e7852bab106c4681651e9ed02adf9d |
|
27-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
Maildir LIST \Children fixes.
--HG--
branch : HEAD |
a8dc7e6ff501ce5fce4145d4cd6edf97d0ade9e2 |
|
24-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
placeholder -> noselect change broke LIST "" "foo/%" not showing foo/.
--HG--
branch : HEAD |
03bcde0e60310378f78ddcf3696d715bdffbf456 |
|
24-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
Use \PlaceHolder only when listing subscriptions.
--HG--
branch : HEAD |
977de65fe54e23ff5675d5e16cfcfdf06cea1a9b |
|
24-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
Added support for CHILDREN and LISTEXT extensions.
--HG--
branch : HEAD |
ce555be496d79e08ca1e0230bf08b502fbf7c56e |
|
20-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
Removed list-sort workarounds. It's pretty much needed for maildir listing.
Also added some more complexity and kludging to make everything work
correctly.
--HG--
branch : HEAD |
b79fcd97b1ce9b413139f71170dc821d3ee3bdee |
|
19-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
Rewrote LIST, LSUB and subscription file handling. LIST replies aren't
sorted anymore by default, it can be enabled with client_workarounds =
list-sort.
--HG--
branch : HEAD |
4d6db8ab0691739342370dab56b51b04b5137ca3 |
|
17-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
Remove the mailbox globbing code from here. It should have been done
already by mail_storage. Also show parent mailboxes before children, not
after. (Patch by Peter Kaas)
--HG--
branch : HEAD |
f923659c0e5298263d80622c99f4dc4132b4675b |
|
11-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
Naming change for function typedefs.
--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 |
4a6f9ed8e5412508dcba1eabb58a3680ad5e9b68 |
|
03-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
Rewrote rfc822-tokenize.c to work one token at a time so it won't uselessly
take memory, maybe also a bit faster. This caused pretty large changes all
around.
Also moved all string (un)escaping code to lib/strescape.c.
--HG--
branch : HEAD |
be4a8864cdac8782f59ee3a7586a23440a1e2a32 |
|
02-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
Handle LIST A B same way as LIST "" A.B
--HG--
branch : HEAD |
2b619d427addefb7d1660b23a528259d162a5f67 |
|
21-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
We don't have separate read-write pools, so renamed pool_create(.., FALSE)
to pool_alloconly_create().
--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 |
f1adaf1ec4c6baa0de2f4e01b73e0639c3a5044f |
|
04-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
Send INBOX always uppercased with LIST and LSUB.
--HG--
branch : HEAD |
450c93a252fea6c0ceb9353af20c2d22ab62d717 |
|
03-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
Rewrote imap_match() function. Maybe not as fast as before, but at least
it's understandable now. This was required to fix listing mbox mailboxes
where we wanted to match partial paths (it was pretty buggy before).
--HG--
branch : HEAD |
caffa4b1d81af4d48c1eedba2103f291beb0f62d |
|
26-Nov-2002 |
Timo Sirainen <tss@iki.fi> |
Use more warnings with GCC by default. Fixed several warnings.
--HG--
branch : HEAD |
3b6d8f2ac45bd381d9c5bd0519a750b41955ea7f |
|
29-Aug-2002 |
Timo Sirainen <tss@iki.fi> |
Don't send \Children or \NoChildren flags for LIST anymore, we never
supported the CHILDREN draft properly, and it's not becoming standard
anyway. Get it back in when/if we add support for LISTEXT draft.
--HG--
branch : HEAD |
1215bc4d7e747846f282cf710e61f3768e69238d |
|
22-Aug-2002 |
Timo Sirainen <tss@iki.fi> |
s/user_data/context/ and some s/Data/Context/
--HG--
branch : HEAD |
e403d34ae6904cd8d9f72345a2f2dc017d3b46aa |
|
22-Aug-2002 |
Timo Sirainen <tss@iki.fi> |
Message data is parsed in blocks (no longer entirely mmap()ed). Several
IOBuffer changes. All mixed signed/unsigned comparisions were fixed so code
can now be compiled with gcc's -W flag. mbox support is broken currently,
and there's most likely several other problems too.
--HG--
branch : HEAD |
66251e6ab31e5cc153fe5cae608e416dacafe9cd |
|
08-Aug-2002 |
Timo Sirainen <tss@iki.fi> |
Initial revision
--HG--
branch : HEAD |