Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Script output in Email is not showing Colored headers Post 302953220 by Bubs on Wednesday 26th of August 2015 04:36:02 AM
Old 08-26-2015
Hi

I did a | sendmail -t and I received an email but it was blank.

Last edited by rbatte1; 08-26-2015 at 06:23 AM.. Reason: Added ICODE tags
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

colored data output

Hi, I am working with HP-UX 11. I try to make an colored data output with echo. I tried the following: echo "\033]32m Red" This works perfectly in my terminal. But when I type the same at the hpterm, it does not work, the terminal just prints the complete text "\033]32m Red" without... (1 Reply)
Discussion started by: bensky
1 Replies

2. UNIX for Dummies Questions & Answers

help:how to remove headers in output file

Hi I am running a script (which compares two directory contents) for which I am getting an output of 70 pages in which few pages are blank so I was able to delete those blank lines. But I also want to delete the headers present for each page. can any one help me by providing the code... (1 Reply)
Discussion started by: raj_thota
1 Replies

3. UNIX for Dummies Questions & Answers

Zshell Colored output

Hi All, is there anyway to color the output following a shell command? For instance: $cat somefile.txt Hello, I am the contents of somefile.txt I'm using zsh, with ANSI colors enabled. Thanks! (0 Replies)
Discussion started by: tolmark
0 Replies

4. Shell Programming and Scripting

getting colored output in perl

Hello, I am scripting in perl and I need to get my output of the "print" statement in color. Please tell me how to go ahead. Radha (2 Replies)
Discussion started by: s123.radha
2 Replies

5. Shell Programming and Scripting

convert email headers' encoding?

hi all - first, huge thanks to anyone who might be able to help me out with this. it's fairly esoteric, but it seems like there has to be an answer for me... * the environment: mac os x 10.5.x server communigate pro (mail server) bash script (read on) * the brief: my script is... (5 Replies)
Discussion started by: fearboy
5 Replies

6. Shell Programming and Scripting

Colored output in awk

Hi, Can anybody please help me how can we can we have the colored output using awk. I am writing a script in solaris platform. but its not printing the colored output. its assuming hex values as character awk -F"|" '{ print "\033 \033[1;31mabcd|efg\033[0m \033[1;31mabcd|efg\033[0m... (1 Reply)
Discussion started by: vikash_k
1 Replies

7. Shell Programming and Scripting

Input file is uncolored; I want the output file to be colored on criteria

Hello, I have the following input file: auditing account: 3DTP (3dtp) ERROR: S3 bucket "aws-origin-test1.3dstage.com" has policy statement with public grant: {"Sid":"PublicReadGetObject","Effect":"Allow","Principal":{"AWS":"*"},"Action":,"Resource":} auditing region: eu-west-1 auditing... (5 Replies)
Discussion started by: ramky79
5 Replies

8. UNIX for Dummies Questions & Answers

Email Headers

I'm trying to pick up some Unix SysAdmin skills on my own outside of work through the use of the "Unix and Linux System Administrators Handbook." I've found the exercises to be very beneficial, until I came to this.... "What path did the email take? To Whom was it addressed, and to whom was it... (0 Replies)
Discussion started by: ksmarine1980
0 Replies

9. Shell Programming and Scripting

Script showing incorrect output

Hello scripting geeks, I am new to scripting and facing some issues in writing the logic of the script. Request your kind help here Actually when i run a command i get o/p as below o/p : 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 these are hex values i guess...now i want to... (15 Replies)
Discussion started by: kulvant29
15 Replies

10. Shell Programming and Scripting

Color not showing in output text when sent via email

Hi, I have a test script where I am trying to make a line color in RED. It works when I execute the command from command line but when I try to send the output of the script via mailx it will not show me the color and instead show this output: Command to send script output to email: ... (1 Reply)
Discussion started by: tkhan9
1 Replies
SM-ARCHIVE(1)															     SM-ARCHIVE(1)

NAME
sm-archive - a sendmail milter to add recipients to messages SYNOPSIS
sm-archive [-c] [-d n] [-p sendmail-socket] [-t timeout] OPTIONS
-c Load the configuration file, print a cannonical form of the configuration on stdout, and exit. -d n Set the debug level to n. -p sendmail-socket Set the socket used for the milter connection to sendmail. This is either "inet:port@ip-address" or "local:local-domain-sock- et-file-name". -t timeout Set the timeout in seconds used for communication with sendmail. USAGE
sm-archive -c sm-archive -d 10 -p local:sm-archive.sock INSTALLATION
This is now a standard GNU autoconf/automake installation, so the normal "./configure; make; su; make install" works. "make chkconfig" will setup the init.d runlevel scripts. Alternatively, you can use the source or binary RPMs at http://www.five-ten-sg.com/sm-archive/packages: http://www.five-ten-sg.com/sm-archive/packages. Note that this has ONLY been tested on Linux, specifically RedHat Linux. You will need at a minimum a C++ compiler with a minimally thread safe STL implementation. The distribution includes a test.cpp program. If it fails this milter won't work. If it passes, this milter might work. Modify your sendmail.mc by adding the following line in your sendmail.mc and rebuild the .cf file INPUT_MAIL_FILTER(`sm-archive', `S=local:/var/run/sm-archive/sm-archive.sock, F=T, T=C:30s;S:5m;R:5m;E:5m') Modify the default sm-archive.conf(5) configuration. CONFIGURATION
The configuration file is documented in sm-archive.conf(5). Any change to the config file, or any file included from that config file, will cause it to be reloaded within three minutes. INTRODUCTION
Consider the problem of archiving all the mail sent to or from particular email addresses or domains. This milter allows you to configure archive mailboxes for each address or domain. It will add the address of the archive mailbox to messages that pass thru this milter. The archive milter reads a text configuration file (sm-archive.conf) on startup, and whenever the config file (or any of the referenced in- clude files) is changed. The entire configuration file is case insensitive. If the configuration cannot be loaded due to a syntax error, the milter will log the error and quit. If the configuration cannot be reloaded after being modified, the milter will log the error and send an email to root from sm-archive@$hostname. You probably want to added sm-archive@$hostname to your /etc/mail/virtusertable since oth- erwise sendmail will reject that message. TODO
Placeholder for future ideas. COPYRIGHT
Copyright (C) 2007 by 510 Software Group <carl@five-ten-sg.com> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, please write to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. VERSION
1.7 2008-03-21 SM-ARCHIVE(1)
All times are GMT -4. The time now is 09:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy