From: Daniel Cordero Date: Tue, 16 Jun 2009 20:55:03 +0000 (+0059) Subject: Add a replyto configuration option X-Git-Url: https://git.toastfreeware.priv.at/gregoa/bti.git/commitdiff_plain/d6d0d5a3461d22d0acc7f7bdcf382b7b74136648?hp=fd562ddb1a223ca6623c05761305a103e6a85dfb Add a replyto configuration option --- diff --git a/bti.1 b/bti.1 index 64ae815..385b5f5 100644 --- a/bti.1 +++ b/bti.1 @@ -178,6 +178,13 @@ The http proxy needed to send data out to the Internet\&. The logfile name for bti to write what happened to\&. This file is relative to the user\'s home directory\&. If this file is not specified here or on the command line, no logging will be written to the disk\&. .RE .PP +\fBreplyto\fR +.RS 4 +The status ID to which all notices will be linked to\&. +.sp +There is no sane reason for a need to have this set in a config file\&. One such reason is to have all your messages as children to a particular status\&. +.RE +.PP \fBshrink\-urls\fR .RS 4 Setting this variable to \'true\' or \'yes\' will enable the URL shrinking feature\&. This is equivalent to using the \-\-shrink\-urls option\&. diff --git a/bti.c b/bti.c index ae32c37..fe502bf 100644 --- a/bti.c +++ b/bti.c @@ -565,6 +565,7 @@ static void parse_configfile(struct session *session) char *logfile = NULL; char *action = NULL; char *user = NULL; + char *replyto = NULL; char *file; int shrink_urls = 0; @@ -617,6 +618,11 @@ static void parse_configfile(struct session *session) c += 8; if (c[0] != '\0') logfile = strdup(c); + } else if (!strncasecmp(c, "replyto", 7) && + (c[7] == '=')) { + c += 8; + if (c[0] != '\0') + replyto = strdup(c); } else if (!strncasecmp(c, "action", 6) && (c[6] == '=')) { c += 7; @@ -669,6 +675,8 @@ static void parse_configfile(struct session *session) } if (logfile) session->logfile = logfile; + if (replyto) + session->replyto = replyto; if (action) { if (strcasecmp(action, "update") == 0) session->action = ACTION_UPDATE; diff --git a/bti.xml b/bti.xml index 41da4d5..4497e6d 100644 --- a/bti.xml +++ b/bti.xml @@ -348,6 +348,19 @@ + + + + + The status ID to which all notices will be linked to. + + + There is no sane reason for a need to have this set in a + config file. One such reason is to have all your messages + as children to a particular status. + + +