diff --git a/connector_m365.go b/connector_m365.go index 7fcc46a..bd85b35 100644 --- a/connector_m365.go +++ b/connector_m365.go @@ -383,7 +383,7 @@ func (c *M365Connector) pollEmail() bool { return false } - u := "https://graph.microsoft.com/v1.0/me/messages?$top=20&$filter=isRead eq false&$select=subject,from,receivedDateTime,isRead,conversationId&$orderby=receivedDateTime desc" + u := "https://graph.microsoft.com/v1.0/me/messages?$top=20&$filter=isRead+eq+false&$select=subject,from,receivedDateTime,isRead,conversationId" req, _ := http.NewRequest("GET", u, nil) req.Header.Set("Authorization", "Bearer "+token)