Re: APPEND and \Seen flag handling with admin account

2004-11-17 Thread Hans-Peter Jansen
Hmm, sad, no takers - 2nd attempt follows..

On Friday 12 November 2004 19:24, Hans-Peter Jansen wrote:

 When APPENDing mails as the cyrus admin, the \Seen flags magically
 disappears, unlike appending to the mailbox as its owner: they're
 preserved as expected.

Well, I've looked into the source now, and understand, what happens: 
the seen db is user dependant.

Further thinking and searching on how to solve this problem cleanly 
brought me to the proxyauth command, which would fit my needs, but  
unfortunately is non standard nor implemented in cyrus.

Thus let me rephrase my question: is there a way to migrate mbox 
mailboxes in a way, that they appear exactly the same in cyrus from 
within an admin account (without compromising user logins), including 
the \Seen flag?

The perl scripts from the wiki suffer from the same problem, btw.

Pete

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


Re: APPEND and \Seen flag handling with admin account

2004-11-17 Thread Ken Murchison
Hans-Peter Jansen wrote:
Hmm, sad, no takers - 2nd attempt follows..
On Friday 12 November 2004 19:24, Hans-Peter Jansen wrote:
When APPENDing mails as the cyrus admin, the \Seen flags magically
disappears, unlike appending to the mailbox as its owner: they're
preserved as expected.
Well, I've looked into the source now, and understand, what happens: 
the seen db is user dependant.

Further thinking and searching on how to solve this problem cleanly 
brought me to the proxyauth command, which would fit my needs, but  
unfortunately is non standard nor implemented in cyrus.
It is nonstandard, but also isn't needed.  Cyrus supports SASL 
mechanisms which support proxying, specifically PLAIN and DIGEST-MD5.


Thus let me rephrase my question: is there a way to migrate mbox 
mailboxes in a way, that they appear exactly the same in cyrus from 
within an admin account (without compromising user logins), including 
the \Seen flag?
Use one of the SASL mechanisms above to authenticate as an admin, but 
authorize as the user that you are migrating.

--
Kenneth Murchison Oceana Matrix Ltd.
Software Engineer 21 Princeton Place
716-662-8973 x26  Orchard Park, NY 14127
--PGP Public Key--http://www.oceana.com/~ken/ksm.pgp
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


APPEND and \Seen flag handling with admin account

2004-11-12 Thread Hans-Peter Jansen
Hello,

I'm on the way to migrate some mbox based imapd setups to Cyrus-IMAP,
running on SuSE 9.2 in version 2.2.8, but stumbled across a strange 
phemomenon regarding the \Seen flag handling, which boils down to:

When APPENDing mails as the cyrus admin, the \Seen flags magically 
disappears, unlike appending to the mailbox as its owner: they're 
preserved as expected.

I.e., if the following gets in (python imaplib debug log):

  31:40.87  HGHM1 OK User logged in
  31:40.87  HGHM2 APPEND user.xxx (\Seen \Flagged) 17-Dec-2002 21:24:09 
+ {2864}
  31:40.88  + go ahead
  31:40.88 write literal size 2864
  31:40.92  HGHM2 OK [APPENDUID 1100205964 6221] Completed
  31:40.92  HGHM3 APPEND user.xxx (\Seen) 18-Dec-2002 23:36:16 + {4421}
  31:40.93  + go ahead
  31:40.93 write literal size 4421
  31:40.93  HGHM3 OK [APPENDUID 1100205964 6222] Completed
  31:40.94  HGHM4 APPEND user.xxx (\Seen \Answered) 18-Dec-2002 23:36:23 
+ {1747}
  31:40.94  + go ahead
  31:40.94 write literal size 1747
  31:40.95  HGHM4 OK [APPENDUID 1100205964 6223] Completed
  31:40.96  HGHM5 APPEND user.xxx (\Seen) 19-Dec-2002 06:00:47 + {18624}
  31:40.96  + go ahead
  31:40.96 write literal size 18624
  31:40.97  HGHM5 OK [APPENDUID 1100205964 6224] Completed
  31:40.97  HGHM6 APPEND user.xxx (\Seen) 19-Dec-2002 11:48:11 + {4377}
  31:40.97  + go ahead
  31:40.97 write literal size 4377
  31:40.98  HGHM6 OK [APPENDUID 1100205964 6225] Completed

this comes out:

['1 (FLAGS (\\Recent \\Flagged) INTERNALDATE 17-Dec-2002 22:24:09 +0100)']
['2 (FLAGS (\\Recent) INTERNALDATE 19-Dec-2002 00:36:16 +0100)']
['3 (FLAGS (\\Recent \\Answered) INTERNALDATE 19-Dec-2002 00:36:23 +0100)']
['4 (FLAGS (\\Recent) INTERNALDATE 19-Dec-2002 07:00:47 +0100)']
['5 (FLAGS (\\Recent) INTERNALDATE 19-Dec-2002 12:48:11 +0100)']

while this is expected:

['1 (FLAGS (\\Recent \\Flagged \\Seen) INTERNALDATE 17-Dec-2002 22:24:09 
+0100)']
['2 (FLAGS (\\Recent) INTERNALDATE 19-Dec-2002 00:36:16 +0100)']
['3 (FLAGS (\\Recent \\Answered \\Seen) INTERNALDATE 19-Dec-2002 00:36:23 
+0100)']
['4 (FLAGS (\\Recent \\Seen) INTERNALDATE 19-Dec-2002 07:00:47 +0100)']
['5 (FLAGS (\\Recent) INTERNALDATE 19-Dec-2002 12:48:11 +0100)']

Obviously, it would be a lot more convenient not bothering with 
user logins on that task; this result is barely satisfying :-(.

Any ideas, what's the rational behind this behavior and much more 
important, is there any chance to circumvent it (probably without 
patching, though one would be nice, too)?

bugzilla knows about some \Seen related problems, which seem to be 
fixed a long time ago. An attempt to create an account on bugzilla
failed by not providing the usual login mail (even on a second try..).

Pete

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