另一种获得收件箱未读数
function getMailCountProxy(){
var idata= {
s_FolderListNames:'FolderName',
FolderName:'($Inbox)'
}
$.ajax({
url: "/"+mailpath+"/iNotes/Proxy/?EditDocument&Form=s_GetFolderUnreadCountJSON",
type: 'post',
dataType: 'json',
data: idata
}).complete(function(data) {
if(data.responseText!=""){
var ret = eval("(" + data.responseText + ")");
$('#mail_count').html(ret['($Inbox)']);
}
});;
}
需要设置服务器:
set configuration iNotes_WA_Security_NonceCheck=0
set configuration iNotes_WA_Security_RefererCheck=0
调试未读标记
set configuration DEBUG_UNREAD=4
set configuration Repl_Sync_All_Unread=1
设置inotes未读颜色为红色
Dim s As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Set db=s.currentdatabase
Set doc = db.GetProfileDocument("iNotesProfile")
doc.UnreadStyle = "red"
Call doc.Save(True,False)
链接: