Skip to content

Instantly share code, notes, and snippets.

View ogaida's full-sized avatar

Oliver Gaida ogaida

View GitHub Profile
@jkirk
jkirk / del_imap.py
Last active November 22, 2022 13:28
List (or flag) mails of an IMAP account which contains a given subject text
#!/usr/bin/python3
import getpass
def del_imap(server, port, login, password, search):
import imaplib, email
# NOTE: According to RFC 1730 the SEARCH commands searches for 'messages that
# CONTAIN the specified string. When multiple keys are specified, the result
# is the intersection (AND function) of all the messages that match those
@ekreutz
ekreutz / ansible_variable_precedence.md
Last active April 25, 2024 17:43
Ansible variable precedence (order, hierarchy)