diff --git a/utils/mgpost/mgpost.c b/utils/mgpost/mgpost.c index 0dc5bb2..40f0a31 100644 --- a/utils/mgpost/mgpost.c +++ b/utils/mgpost/mgpost.c @@ -34,6 +34,7 @@ int main(int argc, char **argv) { int totlen; time_t thetime; int z; + int i; s_JamBase *jb; s_JamMsgHeader jmh; @@ -42,14 +43,24 @@ int main(int argc, char **argv) { if (argc < 6) { printf("Usage:\n"); - printf("%s [l|e] filename jambase from subject\n", argv[0]); + printf("%s [l|e] filename jambase from subject laddress\n", argv[0]); printf(" l = Local Message, e = Echomail Message\n"); + printf(" laddress is your network address, and only required on echomail.\n"); exit(1); } if (tolower(argv[1][0]) != 'l' && tolower(argv[1][0]) != 'e') { printf("Usage:\n"); printf("%s [l|e] filename jambase from subject\n", argv[0]); printf(" l = Local Message, e = Echomail Message\n"); + printf(" laddress is your network address, and only required on echomail.\n"); + exit(1); + } + + if (tolower(argv[1][0]) == 'e' && argc < 7) { + printf("Usage:\n"); + printf("%s [l|e] filename jambase from subject\n", argv[0]); + printf(" l = Local Message, e = Echomail Message\n"); + printf(" laddress is your network address, and only required on echomail.\n"); exit(1); } @@ -77,6 +88,12 @@ int main(int argc, char **argv) { fclose(fptr); + for (i=0;i