aboutsummaryrefslogtreecommitdiffstats
path: root/src/io.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2011-07-31 02:04:18 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2011-07-31 03:23:32 +0200
commit45417bc6f0b6a38754bc707608c9b377d006cdfd (patch)
tree3afce6d731a33a60b6d82d207d5d18a0f87373f5 /src/io.c
parent0884d62b2282b3ff5936f8d36f7f8d77c504938d (diff)
downloadcalcurse-45417bc6f0b6a38754bc707608c9b377d006cdfd.tar.gz
calcurse-45417bc6f0b6a38754bc707608c9b377d006cdfd.zip
Add configuration option to notify all appointments
If "notify-all" is enabled, all non-flagged appointments will be notified (instead of flagged ones). This is useful for users that want to be notified of everything. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/io.c')
-rw-r--r--src/io.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/io.c b/src/io.c
index d59aeac..d8af1fb 100644
--- a/src/io.c
+++ b/src/io.c
@@ -944,6 +944,10 @@ io_save_conf (struct conf *conf)
(void)fprintf (fp, "notify-bar_command=");
(void)fprintf (fp, "%s\n", nbar.cmd);
+ (void)fprintf (fp, "\n# Notify all appointments instead of flagged ones only\n");
+ (void)fprintf (fp, "notify-all=");
+ (void)fprintf (fp, "%s\n", (nbar.notify_all) ? "yes" : "no");
+
(void)fprintf (fp, "\n# Format of the date to be displayed "
"in non-interactive mode :\n");
(void)fprintf (fp, "output_datefmt=");