Re: Mass Stripping Attachments by Directory, Age, Size

2021-04-05 Thread Aki Tuomi
> On 05/04/2021 07:37 Plutocrat wrote: > > > OK, an update on the progress with this. > > I finally settled on a python script which does the stripping based on code > here: > > http://code.activestate.com/recipes/302086-strip-attachments-from-an-email-message/ > > And then a bash

Re: Mass Stripping Attachments by Directory, Age, Size

2021-04-04 Thread Plutocrat
OK, an update on the progress with this. I finally settled on a python script which does the stripping based on code here:    http://code.activestate.com/recipes/302086-strip-attachments-from-an-email-message/ And then a bash script using find that allows

Re: Mass Stripping Attachments by Directory, Age, Size

2021-04-01 Thread justina colmena ~biz
Well ain't that rich? To use an allegory of sorts, we're going to have start using staples rather than paperclips ️ with our email attachments, and one unified digital signature on the whole message as sent rather than a separate signature for each enclosure as commonly "done" with PGP,

Re: Mass Stripping Attachments by Directory, Age, Size

2021-03-30 Thread Plutocrat
Still can't find the magic solution to this. - My PERL isn't good enough to re-purpose strip-attachments.pl so it works on individual emails. - ripmime works to extract attachments only - altermime looked good and would delete all attachments from a directory of emails. However it messed up

Re: Mass Stripping Attachments by Directory, Age, Size

2021-03-20 Thread Plutocrat
On 19/03/2021 07.31, Joseph Tam wrote: >> I've found the strip_attachments.pl script here < https://fossies.org/linux/Mail-Box/examples/strip-attachments.pl> which works fine on mbox (as tested on my local Thunderbird mboxes), but not on maildir which is on the dovecot server. My Perl isn't strong

Re: Mass Stripping Attachments by Directory, Age, Size

2021-03-20 Thread Plutocrat
On 18/03/2021 16.52, Steven Varco wrote: > I would like such a feature too, but instead of deleting the atatchment files, I would like to „detach“ the files and save them into a sperate directory, which could be on a different storage like a share in the users home directory or even S3 and then

Re: Mass Stripping Attachments by Directory, Age, Size

2021-03-18 Thread Joseph Tam
On Thu, 18 Mar 2021, Plutocrat wrote: I've been looking around for a solution to this problem. I want to prune down the attachments on a server before a migration. Some of the emails are 7 years old and have 40Mb attachments, so this seems like a good opportunity to rationalize things. So

Re: Mass Stripping Attachments by Directory, Age, Size

2021-03-18 Thread Steven Varco
I would like such a feature too, but instead of deleting the atatchment files, I would like to „detach“ the files and save them into a sperate directory, which could be on a different storage like a share in the users home directory or even S3 and then replace the attachment in the Mail with a

Mass Stripping Attachments by Directory, Age, Size

2021-03-18 Thread Plutocrat
Hi, I've been looking around for a solution to this problem. I want to prune down the attachments on a server before a migration. Some of the emails are 7 years old and have 40Mb attachments, so this seems like a good opportunity to rationalize things. So perhaps I'd like to "Remove all