Skip to content

Fix comments in win32/sendmail.c #15326

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions win32/sendmail.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ static zend_string *php_win32_mail_trim_header(const char *header)
return result2;
}

/*********************************************************************
//*********************************************************************
// Name: TSendMail
// Input: 1) host: Name of the mail host where the SMTP server resides
// max accepted length of name = 256
Expand All @@ -174,7 +174,7 @@ static zend_string *php_win32_mail_trim_header(const char *header)
// SUCCESS otherwise.
//
// See SendText() for additional args!
//********************************************************************/
//*********************************************************************
PHPAPI int TSendMail(const char *host, int *error, char **error_message,
const char *headers, const char *Subject, const char *mailTo, const char *data,
char *mailCc, char *mailBcc, char *mailRPath)
Expand Down Expand Up @@ -291,14 +291,14 @@ PHPAPI int TSendMail(const char *host, int *error, char **error_message,
}
}

//********************************************************************
//*********************************************************************
// Name: TSendMail::~TSendMail
// Input:
// Output:
// Description: DESTRUCTOR
// Author/Date: jcar 20/9/96
// History:
//********************************************************************/
//*********************************************************************
PHPAPI void TSMClose(void)
{
Post("QUIT\r\n");
Expand All @@ -313,14 +313,14 @@ PHPAPI void TSMClose(void)
}


/*********************************************************************
//*********************************************************************
// Name: char *GetSMErrorText
// Input: Error index returned by the member functions
// Output: pointer to a string containing the error description
// Description:
// Author/Date: jcar 20/9/96
// History:
//*******************************************************************/
//*********************************************************************
PHPAPI char *GetSMErrorText(int index)
{
if (MIN_ERROR_INDEX <= index && index < MAX_ERROR_INDEX) {
Expand Down Expand Up @@ -364,7 +364,7 @@ static char *find_address(char *list, char **state)
return list;
}

/*********************************************************************
//*********************************************************************
// Name: SendText
// Input: 1) RPath: return path of the message
// Is used to fill the "Return-Path" and the
Expand All @@ -381,7 +381,7 @@ static char *find_address(char *list, char **state)
// Description:
// Author/Date: jcar 20/9/96
// History:
//*******************************************************************/
//*********************************************************************
static int SendText(char *RPath, const char *Subject, const char *mailTo, char *mailCc, char *mailBcc, const char *data,
const char *headers, char *headers_lc, char **error_message)
{
Expand Down Expand Up @@ -698,7 +698,7 @@ static int addToHeader(char **header_buffer, const char *specifier, const char *
return 1;
}

/*********************************************************************
//*********************************************************************
// Name: PostHeader
// Input: 1) return path
// 2) Subject
Expand All @@ -708,7 +708,7 @@ static int addToHeader(char **header_buffer, const char *specifier, const char *
// Description:
// Author/Date: jcar 20/9/96
// History:
//********************************************************************/
//*********************************************************************
static int PostHeader(char *RPath, const char *Subject, const char *mailTo, char *xheaders)
{
/* Print message header according to RFC 822 */
Expand Down Expand Up @@ -785,14 +785,14 @@ static int PostHeader(char *RPath, const char *Subject, const char *mailTo, char



/*********************************************************************
//*********************************************************************
// Name: MailConnect
// Input: None
// Output: None
// Description: Connect to the mail host and receive the welcome message.
// Author/Date: jcar 20/9/96
// History:
//********************************************************************/
//*********************************************************************
static int MailConnect()
{

Expand Down Expand Up @@ -881,14 +881,14 @@ return 0;
}


/*********************************************************************
//*********************************************************************
// Name: Post
// Input:
// Output:
// Description:
// Author/Date: jcar 20/9/96
// History:
//********************************************************************/
//*********************************************************************
static int Post(LPCSTR msg)
{
int len = (int)strlen(msg);
Expand All @@ -912,7 +912,7 @@ static int Post(LPCSTR msg)



/*********************************************************************
//*********************************************************************
// Name: Ack
// Input:
// Output:
Expand All @@ -921,7 +921,7 @@ static int Post(LPCSTR msg)
// last command was successful.
// Author/Date: jcar 20/9/96
// History:
//********************************************************************/
//*********************************************************************
static int Ack(char **server_response)
{
ZEND_TLS char buf[MAIL_BUFFER_SIZE];
Expand Down Expand Up @@ -974,7 +974,7 @@ static int Ack(char **server_response)
}


/*********************************************************************
//*********************************************************************
// Name: unsigned long GetAddr (LPSTR szHost)
// Input:
// Output:
Expand All @@ -985,7 +985,7 @@ static int Ack(char **server_response)
// WARNING: gethostbyname() is a blocking function
// Author/Date: jcar 20/9/96
// History:
//********************************************************************/
//*********************************************************************
static unsigned long GetAddr(LPSTR szHost)
{
LPHOSTENT lpstHost;
Expand Down Expand Up @@ -1052,7 +1052,7 @@ static char *get_angle_addr(char *address)
return estrndup(p1, p2 - p1);
}

/*********************************************************************
//*********************************************************************
// Name: int FormatEmailAddress
// Input:
// Output:
Expand All @@ -1064,7 +1064,7 @@ static char *get_angle_addr(char *address)
//
// Author/Date: garretts 08/18/2009
// History:
//********************************************************************/
//*********************************************************************
static int FormatEmailAddress(char* Buf, char* EmailAddress, char* FormatString) {
char *tmpAddress;
int result;
Expand Down
Loading