~ubuntu-branches/ubuntu/saucy/curl/saucy-201307251546

« back to all changes in this revision

Viewing changes to lib/smtp.c

  • Committer: Bazaar Package Importer
  • Author(s): Ramakrishnan Muthukrishnan
  • Date: 2011-02-28 19:35:36 UTC
  • mto: (3.6.1 experimental) (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 47.
  • Revision ID: james.westby@ubuntu.com-20110228193536-p3a9jawxxofcsz7o
Tags: upstream-7.21.4
ImportĀ upstreamĀ versionĀ 7.21.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
754
754
  CURLcode result = CURLE_OK;
755
755
  struct SessionHandle *data = conn->data;
756
756
 
757
 
  /* send MAIL */
758
 
  result = Curl_pp_sendf(&conn->proto.smtpc.pp, "MAIL FROM:%s",
759
 
                         data->set.str[STRING_MAIL_FROM]);
 
757
  /* send MAIL FROM */
 
758
  if (data->set.str[STRING_MAIL_FROM][0] == '<')
 
759
    result = Curl_pp_sendf(&conn->proto.smtpc.pp, "MAIL FROM:%s",
 
760
                           data->set.str[STRING_MAIL_FROM]);
 
761
  else
 
762
    result = Curl_pp_sendf(&conn->proto.smtpc.pp, "MAIL FROM:<%s>",
 
763
                           data->set.str[STRING_MAIL_FROM]);
760
764
  if(result)
761
765
    return result;
762
766