Birthday ======== Notify by email if there are any birthday today or next week. This program is intended to be launched everyday. ## Required dependencies - `cabal2nix` - `nix-shell` - `cabal-install` Usage ----- Create birthdates.csv which stores birthdates: ``` # Family 30 Jan 1955, Henry, Brown 08 May 1980, Alexander, Khan # Friends 02 Aug 1976, Violet, Koval 02 Aug 1976, Jude, Martinez 23 Oct 1982, Katie, Clarke … ``` Create config.txt: ``` mail-to = john.dupont@mail.com mail-from = no-reply@service.com day-for-next-week-notification = Friday ``` Launch the following commands: ``` cabal2nix --shell . > shell.nix nix-shell -I ~ --command 'cabal configure' cabal run ``` Notification ------------ Notification are in plan english so that it is more friendly to read them. Here is an example notification with 3 birthdays today and 2 birthdays next week: ### Mail subject “Hey, there are 3 birthdays today and there will be 2 birthdays next week!” ### Mail body “Today, Katie Clarke is 19 years old, Henry Brown is 34 years old and Alexander Khan is 22 years old. Next week, Violet Koval will be 65 years old on thirsday and Jude Martinez will be 12 years old on friday.”