Mailing List Archive

Isolating text body
Hi,

I just found out about ripmime while searching the web for a solution to
something that's delaying my final move from Windows to Linux.

You see, I have been using Eudora as a mail client for quite a while, and a
feature of it which I have been unable to identify in any of the free
mailers is the separation between the attachment and the message body
itself. Eudora puts the attachment in a separate folder, while keeping the
textbody in its mail folders. This is nice because it allows me to delete
the attachment without deleting the message along with it -- usually I like
to keep such messages as a record of what went on.

Now ripmime provides us with the possibility of automatically creating the
equivalent of Eudora's attachment folder -- but can it at the same time
delete the attachment from the message file, so the message file can become
quite small?

If it can, please tell me how to do so; if it doesn't, wouldn't this be a
nice feature, specially if you can wrap a daemon of sorts around it, so
that it constantly monitors the incoming mail box?

Congratulations on a great idea and a fine utility.

Regards,

Clodoveu Davis
Belo Horizonte, Brazil
Re: Isolating text body [ In reply to ]
> body itself. Eudora puts the attachment in a separate folder, while
> keeping the textbody in its mail folders. This is nice because it allows

Yes, I remember this 'feature' well ( some would say it's a pain, others loved it... the joy of 'features' ).


> Now ripmime provides us with the possibility of automatically creating
> the equivalent of Eudora's attachment folder -- but can it at the same
> time delete the attachment from the message file, so the message file
> can become quite small?

This is really a feature which I'd say belongs in 'alterMIME'. The intent if ripMIME is not to alter an existing mailpack, but rather produce a decomposed copy of it ( ie, attachments ).

Irrespective, lets say we're talking about alterMIME, alterMIME currently does have the ability to 'nullify' attachments, however, you do need to know the names of them in advance ( okay, here we could use the output of ripMIME *cough* ).

> If it can, please tell me how to do so; if it doesn't, wouldn't this be
> a nice feature, specially if you can wrap a daemon of sorts around it,
> so that it constantly monitors the incoming mail box?

While that strictly is outside of my own focus for ripMIME and alterMIME, I'm certainly not one to throw away a good idea.

I'll look at giving alterMIME the ability to 'render' an email to something which would be like what you're seeing in Eudora.

Kind Regards.

--
Paul L Daniels http://www.pldaniels.com
Linux/Unix systems Internet Development
ICQ#103642862,AOL:cinflex,IRC:inflex
A.B.N. 19 500 721 806
Re: Isolating text body [ In reply to ]
Hi Paul,

Thanks for your answer.

I found out about altermime just after I sent the message, and I think it can
work out for me.

You see, if I can prepare ripMIME and alterMIME command lines in a script that
can be executed in a mail-client filter (KMail, for instance, has this
ability), the problem would be mostly solved. The script would be triggered
by, say, the presence of the word "attachment" anywhere in the message.

Something like this:

ripmime -i $1 -d $HOME/Mail/attachments
altermime --input=$1 --removeall
rm $HOME/Mail/attachments/textfile* $HOME/Mail/$1.old

This could be greatly improved if alterMIME, instead of replacing filenames
with "removedn" or, rather, prefix"n", would preserve the original filenames,
possibly prefixing them with the name of the attachments directory.

Therefore, a new command line option for alterMIME would perhaps be enough,
something in the lines of "--preservefilenames" ... so that the altermime
command line above would become something like

altermime --input=$1 --removeall --preservefilenames
--removeprefix=$HOME/Mail/

How about that? Of course, as soon as I have the script, I'll be happy to
provide it to you, so you can distribute it for people with needs similar to
mine.

Best regards,

Clodoveu Davis
Belo Horizonte, Brazil


> I'll look at giving alterMIME the ability to 'render' an email to something
> which would be like what you're seeing in Eudora.
>
> Kind Regards.