[comp.mail.elm] How to add Return-Receipt-To: to elm

monts@quicksilver.Eng.Sun.COM (Mike Monts) (03/14/91)

In article <1991Mar14.124718.17100@forwiss.uni-passau.de> hessmann@unipas.fmi.uni-passau.de (Georg Hessmann) writes:
>In article <1991Mar14.014724.13357@jadpc.cts.com> jdeitch@jadpc.cts.com (Jim Deitch) writes:
>>In article <1991Mar13.125822.25221@forwiss.uni-passau.de> hessmann@unipas.fmi.uni-passau.de (Georg Hessmann) writes:
>[...]
>>>Any chance that it would be an option in the send screen to include
>>>the Return-Receipts-To: line or not?   (please!!)
>>>

Here are the diffs to hdrconfg.c   mailmsg1.c   mailmsg2.c
that add Return-Receipts-To: to the header menu. Please note that in the menu
it is listed as X-Return-Receipts-To: and that you have to type x to select
the menu item:

===============================================================================
diff hdrconfg.c hdrconfg.c.original:

44d43
<       Return-Receipt-To:
71,74c70,72
< #define RETURN_RECEIPT_TO_LINE  15
< #define PRIORITY_LINE           17
< #define IN_REPLY_TO_LINE        18
< #define USER_DEFINED_HDR_LINE   20
---
> #define PRIORITY_LINE           15
> #define IN_REPLY_TO_LINE        16
> #define USER_DEFINED_HDR_LINE   18
90,91d87
< #define put_return_receipt_to()    put_header(RETURN_RECEIPT_TO_LINE,\
<               1, "X-Return-Receipt-To", return_receipt_to)
100,103c96,98
<           cc[VERY_LONG_STRING], expanded_to[VERY_LONG_STRING],
<           return_receipt_to[SLEN], expanded_cc[VERY_LONG_STRING], 
<           user_defined_header[SLEN], bcc[VERY_LONG_STRING], 
<           expanded_bcc[VERY_LONG_STRING];
---
>           cc[VERY_LONG_STRING], expanded_to[VERY_LONG_STRING], 
>           expanded_cc[VERY_LONG_STRING], user_defined_header[SLEN],
>           bcc[VERY_LONG_STRING], expanded_bcc[VERY_LONG_STRING];
174,180d168
<           case 'x' :  PutLine0(INPUT_LINE, 0, "Return-Receipt-to: "); CleartoEOLN();
<                       if(optionally_enter(return_receipt_to,
<                             INPUT_LINE, 19, FALSE, FALSE) == -1)
<                         return(0);
<                       put_return_receipt_to();
<                       break;
< 
253d240
<       put_return_receipt_to();

===============================================================================
diff mailmsg1.c mailmsg1.c.original

35c35
< char subject[SLEN], in_reply_to[SLEN], expires[SLEN], return_receipt_to[SLEN], 
---
> char subject[SLEN], in_reply_to[SLEN], expires[SLEN], 
64d63
<       return_receipt_to[0] = '\0';

===============================================================================
diff mailmsg2.c mailmsg2.c.original

62,66c62,65
<           return_receipt_to[SLEN], action[SLEN], priority[SLEN], 
<           reply_to[SLEN], to[VERY_LONG_STRING], cc[VERY_LONG_STRING],
<           expanded_to[VERY_LONG_STRING], expanded_cc[VERY_LONG_STRING],
<           user_defined_header[SLEN], bcc[VERY_LONG_STRING], 
<           expanded_bcc[VERY_LONG_STRING];
---
>             action[SLEN], priority[SLEN], reply_to[SLEN], to[VERY_LONG_STRING], 
>           cc[VERY_LONG_STRING], expanded_to[VERY_LONG_STRING], 
>           expanded_cc[VERY_LONG_STRING], user_defined_header[SLEN],
>           bcc[VERY_LONG_STRING], expanded_bcc[VERY_LONG_STRING];
769,771d767
< 
<       if (strlen(return_receipt_to) > 0)
<           fprintf(filedesc, "Return-Receipt-To: %s\n", return_receipt_to);

===============================================================================


--
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Mike Monts	                	INTERNET:       monts@sun.com +
+ Sun Microsystems, Inc.           	PHONE:       	(415)336-1495 +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++