X-Git-Url: https://git.cweiske.de/bdrem.git/blobdiff_plain/be516011d0da9b3ede5742428d280694e096532d..6d41bc6e53c1e9d909c9aa7d4bc5d293b6adb52a:/README.rst diff --git a/README.rst b/README.rst index c910740..e503d3b 100644 --- a/README.rst +++ b/README.rst @@ -3,7 +3,8 @@ bdrem - Birthday reminder by mail ********************************* Birthday reminder that sends out e-mails. -It can also generate ASCII tables on your console/shell and normal HTML pages. +It can also generate ASCII tables on your console, iCalendar files +and normal HTML pages. .. contents:: @@ -17,7 +18,8 @@ Data sources - Multiple date fields per record supported. - An LDAP server -- `Birthday reminder ` files (``.bdf``) +- `Birthday reminder `_ files (``.bdf``) +- CSV files Output formats ============== @@ -83,7 +85,7 @@ Make sure your config file contains ``$mail_from`` and ``$mail_to`` settings. iCalendar ========= -Exporting birthday events into an ics file is easy:: +Exporting birthday events into an ``.ics`` file is easy:: $ bdrem --renderer=ical > birthdays.ics @@ -91,6 +93,13 @@ It is possible to access the calendar via HTTP, too:: http://example.org/bdrem/?renderer=ical +You can subscribe to it in your calendar or email application. +Integration has been tested with Thunderbird's Lightning__ and Claws Mail's +vCalendar__ plugin. + +__ https://addons.mozilla.org/en-US/thunderbird/addon/lightning/ +__ http://www.claws-mail.org/plugin.php?plugin=vcalendar + HTML page ========= @@ -125,6 +134,63 @@ __ http://cweiske.de/birthday.htm __ http://cweiske.de/birthday3.htm +CSV file +======== +Comma separated value files can be used with bdrem. +They should at least contain a column with the name, and one with the date. + +Simple configuration if you use the default settings:: + + $source = array( + 'Csv', + '/path/to/file.csv' + ); + +Complex configuration:: + + $source = array( + 'Csv', + array( + 'filename' => '/path/to/file.csv', + 'columns' => array( + 'name' => 0, + 'event' => 1, + 'date' => 2 + ), + 'firstLineIsHeader' => true, + 'defaultEvent' => 'Birthday', + 'separator' => ',', + ) + ); + +Configuration options +--------------------- +``columns`` + Determines the position of the name, event and date columns. + ``0`` is the first column. + You can use ``false`` to disable a column; helpful if there is no + ``event`` column. + + Default: + + ``array('name' => 0, 'event' => 1, 'date' => 2)`` + +``defaultEvent`` + Text to use as event if there is no event column. + + Defaults to ``Birthday`` + +``firstLineIsHeader`` + If the first line in the CSV is column header data + + Defaults to ``true`` + +``separator`` + How columns are separated. + + Defaults to ``,`` + + LDAP server =========== *bdrem* can read birthdays and other events from persons in an LDAP server. @@ -207,6 +273,10 @@ Dependencies - `Net_LDAP2 `_ +Note that the ``.phar`` file already includes all dependencies; +you do not need to install anything. + + ======= License =======