rename .santoku to .mblaze

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

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

@ -1,4 +1,4 @@
#!/bin/sh
# mmairix QUERY - santoku wrapper around mairix
# mmairix QUERY - mblaze wrapper around mairix
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),
folders (which are Maildir folders),
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
.Pa ~/.santoku/cur ) .
.Pa ~/.mblaze/cur ) .
.Pp
Messages in the persisted sequence can be referred to using special
syntax as explained in

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

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

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

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

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

@ -31,7 +31,7 @@ int main()
char hostbuf[1024];
char *host = 0;
char *f = blaze822_home_file(".santoku/profile");
char *f = blaze822_home_file(".mblaze/profile");
struct message *config = blaze822(f);
if (config) // try FQDN: first
@ -74,7 +74,7 @@ int main()
if (!host) {
fprintf(stderr,
"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");
exit(1);
}

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

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

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

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

Loading…
Cancel
Save