* muile/guile: use mu:current-msg for the current message, update docs
This commit is contained in:
@ -509,7 +509,7 @@ mu_guile_msg_load_current (const char *path)
|
||||
}
|
||||
|
||||
msgsmob = mu_guile_msg_to_scm (msg);
|
||||
scm_c_define ("mu:current", msgsmob);
|
||||
scm_c_define ("mu:current-msg", msgsmob);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@ -70,8 +70,17 @@
|
||||
(see the documentation on --muhome in the mu-find manpage).
|
||||
|
||||
And there is --msg=<path> where you specify some particular message file;
|
||||
it will be available as 'mu:current' in the guile (muile) environment.
|
||||
it will be available as 'mu:current-msg' in the guile (muile) environment. For
|
||||
example:
|
||||
|
||||
,----
|
||||
| ./muile --msg=~/Maildir/inbox/cur/1311310172_1234:2,S
|
||||
| [...]
|
||||
| scheme@(guile-user)> mu:current-msg
|
||||
| $1 = #<msg /home/djcb/Maildir/inbox/cur/1311310172_1234:2,S>
|
||||
| scheme@(guile-user)> (mu:msg:size mu:current-msg)
|
||||
| $2 = 7206
|
||||
`----
|
||||
|
||||
** What about searching messages in the database?
|
||||
|
||||
|
||||
@ -43,7 +43,7 @@ muile_config_new (int *argcp, char ***argvp)
|
||||
{"muhome", 0, 0, G_OPTION_ARG_FILENAME, &opts->muhome,
|
||||
"specify an alternative mu directory", NULL},
|
||||
{"msg", 0, 0, G_OPTION_ARG_FILENAME, &opts->msgpath,
|
||||
"specify path to a message to load as (mu:msg:current)", NULL},
|
||||
"specify path to a message to load as mu:current-msg)", NULL},
|
||||
{NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL}/* sentinel */
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user