(void) fprintf(qout,"Subject: %s\n",*(tra->resp)+4);
break;
case 2 : //attaching (200 line at most) from email itself
- done=eml_attache(qout,tra->sessid,200);
+ done=eml_attache(qout,tra->sessid,tra->resp,200);
qout=eml_closeqfile(qout);
if (done==false) {
(void) rou_alert(0,"%s Unable to create attachement session (system?)",
/* acceptable. */
/* */
/********************************************************/
-PUBLIC int eml_attache(FILE *qout,char *toaddfile,int nbrlines)
+PUBLIC int eml_attache(FILE *qout,char *toaddfile,char **explain,int nbrlines)
{
#define OPEP "unieml.c:eml_attache,"
break;
case 2 : //mime starting part
(void) fprintf(qout,"Sending Email was not successful\n");
+ (void) fprintf(qout,"here is the status returned by remote serveur\n");
+ (void) fprintf(qout,"--->\n");
+ if (explain!=(char **)0) {
+ while (*explain!=(char *)0) {
+ (void) fprintf(qout,"\t%s\n",*explain);
+ explain++;
+ }
+ }
+ (void) fprintf(qout,"---<\n");
break;
case 3 : //mime starting part
(void) fprintf(qout,"--%s%s",marker,CRLF);
extern RCPTYP *eml_isemailok(char *email,char **report);
//procedure to create an attachement for email data part.
-extern int eml_attache(FILE *qout,char *toaddfile,int nbrlines);
+extern int eml_attache(FILE *qout,char *toaddfile,char **explain,int nbrlines);
#endif