[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-mailutils] $
From: |
Sergey Poznyakoff |
Subject: |
Re: [bug-mailutils] $ |
Date: |
Fri, 20 Oct 2006 10:17:38 +0300 |
D. E. Evans <address@hidden> wrote:
> I took the natural step after "mail -f $HOME/mbox" to "$" to the end
> of the page, as is typical of BSD Mail, and mailx, and for which the
> mailutils info doc indicates is normal behaviour. What I get, however,
> is "Unknown command: $"
Yes, it is not supported as well as ^. To implement these, try the
following patch:
Index: mail/util.c
===================================================================
RCS file: /cvsroot/mailutils/mailutils/mail/util.c,v
retrieving revision 1.87
diff -p -u -r1.87 util.c
--- mail/util.c 27 Sep 2006 16:12:07 -0000 1.87
+++ mail/util.c 20 Oct 2006 07:08:57 -0000
@@ -87,7 +87,9 @@ util_do_command (const char *c, ...)
char *p;
/* Special case: a number alone implies "print" */
- if (argc == 1 && strtoul (argv[0], &p, 10) > 0 && *p == 0)
+ if (argc == 1
+ && ((strtoul (argv[0], &p, 10) > 0 && *p == 0)
+ || (argv[0][1] == 0 || strchr("^$", argv[0][0]))))
{
asprintf (&p, "print %s", argv[0]);
mu_argcv_free (argc, argv);
> P.S. A "~a" adds my signature fine, but neglects to properly prepend the
> rfc requisite "-- " which I've had to use a separate signature file to
> have included the dash/space.
Another patch:
Index: mail/escape.c
===================================================================
RCS file: /cvsroot/mailutils/mailutils/mail/escape.c,v
retrieving revision 1.5
diff -p -u -r1.5 escape.c
--- mail/escape.c 27 Jun 2006 13:07:56 -0000 1.5
+++ mail/escape.c 20 Oct 2006 07:13:52 -0000
@@ -236,6 +236,7 @@ escape_sign (int argc ARG_UNUSED, char *
if (util_getenv (&p, isupper (argv[0][0]) ? "Sign" : "sign",
Mail_env_string, 1) == 0)
{
+ fputs ("-- \n", ofile);
if (isupper (argv[0][0]))
{
char *name = util_fullpath (p);
Regards,
Sergey
- [bug-mailutils] $, D. E. Evans, 2006/10/19
- Re: [bug-mailutils] $,
Sergey Poznyakoff <=