HI !
I am working on FreeBSD pasteur.alize-sfl.com 4.4-STABLE FreeBSD
4.4-STABLE #1: Sun Oct 21 14:48:03 CEST 2001 with postfix as MTA.
Everyday I receive a mail with an attachement saved and treated by an
traitemail.
Here the procmailrc file with an forward file followed:
|/usr/local/bin/procmail
###################################
#fichier de config du procmail du compte giestock acheminant le stock
gie sur Nation
VERBOSE=yes
SHELL=/bin/sh
PATH=/bin:/usr/bin:/usr/local/bin
MAILDIR=/home/giestock/Mail
ORGMAIL=$MAILDIR/probleme
LOGMAIL=$MAILDIR/.procmailrc.log
:0 HBbc
* ^Subject:.*stock*
`Content-Type:.*name=.*\.dat` giestock.dat.$$
:0 HBabc
* ^Subject:.*stock*
| /home/giestock/traitemail
:0 Hbc
* ^Subject:.*stock*
! ddran(_at_)sfl(_dot_)com
#################################
I have to send again everyday to the user GIESTOCK the mail and
attachement in order to obtain an attachement saved this way:
su-2.05$ more Mail/giestock.dat.23924
--FL5UXtIhxfXey3p5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
02
--FL5UXtIhxfXey3p5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=STOCKGIE02
3133580121111 3
3133580128455 2
3260050014397 2
3260050014403 2
3260050024433 1
.............................
##############################
The attachement is not properly saved the first time, problem of
codage I think but cannot resolve it.
Here is the way the attachement is saved:
--NEXT_PART_1_1152036003_230_3562
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
--NEXT_PART_1_1152036003_230_3562
Content-Type: application/octet-stream; name="STOCKGIE"; type=Binary
Content-Disposition: attachment; filename="STOCKGIE"
Content-Transfer-Encoding: base64
MDcxNDI2NjkxMDEyNSAyMDAgICANCjMxMzM1ODAxMjExMTEgMyAgICAgDQozMTMzNTgwMTI4NDU1
IDIgICAgIA0KMzI2MDA1MDAxNDM5NyAyICAgICANCjMyNjAwNTAwMTQ0MDMgMiAgICAgDQozMjYw
MDUwMDI0NDMzIDEgICAgIA0KMzI2MDA1MDAyNjg0MCAyICAgICANCjMyNjAwNTAwNzQzMzkgMjAg
ICAgDQozMjYwMDUwMDk1Njg2IDEgICAgIA0KMzI2MDA1MDA5NjAwMyAxICAgICANCjMyNjAwNTAw
.............................................................................................................................................................................................
##################################
Sent by the firm you're working , in the mutt of the user GIESTOCK,
the mail appears like this:
delivered-To: giestock(_at_)sfl(_dot_)com
X-BrightmailFiltered: true
X-IronPort-AV: i="4.09,225,1157320800";
d="scan'208"; a="89190210:sNHT15518957312"
To: giestock(_at_)sfl(_dot_)com, exploit(_at_)livredif(_dot_)fr
From: exploit(_at_)livredif(_dot_)fr
Subject: STOCKGIE 27/09/06
Date: Wed, 27 Sep 2006 20:00:03 +0200
X-Antivirus: avast! (VPS 0639-3, 27/09/2006), Outbound message
X-Antivirus-Status: Clean
[-- Attachement #1 --]
[-- Type : text/plain, Codage : quoted-printable, Taille : 0.1K --]
[-- Attachement #2: STOCKGIE --]
[-- Type : application/octet-stream, Codage : base64, Taille : 1.4M --]
[-- application/octet-stream n'est pas disponible (utilisez 'v' pour
voir cette partie) --]
####################################################################
Re-sent by me to the user GIESTOCK The mail appears like this:
Delivered-To: giestock(_at_)sfl(_dot_)com
Date: Thu, 28 Sep 2006 09:50:39 +0200
From: Stock GIE <giestock(_at_)pasteur(_dot_)alize-sfl(_dot_)com>
To: giestock(_at_)sfl(_dot_)com
Subject: stockgie
User-Agent: Mutt/1.2.5i
[-- Attachement #1 --]
[-- Type : text/plain, Codage : 7bit, Taille : 0.1K --]
28
[-- Attachement #2: STOCKGIE28 --]
[-- Type : text/plain, Codage : 7bit, Taille : 1.1M --]
3133580121111 3
3133580128455 2
3260050014397 2
3260050014403 2
3260050024433 1
3260050026840 2
3260050066273 1
.............................
################################################
If you have any idea of how writing the procmailfile, I am not sure of
the first action line Iwrote:
`Content-Type:.*name=.*\.dat` giestock.dat.$$
thank you in advance for an helping hand
Dran Didier
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail