diff --git a/src/Helpers/Addresses.php b/src/Helpers/Addresses.php new file mode 100644 index 0000000..a31710e --- /dev/null +++ b/src/Helpers/Addresses.php @@ -0,0 +1,42 @@ +getDirectoryPath() . $filename)) { + return include $file; + } + + return []; + } + + /** + * Get the directory name containing the addresses file. + * + * Defaults to a .gmail-filters directory within the user's home directory. + * + * @return string + */ + protected function getDirectoryPath() + { + return getenv('HOME') . DIRECTORY_SEPARATOR . self::DIRECTORY_NAME . DIRECTORY_SEPARATOR; + } +}