* Luke Ehresman <lkehresman@yahoo.com>
* "Luke Ehresman" <lkehresman@yahoo.com>
* lkehresman@yahoo.com (Luke Ehresman)
- * become: Luke Ehresman
+ * becomes: Luke Ehresman
* <lkehresman@yahoo.com>
* becomes: lkehresman@yahoo.com
*/
if ( ereg('^(.+)<.*>', $string, $regs) ) {
$string = ereg_replace ('"', '', $regs[1] );
+ if( $string == '' || $string == ' ' ){
+ $string = ' ';
+ }
}
elseif ( ereg('\((.*)\)', $string, $regs) ) {
if( ( $regs[1] == '' ) || ( $regs[1] == ' ' ) ){
*/
function sqimap_unseen_messages ($imap_stream, $mailbox) {
//fputs ($imap_stream, sqimap_session_id() . " SEARCH UNSEEN NOT DELETED\r\n");
- $read_ary = sqimap_run_command ($imap_stream, " STATUS \"$mailbox\" (UNSEEN)", true, $result, $message);
+ $read_ary = sqimap_run_command ($imap_stream, "STATUS \"$mailbox\" (UNSEEN)", true, $result, $message);
ereg("UNSEEN ([0-9]+)", $read_ary[0], $regs);
return $regs[1];
}