forked from astroidmail/astroid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
66 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -313,13 +313,11 @@ namespace Astroid { | |
config.put ("poll.interval", 0); | ||
config.put ("accounts.charlie.gpgkey", "[email protected]"); | ||
config.put ("mail.send_delay", 0); | ||
std::string test_nmcfg_path; | ||
if (getenv ("ASTROID_BUILD_DIR")) { | ||
test_nmcfg_path = (current_path () / path ("tests/mail/test_config")).string(); | ||
notmuch_config_path = (current_path () / path ("tests/mail/test_config")); | ||
} else { | ||
test_nmcfg_path = (Resource::get_exe_dir () / path ("tests/mail/test_config")).string(); | ||
notmuch_config_path = (Resource::get_exe_dir () / path ("tests/mail/test_config")).string(); | ||
} | ||
boost::property_tree::read_ini (test_nmcfg_path, notmuch_config); | ||
has_notmuch_config = true; | ||
return; | ||
} | ||
|
@@ -370,8 +368,7 @@ namespace Astroid { | |
std_paths.attach_dir = Utils::expand(bfs::path (config.get<string>("editor.attachment_directory"))); | ||
run_paths.attach_dir = std_paths.attach_dir; | ||
|
||
/* read notmuch config */ | ||
bfs::path notmuch_config_path; | ||
/* search for notmuch config file */ | ||
char * notmuch_config_env = getenv ("NOTMUCH_CONFIG"); | ||
if (notmuch_config_env) { | ||
notmuch_config_path = Utils::expand(bfs::path (notmuch_config_env)); | ||
|
@@ -380,9 +377,6 @@ namespace Astroid { | |
} | ||
|
||
if (is_regular_file (notmuch_config_path)) { | ||
boost::property_tree::read_ini ( | ||
notmuch_config_path.c_str(), | ||
notmuch_config); | ||
has_notmuch_config = true; | ||
} else { | ||
has_notmuch_config = false; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters