Gunnar Ritter | 1 Jun 16:33 2006
Picon

Re: Move backwards command doesn't seem to work

"Paul Gardiner" <postfix@...> wrote:

> Sorry, not really a development question, but I didn't know where
> else to ask:
>
> I can't get the move backward command to work. A plane '-' is
> fine, but docs say it can take a numerical argument.

Which documents?

	Gunnar

-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
S. K. Dybvig | 1 Jun 16:40 2006

running imapd preauthorized through ssh tunnel

To avoid either typing in my password each time I check mail or storing 
my password in my .mailrc file, I would like to have mailx connect to 
/usr/bin/imapd on the remote server through an ssh tunnel, much as one 
can do with pine (by using symbolic links to trick it into thinking that 
ssh is really rsh and that imapd is really rimapd) or fetchmail.  Is 
there any support built-in for doing this?  Are there other ways to 
solve the problem?  If not, I may try to make and contribute
back the necessary modifications to mailx myself, and I would appreciate 
any suggestions for how to proceed.

-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
Paul Gardiner | 1 Jun 17:13 2006
Picon

Re: Move backwards command doesn't seem to work

From: "Gunnar Ritter" <gunnarr@...>
> "Paul Gardiner" <postfix@...> wrote:
> 
>> Sorry, not really a development question, but I didn't know where
>> else to ask:
>>
>> I can't get the move backward command to work. A plane '-' is
>> fine, but docs say it can take a numerical argument.
> 
> Which documents?

Er... maybe I'm misreading it.  The two places I'm looking at are

http://heirloom.sourceforge.net/mailx/mailx.1.html

and the man page on SuSE 10.1

Cheers,
    Paul.

-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
onlinesolution1 | 1 Jun 20:22 2006
Picon

Refinance For Cash!

You are receiving this message as an opt-in subscriber to Pathserve or one of our marketing partners.
If you no longer wish to receive further offers, please send an email with discontinue to: rem-w+rOV7nJchMqcZcGjlUOXw@public.gmane.org
Your email address will be removed within 24 hours.


Pathserve.net
27 Russel Ave
Edgewater, NJ
07020

------------------------------------------------------- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642

Gunnar Ritter | 1 Jun 19:29 2006
Picon

Re: running imapd preauthorized through ssh tunnel

"S. K. Dybvig" <skdybvig@...> wrote:

> To avoid either typing in my password each time I check mail or storing 
> my password in my .mailrc file, I would like to have mailx connect to 
> /usr/bin/imapd on the remote server through an ssh tunnel, much as one 
> can do with pine (by using symbolic links to trick it into thinking that 
> ssh is really rsh and that imapd is really rimapd) or fetchmail.  Is 
> there any support built-in for doing this?

No. As far as I understand, this basically is IMAP on stdin/stdout
instead of a TCP socket. This is currently not possible.

> Are there other ways to solve the problem?

Kerberos/GSSAPI authentication also works without making a password
known to mailx.

> If not, I may try to make and contribute
> back the necessary modifications to mailx myself, and I would appreciate 
> any suggestions for how to proceed.

Get the current version from CVS.

Extend sopen() in fio.c to create a pipe to an arbitrary command.
Extend the other related s...() functions to use that pipe instead
of a socket. Invent a reasonable syntax to make the new functionality
accessible with the "folder" command. Document it in the manual page.

Send the changes as a unified diff.

	Gunnar

-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
Gunnar Ritter | 1 Jun 19:31 2006
Picon

Re: Move backwards command doesn't seem to work

"Paul Gardiner" <postfix@...> wrote:

> From: "Gunnar Ritter" <gunnarr@...>
> > "Paul Gardiner" <postfix@...> wrote:
> > 
> >> Sorry, not really a development question, but I didn't know where
> >> else to ask:
> >>
> >> I can't get the move backward command to work. A plane '-' is
> >> fine, but docs say it can take a numerical argument.
> > 
> > Which documents?
>
> Er... maybe I'm misreading it.

Yes. I think you would have to use a single "-" multiple times.

	Gunnar

-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
Clint Whaley | 2 Jun 01:10 2006

optionally viewing attachments

Guys,

First, many thanks to Gunnar for this great tool!  I've been using mail for
a very long time, and like it, but handling attachments and so on was a real
pain.  A sysadmin pointed me at nail, and it is a beautiful thing :)

I'm trying to get some stuff set up, and I have some newbie questions I've
yet to figure out.  First, I like the idea of only opening attachments when
I ask for it.  Gunnar had this to say last year:

> Another possibility is to have a second set of pipe-x/y-style variables
> that would not be effective with the regular "print" and "next" commands,
> but with a special "print-a-trusted-message" one.

I don't suppose this was ever added, I guess?  That would be ideal for me:
doing next gets me normal message without doing anything external to
attachments, but I can invoke a special-print anytime I want to fire up 
external programs on the attachments . . .

In the meantime, I'm doing something rather crude, and I post it here in
case it helps someone, or perhaps someone can suggest a more elegent or
flexible way to do something like it.  What I've got now is I don't fire
up any external viewers by default, and when I need to, I do a "call wa"
(write attachment).  This is defined in my .nailrc as:

====================
define wa {
   ! rm -f /home/whaley/.nailatt/*
   cd /home/whaley/.nailatt
   w /dev/null
   ! /home/whaley/local/bin/da.sh
   cd
}
====================

da.sh is a shell script, defined as follows:
====================
#!/bin/sh

for file in /home/whaley/.nailatt/*
do

   new=`echo "${file}" | sed -e "s/\.pdf//"`
#   echo $new, $file
   if [ -e "${new}.pdf" ]
   then
      xpdf ${new}.pdf
   fi

   new=`echo "${file}" | sed -e "s/\.ps//"`
   if [ -e ${new}.ps ]
   then
      gv ${new}.ps
   fi

   new=`echo "${file}" | sed -e "s/\.gif//"`
   if [ -e ${new}.gif ]
   then
      display ${new}.gif
   fi

   new=`echo "${file}" | sed -e "s/\.png//"`
   if [ -e ${new}.png ]
   then
      display ${new}.png
   fi

   new=`echo "${file}" | sed -e "s/\.jpg//"`
   if [ -e ${new}.jpg ]
   then
      display ${new}.jpg
   fi
====================

Here are some improvements I'd like if someone knows how to do them:
   (1) Is there a way to pass an argument to a definition, so that
       I could give a message number to write?  If so, can we also
       say "use the current" message if that arg is not defined?"
   (2) Is there some way to tell write to only ask me for the name of
       unnamed attachments?
   (3) Is there a way to pipe the attachment names directly to my
       script, so I don't have to do the "file in *" trick?
   (4) Can you pass a directory somehow to write, to avoid the cd
       back and forth that I do?
   (5) Could make the script fancy, so it creates a unique subdir for
       viewing, and is started in background, so that it doesn't block,
       then you would not have to quit each attachment to see the next,
       and indeed could displaying multiple message's attachment at
       once (would require waiting until xpdf completes before deleting
       the file, obviously).
   (6) More elegant way to accomplish same functionality.

Any tips appreciated,
Clint
Paul Gardiner | 2 Jun 01:15 2006
Picon

Re: Move backwards command doesn't seem to work

From: "Gunnar Ritter" <gunnarr@...>
> "Paul Gardiner" <postfix@...> wrote:
> 
>> From: "Gunnar Ritter" <gunnarr@...>
>> > "Paul Gardiner" <postfix@...> wrote:
>> > 
>> >> Sorry, not really a development question, but I didn't know where
>> >> else to ask:
>> >>
>> >> I can't get the move backward command to work. A plane '-' is
>> >> fine, but docs say it can take a numerical argument.
>> > 
>> > Which documents?
>>
>> Er... maybe I'm misreading it.
> 
> Yes. I think you would have to use a single "-" multiple times.

That's not so attractive.  What does it mean by numeric argument?

Cheers,
    Paul.
Gunnar Ritter | 2 Jun 14:51 2006
Picon

Re: optionally viewing attachments

Clint Whaley <whaley@...> wrote:

> > Another possibility is to have a second set of pipe-x/y-style variables
> > that would not be effective with the regular "print" and "next" commands,
> > but with a special "print-a-trusted-message" one.
>
> I don't suppose this was ever added, I guess?

No. Personally, I am fine with the attachment handling as it is,
so I will not invest time improving it. I would be willing to
integrate a reasonable contribution.

> Here are some improvements I'd like if someone knows how to do them:
>    (1) Is there a way to pass an argument to a definition, so that
>        I could give a message number to write?  If so, can we also
>        say "use the current" message if that arg is not defined?"

No.

>    (2) Is there some way to tell write to only ask me for the name of
>        unnamed attachments?

No.

>    (3) Is there a way to pipe the attachment names directly to my
>        script, so I don't have to do the "file in *" trick?

I don't think so.

	Gunnar
Gunnar Ritter | 15 Jun 22:32 2006
Picon

mailx 12.1 released

Hi,

Heirloom mailx 12.1 has been released and is available from
<http://heirloom.sourceforge.net/mailx.html>.

	Gunnar

[12.1] released 6/15/06
* The base64 encoder also used an invalid encoding for the last unit of
  data if (bytes_of_input % 3 == 1). As with the previous similar bug,
  most base64 decoders, including mailx's own, ignore such bits since
  base64 data is always a multiple of 8-bit bytes. (Patch by
  Lukasz Stelmach.)
* Quotes are now placed around the "protocol" parameter in S/MIME headers
  in accordance to RFC 2045 (Marco Arioli, Jeffrey Stedfast).
* The conversion of messages in state-dependent encodings has been fixed;
  garbage characters could be inserted because the state was not properly
  reset when a buffer was enlarged (patch by Matthew Fischer).
* A warning about an initalization of an unsigned value to -1 has been
  eliminated (patch by Matthew Sienkiewicz).
* Percent characters in the "prompt" variable are now handled correctly;
  values of "folder" beginning with an at character and longer than the
  maximum system path length do not cause a heap overflow anymore (patch
  by Ulf Harnhammar).

Gmane