![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
github.com/ngs-archives/go-google-email-audit-api
Go Client Library for Google Email Audit API
go get -u github.com/ngs/go-google-email-audit-api/emailaudit
import (
// ...
"github.com/ngs/go-google-email-audit-api/emailaudit"
)
func main() {
// ...
srv, err := emailaudit.New(client) // client = http.Client
if err != nil {
log.Fatalf("Unable to retrieve Email Audit API Client %v", err)
}
endDate := time.Date(2116, time.October, 31, 23, 59, 59, 0, time.UTC)
// Create or update Email Monitor
monitor, err := srv.MailMonitor.Update("example.com",
"ngs", "kyohei", endDate,
emailaudit.MailMonitorLevels{
IncomingEmail: emailaudit.FullMessageLevel,
OutgoingEmail: emailaudit.FullMessageLevel,
Draft: emailaudit.FullMessageLevel,
Chat: emailaudit.FullMessageLevel,
},
)
if err != nil {
log.Fatalf("Unable to update email monitor. %v", err)
}
// List Email Monitors
monitors, err := srv.MailMonitor.List("example.com", "ngs")
if err != nil {
log.Fatalf("Unable to list email monitor. %v", err)
}
for _, m := range monitors {
fmt.Printf("%v %v@%v chat:%v draft:%v incoming:%v outgoing:%v\n",
m.Updated, m.DestUserName, m.DomainName,
m.MonitorLevels.Chat, m.MonitorLevels.Draft,
m.MonitorLevels.IncomingEmail, m.MonitorLevels.OutgoingEmail)
}
// Disable Email Monitor
err = srv.MailMonitor.Disable("example.com", "ngs", "kyohei")
if err != nil {
log.Fatalf("Unable to disable email monitor. %v", err)
}
}
Not yet implemented
See LICENSE
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.