]>
git.madduck.net Git - etc/mutt.git/commitdiff
madduck's git repository
Every one of the projects in this repository is available at the canonical
URL git://git.madduck.net/madduck/pub/<projectpath> — see
each project's metadata for the exact URL.
All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@ git. madduck. net .
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
SSH access, as well as push access can be individually
arranged .
If you use my repositories frequently, consider adding the following
snippet to ~/.gitconfig and using the third clone URL listed for each
project:
[url "git://git.madduck.net/madduck/"]
insteadOf = madduck:
summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (parent:
b2f281d )
get_file() {
local t
if [ -z "$1" ]; then
get_file() {
local t
if [ -z "$1" ]; then
- t=$(TMPDIR="$PWD" tempfile -s $(guess_extension "$MIMETYPE"))
+ t=$(mktemp -p "$PWD" tmp.XXXXXXXXXX. $(guess_extension "$MIMETYPE"))
cat > "$t"
echo "$t"
else
cat > "$t"
echo "$t"
else
-TMPFILE="$(tempfile -p proxy )"
+TMPFILE="$(mktemp --tmpdir proxy.XXXXXXXXXX )"
trap "rm -f $TMPFILE" 0 1 2 3 4 5 6 7 8 10 11 12 13 14 15
eval $cmd <"$file" >$TMPFILE
trap "rm -f $TMPFILE" 0 1 2 3 4 5 6 7 8 10 11 12 13 14 15
eval $cmd <"$file" >$TMPFILE
-tmpfile=$(tempfile -p reuse )
+tmpfile=$(mktemp --tmpdir reuse.XXXXXXXXXX )
cleanup() { rm -f "$tmpfile"; trap - 1 2 3 4 5 6 7 8 10 11 12 13 14 15; }
trap cleanup 1 2 3 4 5 6 7 8 10 11 12 13 14 15
cleanup() { rm -f "$tmpfile"; trap - 1 2 3 4 5 6 7 8 10 11 12 13 14 15; }
trap cleanup 1 2 3 4 5 6 7 8 10 11 12 13 14 15
# Copyright © 2010 martin f. krafft <madduck@madduck.net>
# Released under the terms of the Artistic Licence 2.0
#
# Copyright © 2010 martin f. krafft <madduck@madduck.net>
# Released under the terms of the Artistic Licence 2.0
#
CHECKSDIR="$HOME/.mutt/sendmail-checks.d"
SENDMAIL="/usr/sbin/sendmail -oem -oi"
CHECKSDIR="$HOME/.mutt/sendmail-checks.d"
SENDMAIL="/usr/sbin/sendmail -oem -oi"
-TMPFILE=$(tempfile -p mutt-sendmail -s .msg)
+TMPFILE=$(mktemp --tmpdir mutt-sendmail.XXXXXXXXXX .msg)
settrap () { trap "$@" 0 1 2 3 4 5 6 7 8 10 11 12 13 14 15; }
cleanup () { rm -f "$TMPFILE"; settrap -; }
settrap cleanup
settrap () { trap "$@" 0 1 2 3 4 5 6 7 8 10 11 12 13 14 15; }
cleanup () { rm -f "$TMPFILE"; settrap -; }
settrap cleanup
[ $ret -eq 0 ] || exit $ret
# now remove the X-Acked header from the mail
[ $ret -eq 0 ] || exit $ret
# now remove the X-Acked header from the mail
-TMPFILE=$(tempfile -p mutt-sendmail -s .msg)
+TMPFILE=$(mktemp --tmpdir mutt-sendmail.XXXXXXXXXX .msg)
settrap () { trap "$@" 0 1 2 3 4 5 6 7 8 10 11 12 13 14 15; }
cleanup () { rm -f "$TMPFILE"; settrap -; }
settrap cleanup
settrap () { trap "$@" 0 1 2 3 4 5 6 7 8 10 11 12 13 14 15; }
cleanup () { rm -f "$TMPFILE"; settrap -; }
settrap cleanup
if ! cp -n "$INPUT" "$DEST"; then
echo >&1 "W: failed to spool message file '$1'."
if ! cp -n "$INPUT" "$DEST"; then
echo >&1 "W: failed to spool message file '$1'."
- TMPFILE=$(tempfile -p mutt-sendmail -s .msg)
+ TMPFILE=$(mktemp --tmpdir mutt-sendmail.XXXXXXXXXX .msg)
echo >&1 "W: leaving a copy in '$TMPFILE'…"
else
RECIPIENTS=$(for i in "$@"; do echo -n " $i,"; done)
echo >&1 "W: leaving a copy in '$TMPFILE'…"
else
RECIPIENTS=$(for i in "$@"; do echo -n " $i,"; done)