+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)
+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
/* 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];