Weblog entry #4 for e5z8652

Appropriate mailx
Posted by e5z8652 on Mon 9 Jun 2008 at 19:06
Tags: none.
I am used to mail acting like the standard mail reader and a bare-bones text only user agent, and mailx acting like a more fully featured system, with the single killer feature that you can attach arbitrary files to it with with 'mailx -a foo'.

On Debian systems, mail and mailx are just symlinks to the same binary, and by default you get the basic version with mailutils. With the mailutils version the -a flag appends headers to the message, which I rarely have any need to do.

If you want the appropriate mailx behavior on Lenny, install the heirloom-mailx package. On Etch, install nail.

 

Comments on this Entry

Posted by Anonymous (210.211.xx.xx) on Thu 12 Jun 2008 at 10:42
Yeah, adding attachments to a mail for scripting can be a little tricky.

I settled on mutt -a as my solution, written up in:

http://blogs.srijan.in/2008/06/06/automatically-mailing-a-daily-b ackup/

I had no idea of the alternatives you suggested existed. This site is pretty
good that way.

PJ

[ Parent | Reply to this comment ]

Posted by Anonymous (217.91.xx.xx) on Wed 18 Jun 2008 at 14:09
sendEmail also works well and can send attachments: http://packages.debian.org/lenny/sendemail

[ Parent | Reply to this comment ]

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search