aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix segmentation fault when exporting ical fileBenedikt Wildenhain2023-11-051-1/+2
| | | | | | | | | | | | If a note file gets accidently deleted this leads to ical_export_note trying to execute fclose(NULL) which leads to a segmentation fault on current Debian GNU/Linux using libc6 (according to fclose's manpage, the behaviour is undefined in this case). The fix tests whether fopen returned a non-NULL-pointer before trying to close it. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* README.md: add packaging statusHEADmasterLukas Fleischer2023-06-031-13/+14
| | | | Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Release 4.8.1Lukas Fleischer2023-05-223-2/+28
| | | | Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Update Transifex config and catalogLukas Fleischer2023-05-229-40/+92
| | | | Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Update apt index in GitHub workflowLukas Fleischer2023-04-151-1/+3
| | | | | | | | | | | Run `apt-get update` for Ubuntu to fix errors seen because of an out-of-date index: E: Failed to fetch [...] 404 Not Found [IP: 40.119.46.219 80] E: Failed to fetch [...] 404 Not Found [IP: 40.119.46.219 80] E: Failed to fetch [...] 404 Not Found [IP: 40.119.46.219 80] Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Fix characters in weekly viewLukas Fleischer2023-04-151-6/+5
| | | | | | Fixes GitHub issue #441. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Upgrade configure.acLukas Fleischer2023-04-141-9/+7
| | | | | | | Update outdated configure.ac by running autoupdate, followed by some minor manual changes. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Skip AsciiDoc checks if --disable-docs is usedLukas Fleischer2023-04-141-16/+15
| | | | | | Fixes GitHub issue #451. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Update copyright ranges for 2023Lukas Fleischer2023-04-1162-72/+72
| | | | Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Fix Mac OS GitHub workflowLukas Fleischer2023-04-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | Prior to this change, CI was failing with the following error: ==> Installing asciidoc dependency: python@3.11 ==> Pouring python@3.11--3.11.3.monterey.bottle.tar.gz Error: The `brew link` step did not complete successfully The formula built, but is not symlinked into /usr/local Could not symlink bin/2to3 Target /usr/local/bin/2to3 already exists. You may want to remove it: rm '/usr/local/bin/2to3' To force the link and overwrite all conflicting files: brew link --overwrite python@3.11 To list all files that would be deleted: brew link --overwrite --dry-run python@3.11 Explicitly link with overwrite. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Fix segfault when importing iCal filesMarian Buschsieweke2023-04-111-0/+8
| | | | | | | | Previously, events / appointments without a description resulted in a segfault. This provides a trivial fix by adding an `<emtpy>` as description in this case. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* calcurse-caldav: Support PasswordCommand optionRyan Lue2023-04-113-14/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds a new `Auth/PasswordCommand` option to support security best practices re: handling secrets in CLI program configuration. Prior to this commit, the two available options for specifying a password were: 1. via the `Auth/Password` config parameter, or 2. via a `$CALCURSE_CALDAV_PASSWORD` environment variable. The former is unsafe for obvious reasons; the latter is unsafe because as long as the script is running, its environment can be accessed via $ cat /proc/<pid>/environ and is thus visible to anyone with access to the system. This commit preserves preexisting behavior (for backward compatibility) but removes all mention of option 2 from the README. Since the README example for option 2 used a password command anyway, there is little reason to continue its use, and this commit recommends it be deprecated. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Check that note files open before reading themNicholas Johnson2023-01-312-0/+13
| | | | | | | | | | | This fixes the scenario where a note file referenced by a todo, event, or appointment is modified from outside the program in such a way that it cannot be opened by the program, resulting in a segmentation fault. The least surprising way to proceed is to ignore the note. Signed-off-by: Nicholas Johnson <nick@nicksphere.ch> Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Fix handling of recurrent open-ended appointments at 00:00Lukas Fleischer2023-01-011-7/+13
| | | | | | | | | Prior to this commit, a recurrent appointment ending at 00:00 on a given day was not considered to span the day. This is the correct behavior for all cases, except appointments without end time (both starting and ending at midnight on a given day). Handle this edge case explicitly. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Extend default description to all item typesLukas Fleischer2022-12-252-17/+24
| | | | | | | | | | Show default description "(empty description)" for all types of items (appointments, events, recurring appointments/events, TODOs). Follow-up to 7b350ac (Add text for displaying empty event description, 2022-06-21). Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Add text for displaying empty event descriptionJonathan van der Steege2022-12-252-2/+8
| | | | | Signed-off-by: Jonathan van der Steege <jonathan@jonakeys.nl> Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Release 4.8.0v4.8.0Lukas Fleischer2022-04-163-2/+40
| | | | Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Update message catalogLukas Fleischer2022-04-168-299/+525
| | | | Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* calcurse-caldav: fix InsecureSSLLukas Fleischer2022-04-161-3/+1
| | | | | | | | | | | | Pass disable_ssl_certificate_validation as keyword argument to httplib2.Http(). Fixes a regression introduced in 1e1d615 (Refactor calcurse-caldav to use httplib2, 2017-09-06). Fixes GitHub issue #420. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Cleaned up British English localizationMorgan Seltzer2022-04-151-1307/+165
| | | | | | | | | | | Before colour was spelled inconsistently in various places, now it is only spelled colour. Removed ~1000 lines of comments that were commented out msgids that have not been used in many years. Also changed scattered fuzzy translations (which default to using the english string) to officially just use the english string. Signed-off-by: Morgan Seltzer <MorganSeltzer000@gmail.com> Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Layout change recognizes changed appointment spaceMorgan Seltzer2022-04-034-66/+72
| | | | | | | | | | | Before a layout change did not update the maximum number of appointments visible, until the config menu was exited. Now the maximum number of appointments are visible immediately after the layout screen is exited. Addresses GitHub issue #381 Signed-off-by: Morgan Seltzer <MorganSeltzer000@gmail.com> Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Allow newlines in SUMMARY by replacing them with blanksLars Henriksen2022-03-192-8/+4
| | | | | | Addresses Github issue #414 (Android calendar allows them). Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Update copyright ranges for 2022Lukas Fleischer2022-03-1154-56/+56
| | | | Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Fix compiler warning in SHA1 implementationLukas Fleischer2022-03-111-1/+1
| | | | | | | | | Update the signature of sha1_final() to fix the following warning: sha1.c:208:43: warning: argument 2 of type ‘uint8_t[20]’ {aka ‘unsigned char[20]’} with mismatched bound [-Warray-parameter=] Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Fix SHA1 calculation on big-endian systemsLukas Fleischer2022-03-112-0/+2
| | | | | | | | | Add the AC_C_BIGENDIAN macro to determine endianness and set WORDS_BIGENDIAN accordingly. Fixes GitHub issue #397. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Use AX_WITH_CURSES for curses library discoveryMarco Sirabella2021-11-073-22/+9
| | | | | | | | | | | | Properly discovers libtinfow for customized systems (e.g., Gentoo) while offloading search handling to autoconf builtins. Additionally adds autoconf-archive as a buildtime dependency. Fixes #250. Signed-off-by: Marco Sirabella <marco@sirabella.org> Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Add autopoint as a dependency in READMEDaniel J. Perry2021-10-161-0/+1
| | | | | Signed-off-by: Daniel J. Perry <dperry45@gatech.edu> Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Fix typo in caldav post-sync hook git commit messageJoseph Turner2021-10-161-1/+1
| | | | Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Use ./configure passed --docdir for doc install dirMarco Sirabella2021-10-161-2/+0
| | | | | | | | | | | | If any --docdir is passed, the app can't find the builtin documentation Just inherit docdir from configure now, which defaults to the same thing but if overridden will act proper now. Related: https://bugs.gentoo.org/813438 Signed-off-by: Marco Sirabella <marco@sirabella.org> Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Make Home/End keys work as expected in text input modenobody2021-08-071-0/+2
| | | | Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* First day of week can now be any dayMorgan Seltzer2021-08-073-10/+16
| | | | | | | | | | | | | Previously only Sunday and Monday were allowed as the first day of the week, and this was internally treated as a binary variable. This patch allows for users to change the first day of the week to any day. Addresses GitHub feature request #321. Signed-off-by: Morgan Seltzer <MorganSeltzer000@gmail.com> Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Backend changes for first day of weekMorgan Seltzer2021-08-076-81/+82
| | | | | | | | | | | | | Previously only Sunday and Monday were allowed for the first day of the week, and was internally treated as a binary variable. This patch changes the backend so all days are accepted, a future patch will allow users to actually select other days. Addresses GitHub feature request #321. Signed-off-by: Morgan Seltzer <MorganSeltzer000@gmail.com> Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Fixed sidebar config sometime not increasing widthMorgan Seltzer2021-08-072-1/+3
| | | | | | | | | | | | | | The sidebar has a numerical mimumum width that is statically defined, and users may set the width of the sidebar in config by incrementing the percentage of the screen between this minimum and a maximum value of 50%. However, internally the mimimum percentage could be set as low as zero, and while that did not decrease the sidebar size below the numerical minimum width, did mean that between 0 and the mimimum width increasing the percentage had no visual effect to indicate change. Now the mimimum percent is not decremented below the mimimum width. Signed-off-by: Morgan Seltzer <MorganSeltzer000@gmail.com> Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Fix hook docsDhruva Sambrani2021-08-071-2/+2
| | | | Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Allow configuration of appointment time formatmercurialmoon2021-04-115-8/+32
| | | | | | | | | | Added the option to configure the format in which appointment time is displayed. The setting is called "format.appointmenttime" under the general settings menu. Setting defaults to previous behavior, which was "%H:%M". Signed-off-by: mercurialmoon <mercurialmoon@protonmail.com> Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Add generic-prev-view key bindingAurora2021-04-115-0/+27
| | | | | | | This can be used to cycle backwards through windows (similarly to generic-change-view). Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Allow undefined actions in keys configuration fileLars Henriksen2021-04-115-252/+327
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the keys file there are three possibilities for each action: 1. One or several keys are assigned to it 2. It is marked as UNDEFINED (new) 3. It is missing from the file On load of the keys file, calcurse respectively 1. Assigns the key(s) 2. Assigns "UNDEFINED" (new) 3. Assigns a default key if possible If default keys were assigned, the user is informed of the number of actions affected, and the keys file is updated. After load each action must either have keys assigned or be undefined. If not, calcurse exits with a failure. If there are syntax/semantic errors in the file, calcurse rejects the file and exits. When an interactive user leaves the keys configuration menu, a warning is issued if any action is UNDEFINED. The keys file is always updated. Addresses GitHub issue #298. Additionally: Description of concepts and data structures used for keyboard keys and virtual keys (actions) as well as name changes and comments to improve readability. Signed-off-by: Lars Henriksen <LarsHenriksen@get2net.dk> Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Release 4.7.1v4.7.1Lukas Fleischer2021-04-101-0/+28
| | | | Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* po/: translation updates from TransifexLukas Fleischer2021-04-1017-493/+400
| | | | Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* calcurse-caldav: always request href from serverMax Deineko2021-04-041-10/+12
| | | | | | | | | | | | | | | Apparently, while some CalDAV servers return href values as is in their response, some might return them URL-quoted (which, if I am not mistaken, was the reason for e943b06). Assuming either behaviour when pushing local objects will lead to discrepancy with events dictionary retrieved from the server and thus bugs, hence we always want to use whatever form of href the server returns. Addresses GitHub issues #337 and #356. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Call setsid() for hook/notification commandsLukas Fleischer2021-04-047-12/+19
| | | | | | | | | We do not want hook or notification commands to interact with the terminal in any way. Create a new session for them. Addresses GitHub issue #326. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Redirect standard descriptors for hook/notify commandsLukas Fleischer2021-04-043-26/+11
| | | | | | | | | | | | | Disconnect stdin, stdout and stderr when running an external hook or notification command. The previous solution of appending "<&- >&- 2>&-" to the shell command line does not work if the command includes pipes. Use shell_exec() in notify_launch_cmd() instead of a custom (and incomplete) reimplementation of that command. Partially addresses GitHub issue #326. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Add parameter to redirect stderr to shell_exec()Lukas Fleischer2021-04-046-18/+37
| | | | | | | Add a function parameter to allows redirecting stderr in addition to stdin and stdout. The parameter will be used with a follow-up change. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* calcurse-caldav: document Hostname and Path betterLukas Fleischer2021-04-031-2/+4
| | | | | | | | | Add some clarification on the expected format for the Hostname and Path options in the sample configuration file. Addresses GitHub issues #95, #138, and #354. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* README.md: add build badgesLukas Fleischer2021-04-031-0/+3
| | | | Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Add GitHub Actions workflow lint_pythonLukas Fleischer2021-04-031-0/+21
| | | | | | | Run codespell, flake8, and isort for each change to one of the scripts in contrib/. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Replace Travis CI with GitHub Actions configurationLukas Fleischer2021-04-032-23/+49
| | | | | | | Replace the Travis CI configuration with an equivalent GitHub Actions workflow. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Do not use readlink(1) in testsLukas Fleischer2021-04-033-2/+5
| | | | | | | | | | | | | Avoid using readlink(1) which is not POSIX-compatible; moreover, `readlink -f` is not available on Mac OS by default. Instead, always convert $CALCURSE to an absolute path (that may or may not be canonical, i.e., be a symlink or contain ../ as component) in test-init.sh by prepending the current working directory if the original path is relative. While not fully equivalent to `readlink -f`, this should be good enough for use in our tests. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* Fix flake8 and isort warningsLukas Fleischer2021-04-032-6/+12
| | | | Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
* calcurse-caldav: improve config file error handlingLukas Fleischer2021-04-031-91/+100
| | | | | | | | | | | | | | The previous implementation allowed sections and keys other than those used by the script which led to a variety of bug reports due to typos in the configuration. Disallow entries other than those explicitly used and make both section and key names case-sensitive (previously, only section names where case-sensitive). Check that Hostname and Path are set before using them. Addresses GitHub issues #327 and #350. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>