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

Re: mittels procmail Emailanhang (pdf) automatisch ausdrucken



Hello Rico Pietzsch,

Am 2010-09-03 15:43:07, hacktest Du folgendes herunter:
> mittels mupack(aus Paket mpack) bekomme ich aus der email per hand auch
> gut die PDF heraus. Ich hätte es aber gern via stdout zum pipen nach
> /usr/bin/lp ....

Wo ist das problem?

> Das geht mit mupack aber nicht. Das entpackt das File nach dem im Header
> angegebenen Dateinamen, welcher nicht leicht zu skripten ist.
> 
> Hat jemand eine Idee wie ich die PDF aus der Email sauber herausbekomme?
> Gibts da vielleicht bessre Tools als mpack?

:0:
* ^From:.*mistige_rechnung@sendende-firma\.de
{
  DUMMY_EXEC=`munpack ...`
  FILENAME=`formail -I '' |grep --regexp="filename=" |sed -e 's|.*filename=||' |tr -d ' '`
  DUMMY_EXEC=`cat ${PATH_TO_TMP_DIR}/${FILENAME} |usr/bin/lp`

  :0
  .Rechnungen/
}

Thanks, Greetings and nice Day/Evening
    Michelle Konzack

-- 
##################### Debian GNU/Linux Consultant ######################
   Development of Intranet and Embedded Systems with Debian GNU/Linux

itsystems@tdnet France EURL       itsystems@tdnet UG (limited liability)
Owner Michelle Konzack            Owner Michelle Konzack

Apt. 917 (homeoffice)
50, rue de Soultz                 Kinzigstraße 17
67100 Strasbourg/France           77694 Kehl/Germany
Tel: +33-6-61925193 mobil         Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix

<http://www.itsystems.tamay-dogan.net/>  <http://www.flexray4linux.org/>
<http://www.debian.tamay-dogan.net/>         <http://www.can4linux.org/>

Jabber linux4michelle@jabber.ccc.de
ICQ    #328449886

Linux-User #280138 with the Linux Counter, http://counter.li.org/

Attachment: signature.pgp
Description: Digital signature


Reply to: