rendered paste bodytatic void apply_options(struct ast_vm_user *vmu, char *options) { /* Destructively Parse options and apply */ char *stringp = ast_strdupa(options); char *s; char *var, *value; while((s = strsep(&stringp, "|"))) { value = s; if ((var = strsep(&value, "=")) && value) { if (!strcasecmp(var, "attach")) { if (ast_true(value)) vmu->attach = 1; else vmu->attach = 0; } else if (!strcasecmp(var, "serveremail")) { strncpy(vmu->serveremail, value, sizeof(vmu->serveremail) - 1); } else if (!strcasecmp(var, "tz")) { st