[prev in list] [next in list] [prev in thread] [next in thread] 

List:       procmail
Subject:    Retaining Attachments When Autoreplying
From:       Eric Hilding <eric () hilding ! com>
Date:       2007-01-10 11:14:03
Message-ID: 001701c734a8$70a0e090$6a038bd8 () ownerf927ea04c
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


My generic autoresponder recipe that I simply clone over and over again for new uses \
works fine (see below but with 'me@myaddress' substituted).

After the autoreply is done, the email shows up in the AAAAinlogs.IN mailfolder okay, \
but any attachments are missing which I need to keep!  These will  be text files with \
either a <unique>.log filename.

===
> 0 hc
* !^FROM_DAEMON
* !^X-Loop:me@myaddress\.com
* ^TOme@myaddress\.com
{
> 0 fh
> formail -r -A"Precedence: junk" \
   -I"From: MY NAME<me@myaddress\.com>" \
   -I"Subject: RE: MY SUBJECT" \
   -A"X-Loop:me@myaddress\.com" ; cat $HOME/procmail/inlogs/autoreply.txt

> 0
> $SENDMAIL -oi -t
}

> 0 c:
* ^TOme@myaddress\.com
> formail -rtzxTo: >> $HOME/procmail/inlogs/emailsenders.log

> 0 a:
AAAAinlogs.IN
===

A 'Wish List' item would be to also copy/save any <uniquename>.log files in a \
separate folder for subsequent downloading.  In these cases, the <uniquename>.log \
filename would be the only entry in the incoming Subject line.  I searched back \
almost 2 years in posts, and found the following snippet, but not sure exactly how to \
integrate it so that everything works as needed witthout disrupting the autoreply \
venue.  There would be no 'processing' script involved on the Unix, however.

===
> 0 i
* ^To:.*address@somedomaine.tld
* ^Content-Type:.*multipart/mixed
* B ?? filename=.*\.dat
> /path/to/your/script
===

Thanks very much for any help.

Regards,

Eric


[Attachment #5 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>My generic autoresponder recipe that I simply clone 
over and over again for new uses works fine (see below but&nbsp;with <A 
href="mailto:'me@myaddress'">'me@myaddress'</A> substituted).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>After the autoreply is done, the email shows up in 
the AAAAinlogs.IN&nbsp;mailfolder okay, but any attachments are missing which I 
need to keep!&nbsp; These will&nbsp; be text files with either a 
&lt;unique&gt;.log filename.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>===</FONT></DIV>
<DIV><FONT face=Arial size=2>:0 hc<BR>* !^FROM_DAEMON<BR>* 
!^X-Loop:me@myaddress\.com<BR>* <A 
href="mailto:^TOme@myaddress\.com">^TOme@myaddress\.com</A><BR>{<BR>:0 fh<BR>| 
formail -r -A"Precedence: junk" \<BR>&nbsp;&nbsp; -I"From: MY NAME&lt;<A 
href="mailto:me@myaddress\.com">me@myaddress\.com</A>&gt;" \<BR>&nbsp;&nbsp; 
-I"Subject: RE: MY SUBJECT" \<BR>&nbsp;&nbsp; -A"X-Loop:me@myaddress\.com" ; cat 
$HOME/procmail/inlogs/autoreply.txt</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>:0<BR>| $SENDMAIL -oi -t<BR>}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>:0 c:<BR>* <A 
href="mailto:^TOme@myaddress\.com">^TOme@myaddress\.com</A><BR>| formail 
-rtzxTo: &gt;&gt; $HOME/procmail/inlogs/emailsenders.log</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>:0 a:<BR>AAAAinlogs.IN</FONT></DIV>
<DIV><FONT face=Arial size=2>===</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>A 'Wish List' item would be to also copy/save any 
&lt;uniquename&gt;.log files in a separate folder for subsequent 
downloading.&nbsp; In these cases, the &lt;uniquename&gt;.log filename would be 
the only entry in the incoming Subject line.&nbsp; I searched back almost 2 
years in posts, and found&nbsp;the following snippet, but not sure exactly how 
to integrate it so that everything works as needed witthout disrupting&nbsp;the 
autoreply venue.&nbsp; There would be no 'processing' script involved on the 
Unix, however.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>===</FONT></DIV>
<DIV><FONT face=Arial size=2>:0 i<BR>* ^To:.*address@somedomaine.tld<BR>* 
^Content-Type:.*multipart/mixed<BR>* B ?? 
filename=.*\.dat<BR>|/path/to/your/script</FONT></DIV>
<DIV><FONT face=Arial size=2>===</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks very much for any help.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Eric</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;</DIV></FONT></BODY></HTML>


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail@lists.RWTH-Aachen.DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic