Re: Default value changes in Cyrus 3

2017-10-19 Thread Stephen Ingram
I see now that the warning applies to change from altnamespace to not. I
already use the altnamespace, but I want to change to the unix hierarchy
separator where it says the altnamespace doesn't matter. Does that mean it
will keep the same hierarchy?

Steve

On Thu, Oct 19, 2017 at 6:15 PM, Stephen Ingram  wrote:

> I'm not sure I really know what that means. Would that change the
> hierarchy? Force a download of all messages again on the client side?
>
> Steve
>
> On Thu, Oct 19, 2017 at 6:04 PM, Patrick Boutilier 
> wrote:
>
>> On 10/19/2017 08:56 PM, Janos Dohanics wrote:
>>
>>> On Thu, 19 Oct 2017 16:43:48 -0700
>>> Stephen Ingram  wrote:
>>>
>>> While we are talking about it, can this just be switched on the fly if
 someone is using the "." namespace?

>>>
>>> Never tried it, but I read this page that the answer is yes.
>>>
>>> https://www.cyrusimap.org/imap/reference/admin/sop/altnamespace.html
>>>
>>>
>> Yes, seems possible but there is this warning on
>> https://www.cyrusimap.org/imap/concepts/features/namespaces.
>> html#imap-admin-namespaces-mode
>>
>>
>>
>> Warning
>>
>> Changing altnamespace in an active operating environment will cause all
>> IMAP clients to need to resync the entire hierarchy.
>>
>> 
>> Cyrus Home Page: http://www.cyrusimap.org/
>> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
>> To Unsubscribe:
>> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
>>
>
>

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: Default value changes in Cyrus 3

2017-10-19 Thread Bron Gondwana
Yes, if you change either it will force a re-download of messages and
resync of mailbox listing.
I would recommend setting it to the old values if you upgrade an
existing server.  You can also do something like we did at FastMail -
set up a new hostname with the new defaults using per-service imapd.conf
options, and recommend that  users use the new hostname when setting up
new clients.  That way you don't break things for existing users.
The reason for new defaults in a major version change is to allow new
sites to have sane defaults for the future.
Bron.




On Fri, 20 Oct 2017, at 12:15, Stephen Ingram wrote:
> I'm not sure I really know what that means. Would that change the
> hierarchy? Force a download of all messages again on the client side?> 
> Steve
> 
> On Thu, Oct 19, 2017 at 6:04 PM, Patrick Boutilier
>  wrote:>> On 10/19/2017 08:56 PM, Janos Dohanics wrote:
>>> On Thu, 19 Oct 2017 16:43:48 -0700 Stephen Ingram
>>>  wrote:
>>>
 While we are talking about it, can this just be switched on the fly
 if someone is using the "." namespace?>>>
>>> Never tried it, but I read this page that the answer is yes.
>>>
>>> https://www.cyrusimap.org/imap/reference/admin/sop/altnamespace.html>>
>> Yes, seems possible but there is this warning on
>> https://www.cyrusimap.org/imap/concepts/features/namespaces.html#imap-admin-namespaces-mode>>
>>  
>> 
>> 
>>  Warning
>> 
>>  Changing altnamespace in an active operating environment will cause
>>  all IMAP clients to need to resync the entire hierarchy.>> 
>> 
>>  Cyrus Home Page: http://www.cyrusimap.org/
>>  List Archives/Info:
>>  http://lists.andrew.cmu.edu/pipermail/info-cyrus/>>  To Unsubscribe:
>> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
> 
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/> To 
> Unsubscribe:
> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

--
  Bron Gondwana, CEO, FastMail Pty Ltd
  br...@fastmailteam.com



Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: Default value changes in Cyrus 3

2017-10-19 Thread Patrick Boutilier

On 10/19/2017 10:15 PM, Stephen Ingram wrote:
I'm not sure I really know what that means. Would that change the 
hierarchy? Force a download of all messages again on the client side?


Steve


That would be my guess. Have never tried it so can't say for sure.





On Thu, Oct 19, 2017 at 6:04 PM, Patrick Boutilier > wrote:


On 10/19/2017 08:56 PM, Janos Dohanics wrote:

On Thu, 19 Oct 2017 16:43:48 -0700
Stephen Ingram >
wrote:

While we are talking about it, can this just be switched on
the fly if
someone is using the "." namespace?


Never tried it, but I read this page that the answer is yes.

https://www.cyrusimap.org/imap/reference/admin/sop/altnamespace.html



Yes, seems possible but there is this warning on

https://www.cyrusimap.org/imap/concepts/features/namespaces.html#imap-admin-namespaces-mode





Warning

Changing altnamespace in an active operating environment will cause
all IMAP clients to need to resync the entire hierarchy.


Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info:
http://lists.andrew.cmu.edu/pipermail/info-cyrus/

To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus



<>
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: Default value changes in Cyrus 3

2017-10-19 Thread Stephen Ingram
I'm not sure I really know what that means. Would that change the
hierarchy? Force a download of all messages again on the client side?

Steve

On Thu, Oct 19, 2017 at 6:04 PM, Patrick Boutilier 
wrote:

> On 10/19/2017 08:56 PM, Janos Dohanics wrote:
>
>> On Thu, 19 Oct 2017 16:43:48 -0700
>> Stephen Ingram  wrote:
>>
>> While we are talking about it, can this just be switched on the fly if
>>> someone is using the "." namespace?
>>>
>>
>> Never tried it, but I read this page that the answer is yes.
>>
>> https://www.cyrusimap.org/imap/reference/admin/sop/altnamespace.html
>>
>>
> Yes, seems possible but there is this warning on
> https://www.cyrusimap.org/imap/concepts/features/namespaces.
> html#imap-admin-namespaces-mode
>
>
>
> Warning
>
> Changing altnamespace in an active operating environment will cause all
> IMAP clients to need to resync the entire hierarchy.
>
> 
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
> To Unsubscribe:
> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
>

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: Default value changes in Cyrus 3

2017-10-19 Thread Patrick Boutilier

On 10/19/2017 08:56 PM, Janos Dohanics wrote:

On Thu, 19 Oct 2017 16:43:48 -0700
Stephen Ingram  wrote:


While we are talking about it, can this just be switched on the fly if
someone is using the "." namespace?


Never tried it, but I read this page that the answer is yes.

https://www.cyrusimap.org/imap/reference/admin/sop/altnamespace.html



Yes, seems possible but there is this warning on 
https://www.cyrusimap.org/imap/concepts/features/namespaces.html#imap-admin-namespaces-mode




Warning

Changing altnamespace in an active operating environment will cause all 
IMAP clients to need to resync the entire hierarchy.
<>
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: Default value changes in Cyrus 3

2017-10-19 Thread Janos Dohanics
On Thu, 19 Oct 2017 16:43:48 -0700
Stephen Ingram  wrote:

> While we are talking about it, can this just be switched on the fly if
> someone is using the "." namespace? 

Never tried it, but I read this page that the answer is yes.

https://www.cyrusimap.org/imap/reference/admin/sop/altnamespace.html

-- 
Janos Dohanics

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: Default value changes in Cyrus 3

2017-10-19 Thread Stephen Ingram
While we are talking about it, can this just be switched on the fly if
someone is using the "." namespace? Does it only affect the admin in that
you have to type user/mailbox now instead of user.mailbox, or does the
change also affect users?

Steve

On Thu, Oct 19, 2017 at 4:36 PM, Janos Dohanics  wrote:

> On Fri, 20 Oct 2017 08:02:04 +1100
> Bron Gondwana  wrote:
>
> > Basically:
> >
> > 1) most of the rest of the world is using '/', so people expect it.
> >Also, it means you can use '.' in mailbox names and in usernames,
> >both of which people expect to be able to do due to other systems
> >allowing it.
> > 2) various clients expect to be able to create top level names and get
> >sad if they don't.  The reason not to use altnamespace in the past
> >was that it didn't allow subfolders of INBOX, and there were a few
> >other broken things about sort.  They have now been fixed, so it's
> >safe to make it the default.
> > Both changes are to make the "out of the box" behaviour closer to what
> > most people expect.
> > Cheers,
> >
> > Bron.
>
> Thanks. May be adding your comments to the Cyrus web site would be
> useful to people who wonder whether to keep the < 3 defaults or go with
> the new ones.
>
> --
> Janos Dohanics
> 
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
> To Unsubscribe:
> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
>

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: Default value changes in Cyrus 3

2017-10-19 Thread Janos Dohanics
On Fri, 20 Oct 2017 08:02:04 +1100
Bron Gondwana  wrote:

> Basically:
> 
> 1) most of the rest of the world is using '/', so people expect it.
>Also, it means you can use '.' in mailbox names and in usernames,
>both of which people expect to be able to do due to other systems
>allowing it.
> 2) various clients expect to be able to create top level names and get
>sad if they don't.  The reason not to use altnamespace in the past
>was that it didn't allow subfolders of INBOX, and there were a few
>other broken things about sort.  They have now been fixed, so it's
>safe to make it the default.
> Both changes are to make the "out of the box" behaviour closer to what
> most people expect.
> Cheers,
> 
> Bron.

Thanks. May be adding your comments to the Cyrus web site would be
useful to people who wonder whether to keep the < 3 defaults or go with
the new ones.

-- 
Janos Dohanics

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: How to remove attachments from many mails on Cyrus-IMAP Store?

2017-10-19 Thread Bron Gondwana
Hi Walter,

The only way to remove attachments is to replace the message with an
edited copy of the message.  You can't alter emails in an IMAP mailstore
once they are delivered.
At FastMail we're using the attached Perl module to strip attachments
from emails for our "remove attachments" feature.  It's not pretty, but
it gets the job done.  It needs to be hooked up to some code that
actually connects via IMAP and does the work.
Cheers,

Bron.


On Thu, 19 Oct 2017, at 22:10, Walter H. via Info-cyrus wrote:
> Hello,
> 
> my energy supplier sends a daily mail about the electricity power
> consumption of the previous day;
> these mails have two attachment - one .csv and one .xml
> 
> I'd like to remove the .xml attachments from the mails already
> stored in> the cyrus database, as these are bigger and really not needed;
> how would I achieve this?
> (how to delete these from each file in the database is not problem)
> 
> why I would like to do this:  saving storage ...
> 
> the directory has these files:
> 
> 1.
> 2.
> 3.
> ...
> 10007.
> 10008.
> cyrus.cache
> cyrus.header
> cyrus.index
> cyrus.squat
> 
> my system: CentOS 6, Cyrus v2.3.16-Fedora-RPM-2.3.16-15.el6
> 
> Thanks,
> Walter
> 
> 
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/> To 
> Unsubscribe:
> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

--
  Bron Gondwana, CEO, FastMail Pty Ltd
  br...@fastmailteam.com




StripAttachments.pm
Description: Perl program

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: Default value changes in Cyrus 3

2017-10-19 Thread Bron Gondwana
Basically:

1) most of the rest of the world is using '/', so people expect it.
   Also, it means you can use '.' in mailbox names and in usernames,
   both of which people expect to be able to do due to other systems
   allowing it.
2) various clients expect to be able to create top level names and get
   sad if they don't.  The reason not to use altnamespace in the past
   was that it didn't allow subfolders of INBOX, and there were a few
   other broken things about sort.  They have now been fixed, so it's
   safe to make it the default.
Both changes are to make the "out of the box" behaviour closer to what
most people expect.
Cheers,

Bron.


On Fri, 20 Oct 2017, at 00:44, Janos Dohanics wrote:
> As I'm preparing to move to Cyrus 3, I have noticed that
> unixhierarchysep (/) is now "on" as well as altnamespace is now "on".> 
> I have mostly been using default settings in previous versions, and I> guess 
> one shouldn't change sensible defaults willy-nilly, so I assume> developers 
> had good reasons to change these defaults?
> 
> --
> Janos Dohanics
> 
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/> To 
> Unsubscribe:
> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

--
  Bron Gondwana, CEO, FastMail Pty Ltd
  br...@fastmailteam.com



Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Default value changes in Cyrus 3

2017-10-19 Thread Janos Dohanics
As I'm preparing to move to Cyrus 3, I have noticed that
unixhierarchysep (/) is now "on" as well as altnamespace is now "on".

I have mostly been using default settings in previous versions, and I
guess one shouldn't change sensible defaults willy-nilly, so I assume
developers had good reasons to change these defaults?

-- 
Janos Dohanics

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


How to remove attachments from many mails on Cyrus-IMAP Store?

2017-10-19 Thread Walter H. via Info-cyrus
Hello,

my energy supplier sends a daily mail about the electricity power
consumption of the previous day;
these mails have two attachment - one .csv and one .xml

I'd like to remove the .xml attachments from the mails already stored in
the cyrus database, as these are bigger and really not needed;
how would I achieve this?
(how to delete these from each file in the database is not problem)

why I would like to do this:  saving storage ...

the directory has these files:

1.
2.
3.
...
10007.
10008.
cyrus.cache
cyrus.header
cyrus.index
cyrus.squat

my system: CentOS 6, Cyrus v2.3.16-Fedora-RPM-2.3.16-15.el6

Thanks,
Walter


Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus