Re: script to count message sizes on an imap server

2006-01-08 Thread Tom Phoenix
On 1/8/06, Martin J Hooper <[EMAIL PROTECTED]> wrote:
> Does anyone know of a script I can download

That's a poor way to open a message in a programming forum; it makes
it sound as if you don't plan to write any code yourself! Since this
is a forum for beginning Perl programmers, you could at least pretend
that you're having trouble writing your program before you ask to
download one. :-)

> which will connect to my
> IMAP server and transverse all folders counting up the size of each
> message in the folder and then spitting it out..?

Maybe CPAN has a module that would help you. I suspect you could do
what you want fairly easily with Net::IMAP::Simple or one of the
others.

http://search.cpan.org/~cfaber/Net-IMAP-Simple-1.14/lib/Net/IMAP/Simple.pm
http://search.cpan.org/search?query=imap&mode=all

If you get stuck, though, please post again. Hope this helps!

--Tom Phoenix
Stonehenge Perl Training

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




Re: script to count message sizes on an imap server

2006-01-08 Thread Chris Devers
On Sun, 8 Jan 2006, Martin J Hooper wrote:

> Does anyone know of a script I can download which will connect to my 
> IMAP server and transverse all folders counting up the size of each 
> message in the folder and then spitting it out..?
> 
> I'm sure I'm not the only one to want to do this... ;)

Well, you're not the only one that wants other people to do your work 
for you... :-)

The thing with having a very specific idea of what you want to do is 
that it makes it increasingly unlikely that there will be a "canned" 
solution for it that you can download. On the other hand, it also means 
that you have a clear idea of what you need, so a CPAN search will often 
turn up tools that can make your task much easier.

So. There are several IMAP related libraries on CPAN. Did you search for 
them? Did you try any? Have you written any code? This list is for 
helping people improve their code writing skills, not doing the writing 
for you. If you want it written for you, I'm sure someone could be 
talked into helping you out for a reasonable fee :-) 


-- 
Chris Devers
DO NOT LEAVE IT IS NOT REAL

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




script to count message sizes on an imap server

2006-01-08 Thread Martin J Hooper
Does anyone know of a script I can download which will connect to my 
IMAP server and transverse all folders counting up the size of each 
message in the folder and then spitting it out..?


I'm sure I'm not the only one to want to do this... ;)


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]