For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > January 2006 > script to count message sizes on an imap server









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author script to count message sizes on an imap server
Martin J Hooper

2006-01-10, 4:02 am

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... ;)

Chris Devers

2006-01-10, 4:02 am

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
Tom Phoenix

2006-01-10, 4:02 am

On 1/8/06, Martin J Hooper <martinjh@blueyonder.co.uk> 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-...et/IMAP/Simple=
..pm
http://search.cpan.org/search?query=3Dimap&mode=3Dall

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

--Tom Phoenix
Stonehenge Perl Training
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com