rename .santoku to .mblaze

pull/2/head
Christian Neukirchen 8 years ago
parent 60f4618e2b
commit 41474c2e68

@ -87,8 +87,8 @@ EXAMPLES
CONCEPTS CONCEPTS
mblaze deals with messages (which are files), folders (which are Maildir mblaze deals with messages (which are files), folders (which are Maildir
folders), sequences (which are newline-separated lists of messages, folders), sequences (which are newline-separated lists of messages,
possibly persisted on disk in ~/.santoku/seq), and the current message possibly persisted on disk in ~/.mblaze/seq), and the current message
(kept as a symlink in ~/.santoku/cur). (kept as a symlink in ~/.mblaze/cur).
Messages in the persisted sequence can be referred to using special Messages in the persisted sequence can be referred to using special
syntax as explained in mmsg(7). syntax as explained in mmsg(7).

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
# mmairix QUERY - santoku wrapper around mairix # mmairix QUERY - mblaze wrapper around mairix
mairix -r "$@" | sed 's,//*,/,g' | mless mairix -r "$@" | sed 's,//*,/,g' | mless

@ -140,9 +140,9 @@ As usual with pipes, the sky is the limit.
deals with messages (which are files), deals with messages (which are files),
folders (which are Maildir folders), folders (which are Maildir folders),
sequences (which are newline-separated lists of messages, possibly persisted on disk in sequences (which are newline-separated lists of messages, possibly persisted on disk in
.Pa ~/.santoku/seq ) , .Pa ~/.mblaze/seq ) ,
and the current message (kept as a symlink in and the current message (kept as a symlink in
.Pa ~/.santoku/cur ) . .Pa ~/.mblaze/cur ) .
.Pp .Pp
Messages in the persisted sequence can be referred to using special Messages in the persisted sequence can be referred to using special
syntax as explained in syntax as explained in

@ -50,7 +50,7 @@ Editor used to compose mail.
.Bl -tag -width Ds .Bl -tag -width Ds
.It Pa snd.* .It Pa snd.*
Draft messages (kept in current directory) Draft messages (kept in current directory)
.It Pa ~/.santoku/headers .It Pa ~/.mblaze/headers
Default headers for each mail. Default headers for each mail.
(Put your (Put your
.Sq Li From\&: .Sq Li From\&:

@ -19,7 +19,7 @@ The fully qualified domain name is computed by:
Using Using
.Sq Li "FQDN:" .Sq Li "FQDN:"
from from
.Pa "~/.santoku/profile" .Pa "~/.mblaze/profile"
(if set). (if set).
.It .It
Resolving the current hostname. Resolving the current hostname.
@ -27,7 +27,7 @@ Resolving the current hostname.
Using the host part of the address in Using the host part of the address in
.Sq Li "Local-Mailbox:" .Sq Li "Local-Mailbox:"
from from
.Pa "~/.santoku/profile" .Pa "~/.mblaze/profile"
(if set). (if set).
.El .El
.Pp .Pp

@ -67,11 +67,11 @@ and exit.
.It Ev MAILSEQ .It Ev MAILSEQ
File were the sequence is stored. File were the sequence is stored.
(Default: (Default:
.Pa ~/.santoku/seq ) .Pa ~/.mblaze/seq )
.It Ev MAILCUR .It Ev MAILCUR
Symbolic link referring to the current message. Symbolic link referring to the current message.
(Default: (Default:
.Pa ~/.santoku/cur ) .Pa ~/.mblaze/cur )
.El .El
.Sh EXIT STATUS .Sh EXIT STATUS
.Ex -std .Ex -std

@ -94,7 +94,7 @@ parts,
and re-encodes them into UTF-8 if necessary. and re-encodes them into UTF-8 if necessary.
.Pp .Pp
Other filters can be specified in the file Other filters can be specified in the file
.Pa ~/.santoku/filter .Pa ~/.mblaze/filter
in the format in the format
.D1 Ar type/subtype Ns Li \&: Ar command .D1 Ar type/subtype Ns Li \&: Ar command
or or

@ -13,7 +13,7 @@ msgid() {
mgenmid 2>/dev/null | sed 's/.*/Message-Id: &/' mgenmid 2>/dev/null | sed 's/.*/Message-Id: &/'
} }
outbox=$(mhdr -h outbox ~/.santoku/profile) outbox=$(mhdr -h outbox ~/.mblaze/profile)
if [ -z "$outbox" ]; then if [ -z "$outbox" ]; then
i=0 i=0
while [ -f "snd.$i" ]; do while [ -f "snd.$i" ]; do
@ -42,9 +42,9 @@ fi
echo "Cc: " echo "Cc: "
echo "Bcc: " echo "Bcc: "
echo "Subject: " echo "Subject: "
from=$(mhdr -h local-mailbox ~/.santoku/profile) from=$(mhdr -h local-mailbox ~/.mblaze/profile)
[ "$from" ] && echo "From: $from" [ "$from" ] && echo "From: $from"
cat ~/.santoku/headers 2>/dev/null cat ~/.mblaze/headers 2>/dev/null
msgid msgid
echo echo
echo echo
@ -66,7 +66,7 @@ fi
s=${s#[Ff][Ww][Dd]:} s=${s#[Ff][Ww][Dd]:}
done done
echo "Subject: Re: $s" echo "Subject: Re: $s"
cat ~/.santoku/headers 2>/dev/null cat ~/.mblaze/headers 2>/dev/null
echo -n "References:" echo -n "References:"
{ {
mhdr -h references "$1" mhdr -h references "$1"

@ -31,7 +31,7 @@ int main()
char hostbuf[1024]; char hostbuf[1024];
char *host = 0; char *host = 0;
char *f = blaze822_home_file(".santoku/profile"); char *f = blaze822_home_file(".mblaze/profile");
struct message *config = blaze822(f); struct message *config = blaze822(f);
if (config) // try FQDN: first if (config) // try FQDN: first
@ -74,7 +74,7 @@ int main()
if (!host) { if (!host) {
fprintf(stderr, fprintf(stderr,
"mgenmid: failed to find a FQDN for the Message-ID.\n" "mgenmid: failed to find a FQDN for the Message-ID.\n"
" Define 'FQDN:' or 'Local-Mailbox:' in ~/.santoku/profile\n" " Define 'FQDN:' or 'Local-Mailbox:' in ~/.mblaze/profile\n"
" or add a FQDN to /etc/hosts.\n"); " or add a FQDN to /etc/hosts.\n");
exit(1); exit(1);
} }

@ -275,7 +275,7 @@ main(int argc, char *argv[])
if (cols <= 40) if (cols <= 40)
cols = 80; cols = 80;
char *f = blaze822_home_file(".santoku/profile"); char *f = blaze822_home_file(".mblaze/profile");
struct message *config = blaze822(f); struct message *config = blaze822(f);
if (config) { if (config) {

@ -185,7 +185,7 @@ stdinmode()
// XXX locking? // XXX locking?
seqfile = getenv("MAILSEQ"); seqfile = getenv("MAILSEQ");
if (!seqfile) if (!seqfile)
seqfile = blaze822_home_file(".santoku/seq"); seqfile = blaze822_home_file(".mblaze/seq");
snprintf(tmpfile, sizeof tmpfile, "%s-", seqfile); snprintf(tmpfile, sizeof tmpfile, "%s-", seqfile);
snprintf(oldfile, sizeof oldfile, "%s.old", seqfile); snprintf(oldfile, sizeof oldfile, "%s.old", seqfile);
outfile = fopen(tmpfile, "w+"); outfile = fopen(tmpfile, "w+");

@ -757,7 +757,7 @@ main(int argc, char *argv[])
if (!(qflag || rflag)) { if (!(qflag || rflag)) {
char *f = getenv("MAILFILTER"); char *f = getenv("MAILFILTER");
if (!f) if (!f)
f = blaze822_home_file(".santoku/filter"); f = blaze822_home_file(".mblaze/filter");
if (f) if (f)
filters = blaze822(f); filters = blaze822(f);
} }

@ -42,7 +42,7 @@ blaze822_seq_open(char *file)
if (!file) if (!file)
file = getenv("MAILSEQ"); file = getenv("MAILSEQ");
if (!file) if (!file)
file = blaze822_home_file(".santoku/seq"); file = blaze822_home_file(".mblaze/seq");
fd = open(file, O_RDONLY); fd = open(file, O_RDONLY);
if (!fd) if (!fd)
return 0; return 0;
@ -127,7 +127,7 @@ blaze822_seq_cur()
char *curlink = getenv("MAILCUR"); char *curlink = getenv("MAILCUR");
if (!curlink) if (!curlink)
curlink = blaze822_home_file(".santoku/cur"); curlink = blaze822_home_file(".mblaze/cur");
int r = readlink(curlink, b, sizeof b - 1); int r = readlink(curlink, b, sizeof b - 1);
if (r < 0) if (r < 0)
@ -142,7 +142,7 @@ blaze822_seq_setcur(char *s)
char curtmplink[PATH_MAX]; char curtmplink[PATH_MAX];
char *curlink = getenv("MAILCUR"); char *curlink = getenv("MAILCUR");
if (!curlink) if (!curlink)
curlink = blaze822_home_file(".santoku/cur"); curlink = blaze822_home_file(".mblaze/cur");
if (snprintf(curtmplink, sizeof curtmplink, "%s-", curlink) >= PATH_MAX) if (snprintf(curtmplink, sizeof curtmplink, "%s-", curlink) >= PATH_MAX)
return -1; // truncation return -1; // truncation

Loading…
Cancel
Save