Skip to content

Instantly share code, notes, and snippets.

View polo2ro's full-sized avatar

Paul de Rosanbo polo2ro

View GitHub Profile
@polo2ro
polo2ro / convert-issues.php
Last active April 15, 2019 15:43
bitbucket issues generator from CSV
<?php
$issues = [];
if (($handle = fopen("tickets.csv", "r")) !== FALSE) {
$header = fgetcsv($handle);
while (($data = fgetcsv($handle)) !== FALSE) {
$row = array_combine($header, $data);
$content = $row['description'];
@polo2ro
polo2ro / dump-imap.py
Last active July 12, 2024 16:28 — forked from FiloSottile/dump-imap.py
Simple script to dump an IMAP folder into eml files, store email using the message-id
#!/usr/bin/env python
#-*- coding:utf-8 -*-
import imaplib
import argparse
import email
import re
argparser = argparse.ArgumentParser(description="Dump a IMAP folder into .eml files")
argparser.add_argument('-s', dest='host', help="IMAP host, like imap.gmail.com", required=True)