I'm using procmail to ingest incoming messages. The goal is to split the message body into chunks and forward those to a different adddress. Here's a sample of the message body:
The trick is to extract anything between the 2 delimiters (/^Host:/ && /^Created:/) and mail them. The sample above should result in 3 distinct messages:
Message1:
Message2:
Message3:
Thanks for the help!
Waltari
Last edited by Scott; 06-14-2013 at 10:11 AM..
Reason: Please use code tags
Hi, I am trying to include a message along with an attachment with an email using mailx on AIX.
uuencode Test.dat Test.dat| mailx -s 'Testing' mymail@yahoo.com < MESGFILE
This only gives me the contents of MESGFILE as my message.
If I remove the < FILE I recieve the attachment.
What... (4 Replies)
Friends,
I have a datafile that have unknown a number of CHARACTERS.
if the datafile have more than 1 character and less than 20
email me the file
rm datafile
if the datafile have more than 20 characters
split the datafile into 20 characters in each file
email datafileaa
email... (4 Replies)
I'm trying to install : Procmail 3.22
onto a : E10K domain
running : Solaris 2.6 Generic_105181-35
I untar the file to /stage/procmail-3.22.
When I run the command: /usr/ccs/bin/make install
I get the following message, then the install aborts:
License Error : Cannot find license... (2 Replies)
Hi All,
I want to send a message through email.
I have written below code. But it is not worling. Anybody has idea, why it is not working?.
export $file1=$home1/pip1.$$
mailx -s "This Message from unix" abc@yahoo.com< $file1
thanks,Mary. (5 Replies)
i have a file new1.txt
i want to send the contents of that file as a message to email ali@sms.com
i m using ksh script.........
plz help me (5 Replies)
I have created a script which will monitor disk space in unix, it will send an email alert that will notify the specified receipients. I used echo in the mailx command but the email doesnt contain any message. I have used printf to store the message ($message2) and when tried to display on the... (2 Replies)
I am using mailx command to send emails from the Unix command prompt. Whenever email is not sent it is not giving me any message "Email not sent" or failure delivery notice for the wrong email addresses. When I give correct email address I am able to receive them correctly.
Can anyone please... (0 Replies)
ssmtp has been running well under Kubuntu 12.04.1 for plain text messages. I would like to send html messages with ssmtp -t < /path/to/the/message.txt, but I cannot seem to get the message.txt file properly formatted. I have tried various charsets,
Content-Transfer-Encoding, rearranging the... (0 Replies)
I am making use of the following code to display the results of my txt file in an email:
mail -s 'Count Validation Test Comparison Results' Ronit@XYZ.com < Count_Validation_Results_`date +%m%d%Y`.txt
Email Output:
----------Query 1 Count Validation Results--------
Source count is 4
Target... (7 Replies)
Discussion started by: ronitreddy
7 Replies
LEARN ABOUT DEBIAN
gpgmailtunl
GPGMAILTUNL(1p) User Contributed Perl Documentation GPGMAILTUNL(1p)NAME
gpgmailtunl - Encrypts an email message into the body of another email.
SYNOPSIS
gpgmailtunl [options] --encrypt | --decrypt
DESCRIPTION
gpgmailtunl is a filter program that either encrypts an email message using the Gnu Privacy Guard and sends it to another recipient or
decrypt an email message and forwards unencrypted to another destination.
It can be used to exchange emails across an open network betweeen two trusted systems.
TYPICAL USAGE
This program is intended to run from program like procmail or sendmail to create an email tunnel between two systems. Of course this is
not as secure as using gpg as an end user program, it may be convenient in certain case.
ENCRYPTION
To encapsulates an email within another you pipe the message to gpgmailtunl.
OPTIONS
GetOptions( \%opt, "encrypt", "decrypt", "sign", "secret-file=s", "from=s", "to=s", "subject=s", "homedir=s", "local-user=s",
"recipient=s", )
or usage;
to This is the address to which the encrypted message will be sent. This is the only required fields.
recipient
This sets the keyid that will be used to encrypt the outgoing message. If unset, gpgmailtunl will try to find a key matching the to
option.
subject
Sets the subject of the outgoing message. This defaults to "Encrypted mail".
from
Sets the From header line of the outgoing message which will contains the encrypted one. sendmail will provides a default one if this
is not set.
sign
If this option is used, the outgoing message will be signed. In this case you should probably use to local-user and secret-file
options.
secret-file
File from which the secret to unlock the private used to sign the message can be read.
local-user
The keyid of the user that should sign the outgoing message. The default user will be used if not specified.
homedir
Sets an alternate gpg home directory. (This is where the keyrings are stored.)
DECRYPTION
To extract an email to be forwarded to the final user you pipe the encrypted email to gpgmailtunl using the decrypt switch.
Once decrypted, the encapsulated email message will be sent to the original destinator of the message.
OPTIONS
homedir
Sets an alternate gpg home directory. (This is where the keyrings are stored.)
secret-file
File from which the secret to unlock the private used to decrypt the message can be read.
AUTHOR
Francis J. Lacoste <francis.lacoste@iNsu.COM>
COPYRIGHT
Copyright (c) 1999, 2000 iNsu Innovations Inc.
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 2 of the License, or (at your option) any later version.
SEE ALSO gpg(1)gpgmailtunl(1)GnuPG(3)perl v5.14.2 2011-11-22 GPGMAILTUNL(1p)