Skip to content

Instantly share code, notes, and snippets.

View tbielawa's full-sized avatar
💭
bitmath!

Tim Bielawa tbielawa

💭
bitmath!
View GitHub Profile
The addition of mml-quote-region (notmuch-mua.el) in 2c6710e3 breaks
automatic signing in replies. When replies are mml-quoted and signing
is enabled by default the "<#part sign=pgpmime>" string will appear on
line 1. This will be consumed during the application of the
mml-quote-region function and transform into the inert string
"<#!part sign=pgpmime>". The result is that responses will no longer
be signed by default.
This fix moves the point forward one line before applying the quoting
function.
From 75867d8090898a23c86b40aa69952c8921b4b711 Mon Sep 17 00:00:00 2001
From: Tim Bielawa <tbielawa@redhat.com>
Date: Sat, 3 Mar 2012 15:56:25 -0500
Subject: [PATCH] Fix mml-quoting in responses where pgp-signing is enabled
The addition of mml-quote-region (notmuch-mua.el) in 2c6710e3 breaks
automatic signing in replies. When replies are mml-quoted and signing
is enabled by default the "<#part sign=pgpmime>" string will appear on
line 1. This will be consumed during the application of the
mml-quote-region function and transform into the inert string
<tbielawa>@(griddle)[~/Projects/ansible] 13:41:27 (hacking+⚡)
$ ansible '*'
Traceback (most recent call last):
File "/home/tbielawa/Projects/ansible/bin/ansible", line 138, in <module>
results = cli.run(options, args)
File "/home/tbielawa/Projects/ansible/bin/ansible", line 103, in run
verbose=True,
File "/home/tbielawa/Projects/ansible/lib/ansible/runner.py", line 82, in __init__
self.host_list, self.groups = self.parse_hosts(host_list)
File "/home/tbielawa/Projects/ansible/lib/ansible/runner.py", line 122, in parse_hosts
<tbielawa>@(griddle)[~/Projects/ansible] 13:41:27 (hacking+⚡)
$ ansible '*'
Traceback (most recent call last):
File "/home/tbielawa/Projects/ansible/bin/ansible", line 138, in <module>
results = cli.run(options, args)
File "/home/tbielawa/Projects/ansible/bin/ansible", line 103, in run
verbose=True,
File "/home/tbielawa/Projects/ansible/lib/ansible/runner.py", line 82, in __init__
self.host_list, self.groups = self.parse_hosts(host_list)
File "/home/tbielawa/Projects/ansible/lib/ansible/runner.py", line 122, in parse_hosts
<tbielawa>@(griddle)[~/Projects/ansible] 14:18:15 (master)
$ . ./hacking/env-setup
Prefixing PYTHONPATH with /home/tbielawa/Projects/ansible/lib/ansible:/home/tbielawa/Projects/ansible/lib
Prefixing PATH with /home/tbielawa/Projects/ansible/bin
Prefixing MANPATH with /home/tbielawa/Projects/ansible/docs/man
<tbielawa>@(griddle)[~/Projects/ansible] 14:18:27 (master)
$ ansible all
lnx.cx | FAILED | rc=0 >>
the command module requires arguments (-a)
class herpderp {
nagios::service {
contact_groups => "it-pc"
}
Nagios::Service["${fqdn}-HTTP"] <- Class["libapache::apache"]
}
(defun notmuch-search-tag-thread-multi (&rest tags)
(mapc 'message tags))
(setq mytags '("+derp" "+hodor" "-dong"))
(notmuch-search-tag-thread-multi mytags)
@tbielawa
tbielawa / notmuch-search-tagging.el
Created March 7, 2012 22:56
Non-interactive tagging in notmuch-search-mode updated for notmuch-0.12
(defun notmuch-search-tag-and-advance (&rest tags)
"Apply a tag or set of tags to the current thread.
Shortcut to simplify applying tags in search mode. Targeted for
use in key-bound functions. Advances to the next thread after
applying the tags."
(mapc 'notmuch-search-tag-thread tags)
(notmuch-search-next-thread))
;; Simple use case, "mark-as-read" while on a search buffer
<tbielawa>@(deepfryer)[~] 10:41:58
$ cowsay WAIT WAIT STOP MDEHAAN IS CAUSING TROUBLE
___________________________________
/ WAIT WAIT STOP MDEHAAN IS CAUSING \
\ TROUBLE /
-----------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:
;; From my defuns.el file
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; We should avoid trying to launch OfflineIMAP multiple times.
;; OfflineIMAP will quit on its own, but we'll get nasty error
;; messages
(defun offlineimap-runningp ()
"Tell us if the Offlineimap process is already running or not."