CVS update: php3/functions
| From: | rasmus | Date: | Fri, 06 Nov 1998 19:55:45 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-2257@lists.php.net to get a copy of this message | ||
Date: Friday November 6, 1998 @ 14:55
Author: rasmus
Update of /repository/php3/functions
In directory asf:/u2/tmp/cvs-serv8713/functions
Modified Files:
imap.c
Log Message:
Fix an imap bug and add doc prototypes
Index: php3/functions/imap.c
diff -c php3/functions/imap.c:1.44 php3/functions/imap.c:1.45
*** php3/functions/imap.c:1.44 Fri Nov 6 03:56:50 1998
--- php3/functions/imap.c Fri Nov 6 14:55:43 1998
***************
*** 31,37 ****
| Rasmus Lerdorf <rasmus@lerdorf.on.ca> |
+----------------------------------------------------------------------+
*/
! /* $Id: imap.c,v 1.44 1998/11/06 08:56:50 rasmus Exp $ */
#define IMAP41
--- 31,37 ----
| Rasmus Lerdorf <rasmus@lerdorf.on.ca> |
+----------------------------------------------------------------------+
*/
! /* $Id: imap.c,v 1.45 1998/11/06 19:55:43 rasmus Exp $ */
#define IMAP41
***************
*** 587,593 ****
RETURN_LONG( mail_ping( imap_le_struct->imap_stream ) );
} /* }}} */
!
void php3_imap_num_recent(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind;
--- 587,594 ----
RETURN_LONG( mail_ping( imap_le_struct->imap_stream ) );
} /* }}} */
! /* {{{ proto int imap_num_recent(int stream_id)
! Gives the number of recent messages in current mailbox */
void php3_imap_num_recent(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind;
***************
*** 604,611 ****
RETURN_FALSE;
}
RETURN_LONG(imap_le_struct->imap_stream->recent);
! }
void php3_imap_expunge(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind;
--- 605,614 ----
RETURN_FALSE;
}
RETURN_LONG(imap_le_struct->imap_stream->recent);
! } /* }}} */
+ /* {{{ proto int imap_expunge(int stream_id)
+ Delete all messages marked for deletion */
void php3_imap_expunge(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind;
***************
*** 630,638 ****
mail_expunge (imap_le_struct->imap_stream);
RETURN_TRUE;
! }
!
void php3_imap_close(INTERNAL_FUNCTION_PARAMETERS)
{
pval *options, *streamind;
--- 633,642 ----
mail_expunge (imap_le_struct->imap_stream);
RETURN_TRUE;
! } /* }}} */
+ /* {{{ proto int imap_close(int stream_id [, int options])
+ Close an IMAP stream */
void php3_imap_close(INTERNAL_FUNCTION_PARAMETERS)
{
pval *options, *streamind;
***************
*** 663,671 ****
}
php3_list_delete(ind);
RETURN_TRUE;
! }
!
void php3_imap_headers(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind;
--- 667,676 ----
}
php3_list_delete(ind);
RETURN_TRUE;
! } /* }}} */
+ /* {{{ proto array imap_headers(int stream_id)
+ Returns headers for all messages in a mailbox */
void php3_imap_headers(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind;
***************
*** 722,730 ****
sprintf (t+=strlen(t)," (%ld chars)",cache->rfc822_size);
add_next_index_string(return_value,tmp,1);
}
!
! }
void php3_imap_body(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, * msgno, *flags;
--- 727,736 ----
sprintf (t+=strlen(t)," (%ld chars)",cache->rfc822_size);
add_next_index_string(return_value,tmp,1);
}
! } /* }}} */
+ /* {{{ proto imap_body(int stream_id, int msg_no [, int options])
+ Read the message body */
void php3_imap_body(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, * msgno, *flags;
***************
*** 746,754 ****
RETURN_FALSE;
}
RETVAL_STRING(mail_fetchtext_full (imap_le_struct->imap_stream,msgno->value.lval,NIL,myargc
== 3 ? flags->value.lval : NIL),1);
!
! }
void php3_imap_fetchtext_full(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, * msgno, *flags;
--- 752,762 ----
RETURN_FALSE;
}
RETVAL_STRING(mail_fetchtext_full (imap_le_struct->imap_stream,msgno->value.lval,NIL,myargc
== 3 ? flags->value.lval : NIL),1);
! } /* }}} */
+ /* v--- add proto here when this function is done */
+ /* {{{ string imap_fetchtext_full(int stream_id, int msg_no [, int options])
+ Read the body of a message*/
void php3_imap_fetchtext_full(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, * msgno, *flags;
***************
*** 770,777 ****
RETURN_FALSE;
}
RETVAL_STRING(mail_fetchtext_full
(imap_le_struct->imap_stream,msgno->value.lval,NIL,myargcount==3?flags->value.lval:NIL),1);
! }
void php3_imap_mail_copy(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind,*seq, *folder, *options;
--- 778,787 ----
RETURN_FALSE;
}
RETVAL_STRING(mail_fetchtext_full
(imap_le_struct->imap_stream,msgno->value.lval,NIL,myargcount==3?flags->value.lval:NIL),1);
! } /* }}} */
+ /* {{{ proto int imap_mail_copy(int stream_id, int msg_no, string mailbox [, int options])
+ Copy specified message to a mailbox */
void php3_imap_mail_copy(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind,*seq, *folder, *options;
***************
*** 799,806 ****
} else {
RETURN_FALSE;
}
! }
void php3_imap_mail_move(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind,*seq, *folder;
--- 809,818 ----
} else {
RETURN_FALSE;
}
! } /* }}} */
+ /* {{{ proto imap_mail_move(int stream_id, int msg_no, string mailbox)
+ Move specified message to a mailbox */
void php3_imap_mail_move(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind,*seq, *folder;
***************
*** 828,835 ****
} else {
RETURN_FALSE;
}
! }
void php3_imap_createmailbox(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, *folder;
--- 840,849 ----
} else {
RETURN_FALSE;
}
! } /* }}} */
+ /* {{{ proto int imap_createmailbox(int stream_id, string mailbox)
+ Create a new mailbox */
void php3_imap_createmailbox(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, *folder;
***************
*** 855,862 ****
} else {
RETURN_FALSE;
}
! }
void php3_imap_renamemailbox(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, *old, *new;
--- 869,878 ----
} else {
RETURN_FALSE;
}
! } /* }}} */
+ /* {{{ proto int imap_renamemailbox(int stream_id, string old_name, string new_name)
+ Rename a mailbox */
void php3_imap_renamemailbox(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, *old, *new;
***************
*** 883,890 ****
} else {
RETURN_FALSE;
}
! }
void php3_imap_deletemailbox(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, *folder;
--- 899,908 ----
} else {
RETURN_FALSE;
}
! } /* }}} */
+ /* {{{ proto imap_deletemailbox(int stream_id, string mailbox)
+ Delete a mailbox */
void php3_imap_deletemailbox(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, *folder;
***************
*** 910,917 ****
} else {
RETURN_FALSE;
}
! }
void php3_imap_list(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, *ref, *pat;
--- 928,937 ----
} else {
RETURN_FALSE;
}
! } /* }}} */
+ /* {{{ proto array imap_list(int stream_id, string ref, string pattern)
+ Read the list of mailboxes */
void php3_imap_list(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, *ref, *pat;
***************
*** 947,954 ****
cur=cur->next;
}
mail_free_stringlist (&imap_folders);
! }
void php3_imap_listscan(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, *ref, *pat, *content;
--- 967,976 ----
cur=cur->next;
}
mail_free_stringlist (&imap_folders);
! } /* }}} */
+ /* {{{ proto imap_scan(int stream_id, string ref, string pattern, string content)
+ Read list of mailboxes containing a certain string */
void php3_imap_listscan(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, *ref, *pat, *content;
***************
*** 984,991 ****
cur=cur->next;
}
mail_free_stringlist (&imap_folders);
! }
void php3_imap_check(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind;
--- 1006,1015 ----
cur=cur->next;
}
mail_free_stringlist (&imap_folders);
! } /* }}} */
+ /* {{{ proto object imap_check(int stream_id)
+ Get mailbox properties */
void php3_imap_check(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind;
***************
*** 1021,1029 ****
} else {
RETURN_FALSE;
}
!
! }
void php3_imap_delete(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, * msgno;
--- 1045,1054 ----
} else {
RETURN_FALSE;
}
! } /* }}} */
+ /* {{{ proto int imap_delete(int stream_id, int msg_no)
+ Mark a message for deletion */
void php3_imap_delete(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, * msgno;
***************
*** 1047,1054 ****
mail_setflag(imap_le_struct->imap_stream,msgno->value.str.val,"\\DELETED");
RETVAL_TRUE;
! }
void php3_imap_undelete(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, * msgno;
--- 1072,1081 ----
mail_setflag(imap_le_struct->imap_stream,msgno->value.str.val,"\\DELETED");
RETVAL_TRUE;
! } /* }}} */
+ /* {{{ proto int imap_undelete(int stream_id, int msg_no)
+ Remove the delete flag from a message */
void php3_imap_undelete(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, * msgno;
***************
*** 1072,1080 ****
mail_clearflag (imap_le_struct->imap_stream,msgno->value.str.val,"\\DELETED");
RETVAL_TRUE;
! }
!
void php3_imap_headerinfo(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, * msgno,to,tovals,from,fromvals,reply_to,reply_tovals,sender;
--- 1099,1108 ----
mail_clearflag (imap_le_struct->imap_stream,msgno->value.str.val,"\\DELETED");
RETVAL_TRUE;
! } /* }}} */
+ /* {{{ proto object imap_header(int stream_id, int msg_no [, int from_length [, int subject_length
[, string default_host]]])
+ Read the header of the message */
void php3_imap_headerinfo(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, * msgno,to,tovals,from,fromvals,reply_to,reply_tovals,sender;
***************
*** 1427,1435 ****
mail_fetchsubject(fulladdress,imap_le_struct->imap_stream,msgno->value.lval,subjectlength->value.lval);
add_property_string(return_value,"fetchsubject",fulladdress,1);
}
! }
/* KMLANG */
void php3_imap_lsub(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, *ref, *pat;
--- 1455,1465 ----
mail_fetchsubject(fulladdress,imap_le_struct->imap_stream,msgno->value.lval,subjectlength->value.lval);
add_property_string(return_value,"fetchsubject",fulladdress,1);
}
! } /* }}} */
/* KMLANG */
+ /* {{{ proto array imap_lsub(int stream_id, string ref, string pattern)
+ Return a list of subscribed mailboxes */
void php3_imap_lsub(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, *ref, *pat;
***************
*** 1464,1471 ****
cur=cur->next;
}
mail_free_stringlist (&imap_sfolders);
! }
void php3_imap_subscribe(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, *folder;
--- 1494,1503 ----
cur=cur->next;
}
mail_free_stringlist (&imap_sfolders);
! } /* }}} */
+ /* {{{ proto int imap_subscribe(int stream_id, string mailbox)
+ Subscribe to a mailbox */
void php3_imap_subscribe(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, *folder;
***************
*** 1491,1498 ****
} else {
RETURN_FALSE;
}
! }
void php3_imap_unsubscribe(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, *folder;
--- 1523,1532 ----
} else {
RETURN_FALSE;
}
! } /* }}} */
+ /* {{{ proto int imap_unsubscribe(int stream_id, string mailbox)
+ Unsubscribe from a mailbox */
void php3_imap_unsubscribe(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, *folder;
***************
*** 1517,1523 ****
} else {
RETURN_FALSE;
}
! }
void imap_add_body( pval *arg, BODY *body )
{
--- 1551,1557 ----
} else {
RETURN_FALSE;
}
! } /* }}} */
void imap_add_body( pval *arg, BODY *body )
{
***************
*** 1615,1620 ****
--- 1649,1656 ----
}
}
+ /* {{{ proto object imap_fetchstructure(int stream_id, int msg_no [, int options])
+ Read the full structure of a message */
void php3_imap_fetchstructure(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, *msgno,*flags;
***************
*** 1648,1655 ****
}
imap_add_body( return_value, body );
! }
void php3_imap_fetchbody(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, *msgno, *sec,*flags;
--- 1684,1693 ----
}
imap_add_body( return_value, body );
! } /* }}} */
+ /* {{{ proto string imap_fetchbody(int stream_id, int msg_no, int section [, int options])
+ Get a specific body section */
void php3_imap_fetchbody(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, *msgno, *sec,*flags;
***************
*** 1682,1688 ****
RETURN_FALSE;
}
RETVAL_STRINGL( body ,len,1);
! }
/* {{{ proto string imap_base64(string text)
Decode BASE64 encoded text */
--- 1720,1726 ----
RETURN_FALSE;
}
RETVAL_STRINGL( body ,len,1);
! } /* }}} */
/* {{{ proto string imap_base64(string text)
Decode BASE64 encoded text */
***************
*** 1702,1707 ****
--- 1740,1747 ----
RETVAL_STRINGL(decode,newlength,1);
} /* }}} */
+ /* {{{ proto string imap_qprint(string text)
+ Convert a quoted-printable string to an 8-bit string */
void php3_imap_qprint(INTERNAL_FUNCTION_PARAMETERS)
{
pval *text;
***************
*** 1716,1725 ****
decode = (char *) rfc822_qprint((unsigned char *) text->value.str.val,
text->value.str.len,&newlength);
RETVAL_STRINGL(decode,newlength,1);
! }
/* {{{ proto string imap_8bit(string text)
! Convert an 8bit string to a quoted-printable string */
void php3_imap_8bit(INTERNAL_FUNCTION_PARAMETERS)
{
pval *text;
--- 1756,1765 ----
decode = (char *) rfc822_qprint((unsigned char *) text->value.str.val,
text->value.str.len,&newlength);
RETVAL_STRINGL(decode,newlength,1);
! } /* }}} */
/* {{{ proto string imap_8bit(string text)
! Convert an 8-bit string to a quoted-printable string */
void php3_imap_8bit(INTERNAL_FUNCTION_PARAMETERS)
{
pval *text;
***************
*** 1749,1755 ****
RETVAL_STRINGL(rfc822_binary(text->value.str.val,text->value.str.len,&len),len,1);
} /* }}} */
!
void php3_imap_mailboxmsginfo(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind;
--- 1789,1795 ----
RETVAL_STRINGL(rfc822_binary(text->value.str.val,text->value.str.len,&len),len,1);
} /* }}} */
! /* {{{ proto
void php3_imap_mailboxmsginfo(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind;
***************
*** 1798,1803 ****
--- 1838,1845 ----
add_property_long(return_value,"Recent",imap_le_struct->imap_stream->recent);
}
+ /* {{{ proto string imap_rfc822_write_address(string mailbox, string host, string personal)
+ Returns a properly formatted email address given the mailbox, host, and personal info */
void php3_imap_rfc822_write_address(INTERNAL_FUNCTION_PARAMETERS)
{
pval *mailbox,*host,*personal;
***************
*** 1805,1811 ****
char string[MAILTMPLEN];
int argc;
argc=ARG_COUNT(ht);
! if ( argc <2 || argc>3 || getParameters( ht, argc, &mailbox,&host,&personal) ==
FAILURE ) {
WRONG_PARAM_COUNT;
}
convert_to_string(mailbox);
--- 1847,1853 ----
char string[MAILTMPLEN];
int argc;
argc=ARG_COUNT(ht);
! if ( argc != 3 || getParameters( ht, argc, &mailbox,&host,&personal) == FAILURE ) {
WRONG_PARAM_COUNT;
}
convert_to_string(mailbox);
***************
*** 1822,1829 ****
rfc822_write_address(string,addr);
RETVAL_STRING(string,1);
! }
void php3_imap_rfc822_parse_adrlist(INTERNAL_FUNCTION_PARAMETERS)
{
pval *string,*defaulthost,tovals;
--- 1864,1873 ----
rfc822_write_address(string,addr);
RETVAL_STRING(string,1);
! } /* }}} */
+ /* {{{ proto array imap_rfc822_parse_adrlist(string address_string, string default_host)
+ Parses an address string */
void php3_imap_rfc822_parse_adrlist(INTERNAL_FUNCTION_PARAMETERS)
{
pval *string,*defaulthost,tovals;
***************
*** 1851,1862 ****
if(addresstmp->adl) add_property_string(&tovals,"adl",addresstmp->adl,1);
add_next_index_object(return_value, tovals);
} while ((addresstmp = addresstmp->next));
! }
!
!
!
!
void php3_imap_setflag_full(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind;
--- 1895,1904 ----
if(addresstmp->adl) add_property_string(&tovals,"adl",addresstmp->adl,1);
add_next_index_object(return_value, tovals);
} while ((addresstmp = addresstmp->next));
! } /* }}} */
+ /* {{{ proto int imap_setflag_full(int stream_id, string sequence, string flag [, int options])
+ Sets flags on messages */
void php3_imap_setflag_full(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind;
***************
*** 1882,1889 ****
RETURN_FALSE;
}
mail_setflag_full(imap_le_struct->imap_stream,sequence->value.str.val,flag->value.str.val,myargc
== 4 ? flags->value.lval : NIL);
! }
void php3_imap_clearflag_full(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind;
--- 1924,1934 ----
RETURN_FALSE;
}
mail_setflag_full(imap_le_struct->imap_stream,sequence->value.str.val,flag->value.str.val,myargc
== 4 ? flags->value.lval : NIL);
! RETURN_TRUE;
! } /* }}} */
+ /* {{{ proto imap_clearflag_full(int stream_id, string sequence, string flag [, int options])
+ Clears flags on messages */
void php3_imap_clearflag_full(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind;
***************
*** 1907,1914 ****
RETURN_FALSE;
}
mail_clearflag_full(imap_le_struct->imap_stream,sequence->value.str.val,flag->value.str.val,myargc
== 4 ? flags->value.lval : NIL);
! }
void php3_imap_sort(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind;
--- 1952,1961 ----
RETURN_FALSE;
}
mail_clearflag_full(imap_le_struct->imap_stream,sequence->value.str.val,flag->value.str.val,myargc
== 4 ? flags->value.lval : NIL);
! } /* }}} */
+ /* {{{ proto array imap_sort(int stream_id, int criteria, int reverse [, int options])
+ Sort an array of message headers */
void php3_imap_sort(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind;
***************
*** 1953,1962 ****
add_next_index_long(return_value,*sl);
}
fs_give ((void **) &slst);
-
- }
void php3_imap_fetchheader(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, * msgno, * flags;
--- 2000,2010 ----
add_next_index_long(return_value,*sl);
}
fs_give ((void **) &slst);
+ } /* }}} */
+ /* {{{ proto string imap_fetchheader(int stream_id, int msg_no [, int options])
+ Get the full unfiltered header for a message */
void php3_imap_fetchheader(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, * msgno, * flags;
***************
*** 1979,1986 ****
}
RETVAL_STRING(mail_fetchheader_full
(imap_le_struct->imap_stream,msgno->value.lval,NIL,NIL,myargc == 3 ? flags->value.lval :
NIL),1);
! }
void php3_imap_uid(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, *msgno;
--- 2027,2036 ----
}
RETVAL_STRING(mail_fetchheader_full
(imap_le_struct->imap_stream,msgno->value.lval,NIL,NIL,myargc == 3 ? flags->value.lval :
NIL),1);
! } /* }}} */
+ /* {{{ proto int imap_uid(int stream_id, int msg_no)
+ Get the unique message id associated with a standard sequential message number */
void php3_imap_uid(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, *msgno;
***************
*** 2004,2011 ****
}
RETURN_LONG(mail_uid(imap_le_struct->imap_stream, msgno->value.lval));
! }
!
void php3_imap_msgno(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, *msgno;
--- 2054,2063 ----
}
RETURN_LONG(mail_uid(imap_le_struct->imap_stream, msgno->value.lval));
! } /* }}} */
!
! /* {{{ proto int imap_msgno(int stream_id, int unique_msg_id)
! Get the sequence number associated with a UID */
void php3_imap_msgno(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, *msgno;
***************
*** 2029,2036 ****
}
RETURN_LONG(mail_msgno(imap_le_struct->imap_stream, msgno->value.lval));
! }
void php3_imap_status(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, *mbx, *flags;
--- 2081,2090 ----
}
RETURN_LONG(mail_msgno(imap_le_struct->imap_stream, msgno->value.lval));
! } /* }}} */
+ /* {{{ proto object imap_status(int stream_id, string mailbox, int options)
+ Get status info from a mailbox */
void php3_imap_status(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, *mbx, *flags;
***************
*** 2069,2077 ****
{
RETURN_FALSE;
}
! }
!
void php3_imap_bodystruct(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, *msg, *section;
--- 2123,2132 ----
{
RETURN_FALSE;
}
! } /* }}} */
! /* {{{ proto object imap_bodystruct(int stream_id, int msg_no, int section)
! Read the structure of a specified body section of a specific message */
void php3_imap_bodystruct(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, *msg, *section;
***************
*** 2167,2175 ****
add_property_long( return_value, "ifparameters", 0 );
}
add_assoc_object( return_value, "parameters", parametres );
! }
!
void php3_imap_fetch_overview(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, *sequence;
--- 2222,2231 ----
add_property_long( return_value, "ifparameters", 0 );
}
add_assoc_object( return_value, "parameters", parametres );
! } /* }}} */
+ /* {{{ proto array imap_fetch_overview(int stream_id, int msg_no)
+ Read an overview of the information in the headers of the given message */
void php3_imap_fetch_overview(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, *sequence;
***************
*** 2219,2227 ****
add_next_index_object(return_value,myoverview);
}
}
! }
!
void php3_imap_mail_compose(INTERNAL_FUNCTION_PARAMETERS)
{
pval *envelope, *body;
--- 2275,2284 ----
add_next_index_object(return_value,myoverview);
}
}
! } /* }}} */
+ /* {{{ proto string imap_mail_compose(array envelope, array body)
+ Create a MIME message based on given envelope and body sections */
void php3_imap_mail_compose(INTERNAL_FUNCTION_PARAMETERS)
{
pval *envelope, *body;
***************
*** 2432,2438 ****
}
RETURN_STRINGL(mystring,strlen(mystring),1);
! }
--- 2489,2495 ----
}
RETURN_STRINGL(mystring,strlen(mystring),1);
! } /* }}} */
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net