BB Unix Network Monitor - Message

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

Re: {bb} Email-Notification with attachment instead of text



Resent, as the original appears to have been dropped.

On Tue, 2007-09-11 at 09:10 +0200, Katharina Wolkwitz wrote:
> Hi Phil,
> 
> thanks for taking the time to answer my question.

You're welcome :)

> I've tried to understand the information of the thread you mentioned, but I have
> to admit that I failed...

Ah, I'm sorry about that. It did get a little convoluted.

> Of those options you've mentioned to me the first two are not feasible for me as
> I definitly lack the necessary programming skills.
> The third option might work, if I knew how to do it. ;-)

I think that option can be ruled out. The authors appear to be
determined not to provide that option, no matter how many people
they inconvenience.

> That leaves the fourth option. I'm willing to try it, but as I'm using the MUA
> that came with the SuSE-Linux-10.2-DVD and I didn't choose it specifically, I'm
> at a loss when it comes to choosing an alternative.
> Perhaps you can give my advice which MUA I should install.

Actually, that may not turn out to be the easiest option. It might
break other things and, unless there are packaged alternatives
available, might require you to go back to source code.

> The MUA my BB-Server is currently talking to and sending mails through
> identifies itself as:
> 
> Heirloom mailx 12.1 6/15/06

Which is apparently the new name for (you've guessed it) "nail" :(

> Sorry to be such a bother, but it would greatly simplify working with the
> BigBrother-mail-notification, if they arrived as simple text mails instead of
> attachments. :-)

Here is a "low impact" version of option #2. I've attached a one-line
wrapper script, called "maily" to conform to my warped sense of homour.
Drop that into the directory where your current mail command is (most
likely /usr/bin), and use "chmod" to ensure that it's executable.

Next, take a look at what is currently configured as MAIL in bbsys.sh.
If it's "/usr/bin/mail -s", you can simply change it to "/usr/bin/maily
-s" and it should work. If the command is "mailx", or something else,
you might also need to edit my script to point to the same command.

Once that is done, it should stop BB mail arriving with attachments.
Just let me know if it doesn't work for you and I'll try and work out
what went wrong.

Cheers, Phil.

----(attachment in-lined)----

#!/bin/sh

##
##  maily  --  A simple wrapper script for mailx that strips out MS-DOS
##             style line termination. This prevents Heirloom mailx
##             (formerly known as nail) from formatting the text as a
##             MIME attachment.

##  Set the mail command to whatever would normally be in bbsys.sh
cat - | tr -d '\015' | /usr/bin/mail "$@"



--
Neutrinos have bad breadth.


--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.


Home | Main Index | Thread Index