summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README5
-rw-r--r--blasms.c10
-rw-r--r--blasms.conf (renamed from smsparse.conf)0
3 files changed, 7 insertions, 8 deletions
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/smsparse.conf b/blasms.conf
index 5c9752e..5c9752e 100644
--- a/smsparse.conf
+++ b/blasms.conf