Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] Search for message by size
@ 2010-03-12 15:27 piotr.kempa
  2010-03-12 16:43 ` Juan Diego
  0 siblings, 1 reply; 3+ messages in thread
From: piotr.kempa @ 2010-03-12 15:27 UTC (permalink / raw)
  To: sup-talk

Hi there, 

Is there a way to search for messages in certain size range? I'm talking
about bytes here, like search for messages bigger than 1MB (e.g. for
making your maildirs smaller by cutting those 50MB emails from years
ago). 

I can't find anything on the wiki or this mailing list...

Thanks!
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [sup-talk] Search for message by size
  2010-03-12 15:27 [sup-talk] Search for message by size piotr.kempa
@ 2010-03-12 16:43 ` Juan Diego
  2010-03-15  9:11   ` piotr.kempa
  0 siblings, 1 reply; 3+ messages in thread
From: Juan Diego @ 2010-03-12 16:43 UTC (permalink / raw)
  To: piotr.kempa; +Cc: sup-talk

if you have maildirs the best for that task is to use "find", ex:

find <maildir> -size +1M

will search for files bigger than 1M in the <maildir> directory

what Im not sure of is how to do it for mbox files

On Sat, Mar 13, 2010 at 12:27 AM,  <piotr.kempa@wp.eu> wrote:
> Hi there,
>
> Is there a way to search for messages in certain size range? I'm talking
> about bytes here, like search for messages bigger than 1MB (e.g. for
> making your maildirs smaller by cutting those 50MB emails from years
> ago).
>
> I can't find anything on the wiki or this mailing list...
>
> Thanks!
> _______________________________________________
> sup-talk mailing list
> sup-talk@rubyforge.org
> http://rubyforge.org/mailman/listinfo/sup-talk
>
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [sup-talk] Search for message by size
  2010-03-12 16:43 ` Juan Diego
@ 2010-03-15  9:11   ` piotr.kempa
  0 siblings, 0 replies; 3+ messages in thread
From: piotr.kempa @ 2010-03-15  9:11 UTC (permalink / raw)
  To: sup-talk

Thanks Juan, I actually can do this since I'm on maildir but this will
be quite a bit of work since the filenames don't tell me much about the
message. So I'd have to manually open each found file, see what it's
about and then find the thread in sup. I kind of hoped I could search
from within sup, just like you can search for messages from certain date
range.
But thanks for the idea anyway, I'll do it if I'm really pressed for
space. 

Excerpts from Juan Diego's message of 2010-03-12 17:43:52 +0100:
> if you have maildirs the best for that task is to use "find", ex:
> find <maildir> -size +1M
> will search for files bigger than 1M in the <maildir> directory
> what Im not sure of is how to do it for mbox files
> 
> On Sat, Mar 13, 2010 at 12:27 AM,  <piotr.kempa@wp.eu> wrote:
>> Hi there,
>>
>> Is there a way to search for messages in certain size range? I'm talking
>> about bytes here, like search for messages bigger than 1MB (e.g. for
>> making your maildirs smaller by cutting those 50MB emails from years
>> ago).
>>
>> I can't find anything on the wiki or this mailing list...
>>
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-03-15  9:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-12 15:27 [sup-talk] Search for message by size piotr.kempa
2010-03-12 16:43 ` Juan Diego
2010-03-15  9:11   ` piotr.kempa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox