Changeset e50cd56 for functions.c
- Timestamp:
- Jul 11, 2002, 12:47:16 AM (22 years ago)
- Branches:
- master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- aa2f33b3
- Parents:
- e173507
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
functions.c
rae9e6be re50cd56 1355 1355 * if enter = 1 then don't wait for editing 1356 1356 */ 1357 char buff[1024];1357 char *buff, *oldbuff; 1358 1358 owl_message *m; 1359 1359 owl_filter *f; … … 1362 1362 owl_function_makemsg("No message selected"); 1363 1363 } else { 1364 char *class, *inst, *to ;1364 char *class, *inst, *to, *cc=NULL; 1365 1365 1366 1366 m=owl_view_get_element(owl_global_get_current_view(&g), owl_global_get_curmsg(&g)); … … 1395 1395 inst=owl_message_get_instance(m); 1396 1396 to=owl_message_get_recipient(m); 1397 cc=owl_message_get_cc(m); 1397 1398 if (!strcmp(to, "") || !strcmp(to, "*")) { 1398 1399 to=""; … … 1405 1406 1406 1407 /* create the command line */ 1407 strcpy(buff,"zwrite");1408 buff = owl_strdup("zwrite"); 1408 1409 if (strcasecmp(class, "message")) { 1409 sprintf(buff, "%s -c %s%s%s", buff, owl_getquoting(class), class, owl_getquoting(class)); 1410 buff = owl_sprintf("%s -c %s%s%s", oldbuff=buff, owl_getquoting(class), class, owl_getquoting(class)); 1411 owl_free(oldbuff); 1410 1412 } 1411 1413 if (strcasecmp(inst, "personal")) { 1412 sprintf(buff, "%s -i %s%s%s", buff, owl_getquoting(inst), inst, owl_getquoting(inst)); 1414 buff = owl_sprintf("%s -i %s%s%s", oldbuff=buff, owl_getquoting(inst), inst, owl_getquoting(inst)); 1415 owl_free(oldbuff); 1413 1416 } 1414 1417 if (*to != '\0') { 1415 char *tmp ;1418 char *tmp, *oldtmp; 1416 1419 tmp=pretty_sender(to); 1417 sprintf(buff, "%s %s", buff, tmp); 1420 if (cc) { 1421 tmp = owl_util_uniq(oldtmp=tmp, cc, "-"); 1422 owl_free(oldtmp); 1423 buff = owl_sprintf("%s -C %s", oldbuff=buff, tmp); 1424 owl_free(oldbuff); 1425 } else { 1426 tmp=pretty_sender(to); 1427 buff = owl_sprintf("%s %s", oldbuff=buff, tmp); 1428 owl_free(oldbuff); 1429 } 1418 1430 owl_free(tmp); 1419 1431 } 1432 if (cc) owl_free(cc); 1420 1433 1421 1434 if (enter) { … … 1427 1440 owl_function_start_command(buff); 1428 1441 } 1442 owl_free(buff); 1429 1443 } 1430 1444 }
Note: See TracChangeset
for help on using the changeset viewer.