pip3 install pipenv
pipenv shell
# content provided as part of thread here: https://www.reddit.com/r/aws/comments/cffmxr/how_do_you_strip_the_attachments_from_aws_sessns/ | |
from email.parser import BytesParser | |
from email import policy | |
import os | |
# event will be JSON from SES incoming email rule - NOT an S3 PUT event | |
def lambda_handler(event, context): | |
try: | |
ses_mail = event['Records'][0]['ses']['mail'] |
As configured in my dotfiles.
start new:
tmux
start new with session name: