
    eh]                     x    d dl mZ d dlmZ d dlmZmZmZ  e            Z ee          Z	 ee          fdZ
dS )    )Depends)get_current_user)
open_mysqlget_mysql_credsget_pingconf_varsc                 6  K   d}| rd| v r	 t          t                    5 }|                                }|                    d| d         f           |                                d         }d d d            n# 1 swxY w Y   n# t
          $ r d}Y nw xY w| |dS )Nr   idz
                    SELECT COUNT(*)
                    FROM PrivateMailPing
                    WHERE ToHandleID = %s AND MailStatus = 'N' AND Folder != 'S'
                )userunread_mail_count)r   mysql_credscursorexecutefetchone	Exception)r
   unread_countconnr   s       %/wd/v2025.freedom4um.com/utils/nav.pynav_contextr   	   s      L 
	K(( 4D   4j]	$ $ $
  &0034 4 4 4 4 4 4 4 4 4 4 4 4 4 4  	 	 	LLL	|<<<s5   B AA8,B 8A<<B ?A< B BBN)fastapir   
utils.authr   utils.pingdatar   r   r   PingConfr   r        r   <module>r      s          ' ' ' ' ' ' I I I I I I I I I Ioh''"7#344 = = = = = =r   