This shows you the differences between two versions of the page.
| sdk:scripts:sms-to-email [2015/05/05 15:04] – external edit 127.0.0.1 | sdk:scripts:sms-to-email [2020/06/25 12:15] (current) – gray | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| * Copyright (C) 2012 NetModule AG, Switzerland | * Copyright (C) 2012 NetModule AG, Switzerland | ||
| */ | */ | ||
| + | |||
| if (argc < 1 || strlen(argv[1]) == 0) { | if (argc < 1 || strlen(argv[1]) == 0) { | ||
| Line 29: | Line 30: | ||
| subject = "SMS received"; | subject = "SMS received"; | ||
| + | body = nb_sms_body(msgs[i]); | ||
| sprintf(body, | sprintf(body, | ||
| Line 35: | Line 37: | ||
| } else { | } else { | ||
| printf(" | printf(" | ||
| + | nb_sms_delete(msgs[i]); | ||
| } | } | ||
| } | } | ||