[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] Feature requests (or explanation of how to do 'em if a

From: David Levine
Subject: Re: [Nmh-workers] Feature requests (or explanation of how to do 'em if already there)
Date: Sat, 25 Oct 2014 10:15:50 -0400

Ralph wrote:

> Hi Ken,
> > %<{delivered-to}%<(match address@hidden)
> > From: Ken Hornstein <address@hidden>
> > %(void(num 1))%|(void(num))%>%>
> > %<(zero)\
> > From: Ken Hornstein <address@hidden>
> > %>
> Assuming Jon's addresses are address@hidden then he might find
> %(amatch) useful to match the start of the address for `jon-' and
> %(host) to check just the domain part.

That assumption might not hold.  It doesn't for my addresses.

How about we add a getmymbox function escape?  It would do
what mymbox does, except return the user's (first matching)
mailbox name instead of 0/1.  It would return null if no
match, to support:

%<(nonnull(getmymbox{to}))From: %(getmymbox{to})\
%?(nonnull(getmymbox{cc}))From: %(getmymbox{cc})\
%|From: %(localmbox)%>

I wrote:

# Add this to your profile:
#   mhstore-store-text/html: %m%P.html
# We could add it to mhn.defaults.  But it would be nice to have a
# more general solution.

I added that to mhn.defaults.  To start on something more general,
I'd like to determine a filename for a MIME part using something
like the first of:

1) Content-Disposition
2) filename parameter of Content-Type
3) if Content-Type is application/octet-stream or text/plain,
       try to substitute what MIMETYPEPROC finds;
   infer from Content-Type as we do now


reply via email to

[Prev in Thread] Current Thread [Next in Thread]