Commit graph

1132 commits

Author SHA1 Message Date
Jeremy Sowden 6e48b4a431 wmail: added command-line option to specify a different config-file. 2019-06-12 23:48:04 +01:00
Jeremy Sowden 7590c32f82 wmail: parse command-line arguments before reading config-file.
Fixes warnings about config and check-sum files when using --help and --version.
2019-06-12 23:48:04 +01:00
Jeremy Sowden 8f7f9881a0 wmail: removed hard-coded string lengths. 2019-06-12 23:48:04 +01:00
Jeremy Sowden d969ee2ca6 wmail: use continues rather than if-else chain to improve readability. 2019-06-12 23:48:04 +01:00
Jeremy Sowden e27a0f4001 wmail: added option index enum and used designated initializers for options. 2019-06-12 23:48:04 +01:00
Jeremy Sowden 7e3cb9cbe4 wmail: removed hard-coded buffer size. 2019-06-12 23:48:04 +01:00
Jeremy Sowden dff64f3b71 wmail: use stdbool.h if available. 2019-06-12 23:48:04 +01:00
Jeremy Sowden 24ce08f47c wmail: more version and copyright updates. 2019-06-12 23:48:04 +01:00
Jeremy Sowden 85d207d4af wmail: fixed some typo's. 2019-06-12 23:48:04 +01:00
Jeremy Sowden bd70588098 wmail: only include one set of XPM's among wmail's sources. 2019-06-12 23:48:04 +01:00
Jeremy Sowden ea206ef933 wmail: bumped to 2.1. 2019-06-07 11:43:39 +01:00
Jeremy Sowden bc982a37f6 wmail: added new ChangeLog. 2019-06-07 10:53:48 +01:00
Jeremy Sowden ee0f742a1b wmail: updated the copyright notices. 2019-06-07 10:53:48 +01:00
Jeremy Sowden 0d1f1ed6aa wmail: updated contact details in README. 2019-06-07 10:53:48 +01:00
Jeremy Sowden cbc7dc2fb7 wmail: moved old change-log to a separate file. 2019-06-07 10:53:48 +01:00
Jeremy Sowden 2fbac189e8 wmail: define debug macros as empty if debug is not enabled. 2019-06-07 10:53:48 +01:00
Jeremy Sowden 107922018b wmail: only one DEBUG macro is ever defined. 2019-06-07 10:53:48 +01:00
Jeremy Sowden 07f158ad7e wmail: change "!stat(...) == 0" to "stat(...) == -1" 2019-06-07 10:53:48 +01:00
Jeremy Sowden 51fc232cdb wmail: refactored MakePathName: one malloc; one snprintf instead of two memcpys. 2019-06-07 10:53:48 +01:00
Jeremy Sowden 7740071745 wmail: use automake. 2019-06-07 10:53:48 +01:00
Jeremy Sowden dc8827d41a wmail: renamed configure.in to configure.ac. 2019-06-07 10:53:48 +01:00
Jeremy Sowden 0a852e2639 wmail: check for libdockapp/dockapp.h and fall back to dockapp.h. 2019-06-07 10:53:48 +01:00
Jeremy Sowden 46cd3297ae wmail: use pkg-config for X11 and dockapp. 2019-06-07 10:53:48 +01:00
Jeremy Sowden fa97374dd0 wmail: use DA_VERSION to determine the correct type for DAMakePixmapFromData parameters. 2019-06-07 10:53:48 +01:00
Jeremy Sowden 498c7c8951 wmail: no longer install into or uninstall from $HOME. 2019-06-07 10:53:48 +01:00
Jeremy Sowden fd74dc6f8a wmail: added breaks and explicit fall-through comments to switches. 2019-06-07 10:53:48 +01:00
Jeremy Sowden 4497ebeab1 wmail: declare enum variable with the right type. 2019-06-07 10:53:48 +01:00
Jeremy Sowden 7af1c537ac wmail: fixed warnings about unused parameters. 2019-06-07 10:53:48 +01:00
Jeremy Sowden 18d77b13bb wmail: fixed comparisons between signed and unsigned. 2019-06-07 10:53:48 +01:00
Jeremy Sowden d808c1e21a wmail: use designated initializers to define config. 2019-06-07 10:53:48 +01:00
Jeremy Sowden 7f0d8d12e2 wmail: strcasecmp and strncasecmp are properly declared in strings.h. 2019-06-07 10:53:48 +01:00
Jeremy Sowden 6e495dfe47 wmail: extra debug compiler flags. 2019-06-07 10:53:48 +01:00
Jeremy Sowden 71c126d20e wmail: white-space fixes. 2019-06-07 10:53:48 +01:00
Jeremy Sowden b78df8ed42 wmail: allow for multiple white-space characters between name and address. 2019-06-07 10:53:48 +01:00
Jeremy Sowden c04cc87128 wmail: keep track of buffer lengths and avoid repeated strlen calls. 2019-06-07 10:53:48 +01:00
Jeremy Sowden be89c2a7a0 wmail: strlen returns size_t. 2019-06-07 10:53:48 +01:00
Jeremy Sowden d5312c3133 wmail: use AC_CONFIG_HEADERS to generate config.h. 2019-06-07 10:53:48 +01:00
Jeremy Sowden 356b07a201 wmail: use CPPFLAGS. 2019-06-07 10:53:48 +01:00
Jeremy Sowden 1d1c7e63b1 wmail: don't clobber CFLAGS. 2019-06-07 10:53:48 +01:00
Jeremy Sowden 254328761e wmail: add static to declarations of lots of variables and functions. 2019-05-28 11:07:22 +01:00
Jeremy Sowden 86a8f6f0a1 wmail: added signal-handler for SIGINT and SIGTERM. 2019-05-28 11:07:22 +01:00
Jeremy Sowden a3ef21b122 wmail: skip leading white-space in From: headers. 2019-05-28 11:07:22 +01:00
Jeremy Sowden 9158bb68f3 wmail: DAMakePixmapFromData expects an unsigned short pointer. 2019-05-28 11:07:22 +01:00
Jeremy Sowden 5eef361597 wmail: replaced SIGALRM handler with DA timer call-back.
The application was doing a lot of work in a signal-handler.  This was
not re-entrant and could interact badly with X.  Since the DA event-loop
supports a timer call-back use that instead.
2019-05-28 11:07:22 +01:00
Jeremy Sowden e4760eb90f wmail: fix prototypes of functions accepting no parameters. 2019-05-28 11:07:22 +01:00
Jeremy Sowden 49def3a155 wmail: use calloc, instead of malloc + memset. 2019-05-28 11:07:22 +01:00
Jeremy Sowden 9f0821af1f wmail: fix memory leaks. 2019-05-28 11:07:22 +01:00
Jeremy Sowden e0f5120b9d wmail: FileNameConcat does exactly the same thing as MakePathName: get rid of it. 2019-05-28 11:07:22 +01:00
Jeremy Sowden a8261ff053 wmail: handle allocation failures. 2019-05-28 11:07:22 +01:00
Jeremy Sowden adf1164fba wmail: consistent 4-column indentation with 8-character tabs. 2019-05-28 11:07:22 +01:00