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

Re: Extrahieren von Attachments



#include <hallo.h>
Tille, Andreas wrote on Fri Mar 01, 2002 um 01:57:04PM:
> ich möchte eine automatische Datenübertragung per E-Mail organisieren.
> Dazu lasse ich mir Mails mit einem bestimmten Subject schicken.
> Kann man das Attachment dieser Mails per procmail extrahieren oder
> muß ich dazu andere MIttel verwenden.  Ich habe zumindest in den
> Procmail man pages nichts dazu gefunden.


#!/bin/bash
export PATH=$PATH:/bin:/usr/bin:/usr/local/bin
cd /tmp
wd=`date +%m%s`
zd="/var/misc/access.logs";
mkdir $wd
cd $wd
datei=`munpack 2>/dev/null | cut -f1 -d " "`
cp $datei $zd

Gruss/Regards,
Eduard.
-- 
We just typed make... 
(Stephen Lambrigh, Director of Server Product Marketing at Informix
 about porting their Database to Linux)



Reply to: