X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=mts%2Fsmtp%2Fsmtp.c;h=b7135f548f35ca015b1bac50e830ae2bcf0839e3;hb=dfa7b4ffa462d4f24016ab4729928dee5ec389bb;hp=97dd39826c9bffb6b5347078bedc021f550b969a;hpb=314cc2b7c5640f2685a119a90bb92f1e41e6c618;p=mmh diff --git a/mts/smtp/smtp.c b/mts/smtp/smtp.c index 97dd398..b7135f5 100644 --- a/mts/smtp/smtp.c +++ b/mts/smtp/smtp.c @@ -639,33 +639,9 @@ rclient (char *server, char *service) } int -sm_winit (int mode, char *from) +sm_winit (char *from) { - char *smtpcom = NULL; - - switch (mode) { - case S_MAIL: - smtpcom = "MAIL"; - break; - - case S_SEND: - smtpcom = "SEND"; - break; - - case S_SOML: - smtpcom = "SOML"; - break; - - case S_SAML: - smtpcom = "SAML"; - break; - - default: - /* Hopefully, we do not get here. */ - break; - } - - switch (smtalk (SM_MAIL, "%s FROM:<%s>", smtpcom, from)) { + switch (smtalk (SM_MAIL, "MAIL FROM:<%s>", from)) { case 250: sm_addrs = 0; return RP_OK;