IMAPClient.pm reset by peer

2008-01-10 Thread Rudy Gevaert
Hi,

I'm trying to write a script that uses the IMAPClient perl library.

When I issue e.g.
  $master->fetch("1:60","(FLAGS BODY[HEADER.FIELDS (DATE FROM 
SUBJECT)])") or die "Master Could not fetch: [EMAIL PROTECTED]";

I see this (imap debug on the perl side):
Sending: 4 FETCH 1:60 (FLAGS BODY[HEADER.FIELDS (DATE FROM SUBJECT)])

Sent 62 bytes
Master Could not fetch: Error while reading data from server: Resource 
temporarily unavailable

Looking on the cyrus side I see:

* 60 FETCH (FLAGS (\Seen Old) BODY[HEADER.FIELDS (DATE FROM SUBJECT)] {102}
Subject: Unrecognized pattern!
Date: Thu, 13 Dec 2007 10:42:27 +0100
From: [EMAIL PROTECTED]

)
4 OK Completed (0.000 sec)
 >1199961562>* BYE Connection reset by peer

Running that command via imtest works like a charm.  So I guess I must 
be doing something wrong on the perl side.

I know that isn't is a perl mailinglist, but I wouldn't know where to ask.

Thanks in advance,

Rudy

-- 
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Rudy Gevaert  [EMAIL PROTECTED]  tel:+32 9 264 4734
Directie ICT, afd. Infrastructuur ICT Department, Infrastructure office
Groep SystemenSystems group
Universiteit Gent Ghent University
Krijgslaan 281, gebouw S9, 9000 Gent, Belgie   www.UGent.be
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Cyrus/Imapd - Outlook - Trash

2008-01-10 Thread Michael Polenske

Dear all,

we have some people using Outlook(2003) as MUI for our cyrus imap 
installation. 

Mozilla and KMail User can use the function, that a message marked as deleted 
will be moved to a Trash-Folder in imap instead of deleting the mail. Outlook 
unfortunally does not offer this feature. My first  idea is to run a script 
on imapserver, which goes through the mailboxes and moves all mails, which 
are marked as DELETED, into the imap trash folder. 

Long story short: is there a commandline tool to find out if a message has a 
set DELETE flag, or do I have to use cyrdump and grep for the flag by 
myself ?


Thanks and best regards,
Michael

-- 

Michael Polenske   
System Analyst
High Performance Computing Department
NEC Deutschland GmbH
Hansaallee 101, D-40549 Duesseldorf, Germany
Tel: +49 211 53 69 145 <[EMAIL PROTECTED]>
Fax: +49 211 53 69 199 
AIM: polenskeHPCE   GPG / PGP-Key available
NEC Deutschland GmbH, Hansaallee 101, D-40549 Duesseldorf
Geschäftsführer: Makoto Tsukakoshi Handelsregister Duesseldorf, HRB 57941
Sitz der Gesellschaft: Duesseldorf, WEEE-Reg. Nr. DE42479769


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Cyrus/Imapd - Outlook - Trash

2008-01-10 Thread Mike Eggleston
On Thu, 10 Jan 2008, Michael Polenske might have said:

> 
> Dear all,
> 
> we have some people using Outlook(2003) as MUI for our cyrus imap 
> installation. 
> 
> Mozilla and KMail User can use the function, that a message marked as deleted 
> will be moved to a Trash-Folder in imap instead of deleting the mail. Outlook 
> unfortunally does not offer this feature. My first  idea is to run a script 
> on imapserver, which goes through the mailboxes and moves all mails, which 
> are marked as DELETED, into the imap trash folder. 
> 
> Long story short: is there a commandline tool to find out if a message has a 
> set DELETE flag, or do I have to use cyrdump and grep for the flag by 
> myself ?

You can do this using the perl module Mail::IMAPClient.

Mike

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: IMAPClient.pm reset by peer

2008-01-10 Thread Rudy Gevaert
Ok, it was the timeout of the imap session that was set to low.

Rudy

-- 
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Rudy Gevaert  [EMAIL PROTECTED]  tel:+32 9 264 4734
Directie ICT, afd. Infrastructuur ICT Department, Infrastructure office
Groep SystemenSystems group
Universiteit Gent Ghent University
Krijgslaan 281, gebouw S9, 9000 Gent, Belgie   www.UGent.be
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Cyrus/Imapd - Outlook - Trash

2008-01-10 Thread Alain Spineux
On Jan 10, 2008 1:17 PM, Mike Eggleston <[EMAIL PROTECTED]> wrote:
> On Thu, 10 Jan 2008, Michael Polenske might have said:
>
> >
> > Dear all,
> >
> > we have some people using Outlook(2003) as MUI for our cyrus imap
> > installation.
> >
> > Mozilla and KMail User can use the function, that a message marked as 
> > deleted
> > will be moved to a Trash-Folder in imap instead of deleting the mail. 
> > Outlook
> > unfortunally does not offer this feature. My first  idea is to run a script
> > on imapserver, which goes through the mailboxes and moves all mails, which
> > are marked as DELETED, into the imap trash folder.
> >
> > Long story short: is there a commandline tool to find out if a message has a
> > set DELETE flag, or do I have to use cyrdump and grep for the flag by
> > myself ?
>
> You can do this using the perl module Mail::IMAPClient.
>

Yes you must use a language having an IMAP library.
Perl, but Python and PHP have a good one, easy to use.
Move is not possible, you must copy and delete!
Use the UID imap command to do your FETCH, COPY, DELETE.

> Mike
>
> 
> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>



-- 
Alain Spineux
aspineux gmail com
May the sources be with you

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Help sizing a cyrus server

2008-01-10 Thread Vernon A. Fort
Bianchi Quota Leonardo wrote:
> Hi, suppose I have to realize one Cyrus system for 10.000 peak
> concurrent connections.
>
> Is it possible to use virtual machine (VmWare)and SAN disks fiber
> connected? There should be any requisite for this solution?
>
> - How much phisycal memory do I need? And number and type of processors?
> - Can I guess a Memory consumption each connection?
> - Do You agree that I have no need to use Murder as the disk is on a
> SAN? And if the need I can install Murder later?
>
> Thanks a lot, for help!
>   
I run a 20k user mail server which was installed as a guest os with 
vmware.  I cannot speak on the SAN disk option but the VMWARE made the 
server very unstable.  It was something with the NTPL, Interrupts and 
Clock Ticks. We eventually re-installed the server with just the O/S - 
made the server 10 times faster.  I had no control over the VMWARE host 
itself so it could have been a badly configured host server, either way 
i would not recommend using vmware server.  Oddly, it was the only guest 
on the host server.

Current setup:
gentoo, postfix, amavisd-new, clamav/f-prot, cyrus-imapd, squirrelmail
Dual Xeon 3.0 (older xeons)
4GB of memory
280GB raid for mail data but we limit the accounts to 20meg.
19,798 users accounts with around 210k of mail flow per day
average around 4-5k users on during peak hours
running very smoothly.

Vernon



Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html