When I call the function this way mail_setflag_full(stream, "valid_uid", "\\Deleted", ST_UID) the program crash. Am i doing something wrong?
Unfortunately, your report is too vague to diagnose without additional information.
What type of crash do you get?
-- Mark --
http://staff.washington.edu/mrc Science does not emerge from voting, party politics, or public debate. Si vis pacem, para bellum.