Skip to content

Instantly share code, notes, and snippets.

class Helper:
encoding = 'utf-8'
def __init__(self, udid, it_pro):
self.udid = udid
self.itpro = it_pro
def employee_id(self):
sql = "select emplid from emplid_to_alphaname where alphaname = (%s);", (self.udid, )
@BosnaZmaj
BosnaZmaj / imapsync-interactive.py
Created March 23, 2018 13:42 — forked from antoine-briand/imapsync-interactive.py
Interactive ImapSync tool written in python 3. Useful to sync imap accounts across different mail servers. Python 3 and imapsync must be installed on the machine.
# coding: utf8
import os, csv
print("Welcome to the ImapSync interactive")
mode = input("Interactive mode or Read CSV file ? (1/2) ")
if mode == "2":
#host1;user1;password1;host2;user2;password2
file = input("File path : ")
if file:
print("Reading file")