Mercurial > masqmail
comparison src/smtp_out.c @ 321:412385b57dc4
refactoring
author | meillo@marmaro.de |
---|---|
date | Thu, 28 Apr 2011 16:48:23 +0200 |
parents | c74adb7c4f50 |
children | 02bc0331e390 |
comparison
equal
deleted
inserted
replaced
320:4c705c34182f | 321:412385b57dc4 |
---|---|
511 | 511 |
512 return NULL; | 512 return NULL; |
513 } | 513 } |
514 | 514 |
515 smtp_base* | 515 smtp_base* |
516 smtp_out_open_child(gchar * cmd) | 516 smtp_out_open_child(gchar * cmd, char* host) |
517 { | 517 { |
518 smtp_base *psb; | 518 smtp_base *psb; |
519 gint sock; | 519 gint sock; |
520 | 520 |
521 DEBUG(5) debugf("smtp_out_open_child entered, cmd = %s\n", cmd); | 521 DEBUG(5) debugf("smtp_out_open_child entered, cmd = %s\n", cmd); |
522 | 522 psb->remote_host = host; |
523 sock = child(cmd); | 523 sock = child(cmd); |
524 | |
525 if (sock > 0) { | 524 if (sock > 0) { |
526 psb = create_smtpbase(sock); | 525 psb = create_smtpbase(sock); |
527 psb->remote_host = NULL; | 526 psb->remote_host = NULL; |
528 | 527 |
529 return psb; | 528 return psb; |