From 67caf9d07c3ad05d66a6ded60440e125bd29191c Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Wed, 27 Oct 2010 14:50:33 +0100 Subject: Renamed smsparse.conf to blasms.conf --- README | 5 ++--- blasms.c | 10 +++++----- blasms.conf | 3 +++ smsparse.conf | 3 --- 4 files changed, 10 insertions(+), 11 deletions(-) create mode 100644 blasms.conf delete mode 100644 smsparse.conf diff --git a/README b/README index 7d1aa2a..8d5761e 100644 --- a/README +++ b/README @@ -2,7 +2,7 @@ Usage: blasms sender-number send-date SMS content should be passed using stdin. -smsparse.conf is the configuration file and should be in the format: +blasms.conf is the configuration file and should be in the format: default SYSTEM COMMANDS CMD1 SYSTEM COMMANDS CMD2 SYSTEM COMMANDS @@ -19,7 +19,7 @@ are available, allowing for text replacement. The macros available are: %d - replaced with the send-date %s - replaced with the SMS content -An example smsparse.conf might be: +An example blasms.conf might be: default echo \"SMS from %N at %d: %s\" LS ls %s @@ -31,4 +31,3 @@ Sender names are looked up in phonebook.conf, which should be in the format: An example phonebook.conf might be: +447777123456 John +447713987654 Bill - diff --git a/blasms.c b/blasms.c index da38fbe..f045aab 100644 --- a/blasms.c +++ b/blasms.c @@ -49,7 +49,7 @@ void setname(char* telnum) { fp = fopen("phonebook.conf", "r"); if (fp == NULL) { - printf("Error opening smsparse.conf.\n"); + printf("Error opening blasms.conf.\n"); return; } @@ -98,7 +98,7 @@ int main(int argc, char *argv[]) { "\n" "SMS content should be passed using stdin.\n" "\n" - "smsparse.conf is the configuration file and should be in the format:\n" + "blasms.conf is the configuration file and should be in the format:\n" " default SYSTEM COMMANDS\n" " CMD1 SYSTEM COMMANDS\n" " CMD2 SYSTEM COMMANDS\n" @@ -115,7 +115,7 @@ int main(int argc, char *argv[]) { " %%d - replaced with the send-date\n" " %%s - replaced with the SMS content\n" "\n" - "An example smsparse.conf might be:\n" + "An example blasms.conf might be:\n" " default echo \\\"SMS from %%N at %%d: %%s\\\"\n" " LS ls %%s\n" "\n" @@ -143,10 +143,10 @@ int main(int argc, char *argv[]) { printf("Contents : %s\n", sms); } - fp = fopen("smsparse.conf", "r"); + fp = fopen("blasms.conf", "r"); if (fp == NULL) { - printf("Error opening smsparse.conf.\n"); + printf("Error opening blasms.conf.\n"); return 1; } diff --git a/blasms.conf b/blasms.conf new file mode 100644 index 0000000..5c9752e --- /dev/null +++ b/blasms.conf @@ -0,0 +1,3 @@ +default ssh ircscreen@tghost.co.uk "echo \"msg #theblueroom SMS from %N: %s\" > ~/.irssi/remote-control" +TBR ssh ircscreen@tghost.co.uk "echo \"msg #theblueroom SMS from %N: %s\" > ~/.irssi/remote-control" +WEB echo Fake posting to tghost.co.uk: %s diff --git a/smsparse.conf b/smsparse.conf deleted file mode 100644 index 5c9752e..0000000 --- a/smsparse.conf +++ /dev/null @@ -1,3 +0,0 @@ -default ssh ircscreen@tghost.co.uk "echo \"msg #theblueroom SMS from %N: %s\" > ~/.irssi/remote-control" -TBR ssh ircscreen@tghost.co.uk "echo \"msg #theblueroom SMS from %N: %s\" > ~/.irssi/remote-control" -WEB echo Fake posting to tghost.co.uk: %s -- cgit v1.2.3