[MPlayer-users] Re: About Re:Re:Re:Re:Re:Re:Re:Re:Re:Re:Re:Re:Re:Re:Re:Re:

Jason Lunz lunz at falooley.org
Fri Oct 4 19:37:02 CEST 2002


arpi at thot.banki.hu said:
> ok, i'll send a bugreport to the author... :)
> but afaik he's busy with a silly video player or what, so he stopped
> development of that nice mailer long time ago :(

well, that's understandable. :)  What do you think of this?


diff -ur GySMail-v3.2/5a.c GySMail-v3.2.reply/5a.c
--- GySMail-v3.2/5a.c	Sat Sep 16 15:09:06 2000
+++ GySMail-v3.2.reply/5a.c	Fri Oct  4 13:07:44 2002
@@ -433,9 +433,18 @@
   /* REPLY & FORWARD */
   if(gomb=='r' || gomb=='f'){
     int reply=(gomb=='r');
+    const char repre[]="Re: ";
     strcpy(_from,__from);
     strcpy(_to,reply? M_FROM(yy) : M_TO(yy));
-    strcpy(_subject,reply?"Re: ":"Fwd: ");strcat(_subject,M_SUBJ(yy));
+    if(reply) {
+      if(strncmp(repre,M_SUBJ(yy),sizeof(repre)-1))
+	strcpy(_subject,repre);
+      else
+	_subject[0]='\0';
+    } else {
+      strcpy(_subject,"Fwd: ");
+    }
+    strcat(_subject,M_SUBJ(yy));
     get_date(_date);
     { FILE *f2=fopen(temp_nev,"wb");
       if(!f2){printf("Cannot create tempfile\n");return(-1);}





More information about the MPlayer-users mailing list