procmail
[Top] [All Lists]

Re: converting .wav attachment to .mp3

2006-04-12 01:53:27
On 2006-04-10 21:20, Eric Wood wrote:
I tring to convert all .wav attachments with an .mp3 version.

Does anyone have a recipe that will

for every  .wav attachment
  strip .wav attachment from email
  mpg123 -w filename.wav filename.mp3
  append .mp3 replacement attachment

Or if stripping of the .wav attachment is a hassle, then would it be easier 
to just append the .mp3 attachment onto the email?

Not in a oneliner...

Google for "ytnef".  That is a package that hunts for tnef attachments,
unpacks it, and appends new attachments to it.
What you need is the perl program that handles this (about 100 lines).
The tnef decoding program used in it should be replaced by your
wav-to-mp3 program.



-- 
Paul Bijnens, xplanation Technology Services        Tel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM    Fax  +32 16 397.512
http://www.xplanation.com/          email:  
Paul(_dot_)Bijnens(_at_)xplanation(_dot_)com
***********************************************************************
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, ^^, *
* F6, quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* init 0, kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out          *
***********************************************************************


____________________________________________________________
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

<Prev in Thread] Current Thread [Next in Thread>