This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
CURALL=`tempfile` | |
EMALL=`tempfile` | |
DIFFY=`tempfile` | |
ADDLIST=`tempfile` | |
zmprov -l gaa | sort | uniq > $EMALL | |
zmprov gdl all@example.com|grep "zimbraMailForwardingAddress:"|sed "s/zimbraMailForwardingAddress: //"|sort|uniq > $CURALL | |
diff --left-column $CURALL $EMALL | grep example.com | sed "s/> //g" > $DIFFY | |
diff /opt/zimbra/conf/all_list_ignore $DIFFY|grep example.com|sed "s/<//g"|sed "s/>//g"|sed "s/ //g" > $ADDLIST |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from BeautifulSoup import BeautifulSoup | |
# Files list | |
afp = open('afp.txt', 'rb') | |
aes = afp.readlines() | |
afp.close() | |
list_o_attrs = ['nm', 'ttl', 'co_nm', 'eml', 'co_url', 'linkedin_url', 'twitter_url', 'bio'] | |
for person in aes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# depends on Google's API. | |
# So, YMMV | |
import sys | |
import pycurl | |
import simplejson as json | |
class RevCode: | |
def __init__(self): | |
self.contents = '' |