scanner: add maildir-scan mode; improve portability
Use d_ino (struct dirent) only when available. Implement a mode for scanning just maildirs (ie. the dirs with cur / new in them). Use d_type (if available) to optimize that.
This commit is contained in:
@ -37,8 +37,19 @@ lib_mu_index_dep = declare_dependency(
|
||||
link_with: lib_mu_index
|
||||
)
|
||||
|
||||
|
||||
#
|
||||
# tests
|
||||
# test tool
|
||||
#
|
||||
executable('list-maildirs', 'mu-scanner.cc',
|
||||
install: false,
|
||||
cpp_args: ['-DBUILD_LIST_MAILDIRS'],
|
||||
dependencies: [glib_dep, config_h_dep,
|
||||
lib_mu_utils_dep])
|
||||
|
||||
|
||||
#
|
||||
# unit tests
|
||||
#
|
||||
|
||||
test('test-scanner',
|
||||
|
||||
Reference in New Issue
Block a user