Skip to content

Instantly share code, notes, and snippets.

View senoritadeveloper01's full-sized avatar

Nil Seri senoritadeveloper01

View GitHub Profile
@senoritadeveloper01
senoritadeveloper01 / zimbra-extension-v1.pom
Last active January 25, 2021 17:24
zimbra extension pom version 1
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
@senoritadeveloper01
senoritadeveloper01 / zimbra-extension-v2.pom
Created January 25, 2021 17:30
zimbra extension pom version 2
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<filters>
<filter>src/assembly/filter.properties</filter>
</filters>
<descriptors>
<descriptor>src/assembly/distribution.xml</descriptor>
</descriptors>
@senoritadeveloper01
senoritadeveloper01 / distribution.xml
Created January 25, 2021 17:32
zimbra extension pom distribution file
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd">
<id>jar-with-dependencies</id>
<formats>
<format>jar</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<dependencySets>
<dependencySet>
@senoritadeveloper01
senoritadeveloper01 / zimbra-local-dependency.pom
Last active January 25, 2021 17:35
zimbra local dependency in pom
<?xml version="1.0" encoding="UTF-8"?>
<dependency>
<groupId>com.zimbra</groupId>
<artifactId>client</artifactId>
<version>8.8.15</version>
<scope>system</scope>
<systemPath>/home/senoritadev/Documents/dev/workspace/zimbra-jars/zimbraclient.jar</systemPath>
</dependency>
@senoritadeveloper01
senoritadeveloper01 / zimbra-artifactory-dependency.pom
Created January 25, 2021 17:36
zimbra artifactory dependency
<dependency>
<groupId>zimbra</groupId>
<artifactId>zimbra-client</artifactId>
<version>8.8.15</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>zimbra</groupId>
<artifactId>zimbra-common</artifactId>
@senoritadeveloper01
senoritadeveloper01 / zimbra-soap-extension-request.xml
Last active November 15, 2021 12:37
zimbra soap extension example request
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:zimbra" xmlns:urn1="urn:senoritadev">
<soapenv:Header>
<urn:context>
<urn:userAgent name="ZimbraWebClient - SAF3 (Win)" version="5.0.15_GA_2851.RHEL5_64" />
</urn:context>
</soapenv:Header>
<soapenv:Body>
<urn1:InboxUnreadCountRequest>
<urn1:email>admin@zimbra.nils.local</urn1:email>
@senoritadeveloper01
senoritadeveloper01 / zimbra-soap-extension-response.xml
Last active November 15, 2021 12:37
zimbra soap extension example response
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<context xmlns="urn:zimbra" />
</soap:Header>
<soap:Body>
<InboxUnreadCountResponse xmlns="urn:senoritadev">
<email address="admin@zimbra.nils.local" unreadCount="0" />
<email address="senorita@zimbra.nils.local" unreadCount="0" />
<email address="developer@zimbra.nils.local" unreadCount="1" />
@senoritadeveloper01
senoritadeveloper01 / zimbra_index_fields.csv
Last active January 26, 2021 17:09
Zimbra Index Fields Properties
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 5.
Field,Lucene,ElasticSearch
type (mimeType),,"store=false
analyzed"
l.partname,"Field.Store.YES
Field.Index.NOT_ANALYZED","store=true
notAnalyzed"
filename,"Field.Store.YES
Field.Index.ANALYZED","store=true
analyzed"
l.size,"Field.Store.YES
@senoritadeveloper01
senoritadeveloper01 / variables.scss
Created May 7, 2021 07:42
Custom Color Variables
$calendarThemeColours: (
calendar-light-green: #d3eed9,
calendar-green: #28a745,
calendar-dark-green: #0e3a19,
calendar-light-blue: #b6d5e9,
calendar-blue: #00a0df,
calendar-dark-blue: #225d82,
calendar-light-red: #f05f6d,
calendar-pink: #f05f6d,
calendar-claret-red: #8d5656,
@senoritadeveloper01
senoritadeveloper01 / calendar.ts
Created May 7, 2021 07:54
Assign Theme Colors to Calendars
export abstract class CalendarConstants {
static readonly CALENDAR_THEME_COLORS: string[] = ['calendar-light-green', 'calendar-green', 'calendar-dark-green', 'calendar-light-blue', 'calendar-blue', 'calendar-dark-blue', 'calendar-light-red', 'calendar-pink', 'calendar-claret-red', 'calendar-orange', 'calendar-dark-yellow', 'calendar-yellow'];
}
...
// assign color index
for (let i = 0; i < this.calendars.length; i++) {
this.calendars[i].color = CalendarConstants.CALENDAR_THEME_COLORS[i % CalendarConstants.CALENDAR_THEME_COLORS.length];
}