]> err.no Git - sope/commitdiff
committed a fix for sendmail
authorhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Tue, 30 Nov 2004 15:46:13 +0000 (15:46 +0000)
committerhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Tue, 30 Nov 2004 15:46:13 +0000 (15:46 +0000)
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@425 e4a50df8-12e2-0310-a44c-efbce7f8a7e3

sope-mime/ChangeLog
sope-mime/NGMail/ChangeLog
sope-mime/NGMail/NGSendMail.m
sope-mime/Version

index 375acd26ca3513597c1e346547d41740246315df..57ba72f117febf4025a9055edac0c43b39d46f74 100644 (file)
@@ -1,3 +1,7 @@
+2004-11-30  Helge Hess  <helge.hess@skyrix.com>
+
+       * NGMail: fixed a bug in NGSendMail (v4.5.202)
+
 2004-11-28  Helge Hess  <helge.hess@skyrix.com>
 
        * NGImap4: improvements in the Sieve client (v4.5.201)
index 710a3002cc39aa308ca2b6164887b5b1a1238204..f788fbd739aa102efea625fdbdfc6c64cef6522e 100644 (file)
@@ -1,3 +1,7 @@
+2004-11-30  Helge Hess  <helge.hess@skyrix.com>
+
+       * NGSendMail.m: properly pass the command line to sendmail
+
 2004-10-29  Helge Hess  <helge.hess@skyrix.com>
 
        * NGSendMail.m: use fwrite() to write to pipe
index aba5465ffda89213a5e1f8a549953dcd510cd5ef..4a20bde40a36688cffc80d0bba58301ee8deed86 100644 (file)
 
 /* sending the mail */
 
-- (FILE *)openStreamToSendMail {
-  return popen([[self executablePath] cString], "w");
+- (FILE *)openStreamToSendMail:(NSString *)_cmdline {
+  return [_cmdline isNotNull] ? popen([_cmdline cString], "w") : NULL;
 }
 - (int)closeStreamToSendMail:(FILE *)_mail {
   if (_mail == NULL) 
   sendmail = [self buildSendMailCommandLineWithSender:_sender];
   [self addRecipients:_to toCmdLine:sendmail];
   
-  if ((toMail = [self openStreamToSendMail]) == NULL)
+  if ((toMail = [self openStreamToSendMail:sendmail]) == NULL)
     return [self failedToStartSendMailError:errno];
   
   if ([self isSendLoggingEnabled]) [self _logMailSend:sendmail ofPath:_path];
   sendmail = [self buildSendMailCommandLineWithSender:_sender];
   [self addRecipients:_to toCmdLine:sendmail];
   
-  if ((toMail = [self openStreamToSendMail]) == NULL)
+  if ((toMail = [self openStreamToSendMail:sendmail]) == NULL)
     return [self failedToStartSendMailError:errno];
   
   if ([self isSendLoggingEnabled]) [self _logMailSend:sendmail ofData:_data];
index 51cb919c9f92986353d14695041a5f73ff656975..7b780dd464e18e5dc8b03f80f4fe168c02617adc 100644 (file)
@@ -2,6 +2,6 @@
 
 MAJOR_VERSION:=4
 MINOR_VERSION:=5
-SUBMINOR_VERSION:=201
+SUBMINOR_VERSION:=202
 
 # v4.2.149 requires libNGStreams v4.2.34