pike.git / lib / modules / Protocols.pmod / SMTP.pmod

version» Context lines:

pike.git/lib/modules/Protocols.pmod/SMTP.pmod:95:    tokens = tokens[search(tokens, '<') + 1..];       if ((i = search(tokens, '>')) != -1) {    tokens = tokens[..i-1];    }    return tokens*"";    }       void simple_mail(string to, string subject, string from, string msg)    { +  if (search(msg,"\r\n")==-1) +  msg=replace(msg,"\n","\r\n"); // *simple* mail /Mirar    send_message(parse_addr(from), ({ parse_addr(to) }),    (string)MIME.Message(msg, (["mime-version":"1.0",    "subject":subject,    "from":from,    "to":to,    "content-type":    "text/plain;charset=iso-8859-1",    "content-transfer-encoding":    "8bit"])));    }       array(int|string) verify(string addr)    {    return ({command("VRFY "+addr),rest});    }   }