Cyrus 3.0.3 XAPPEPUSH

2017-08-22 Thread Arnaldo Viegas de Lima
If anyone is interested (and have a proper push certificate) I have written a 
small external script to be called from notifyd to handle all aspects of Apple 
push notification, with device registration being handle by a MySQL database 
(with cleanup). I think I’ve covered most of the cenários: registration, 
cleanup, new message, delete and move. Works great!

We have a very small shop here (a boutique consulting firm) so approach 
(external program, not a daemon) suits our needs. I will be glad to share it.

Arnaldo.

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: Message remains in spool after expunge

2017-08-22 Thread Arnaldo Viegas de Lima
Answering my own question: UIDs match the filename, so pretty easy to fix the 
script. Nice!

So far, 3.0.3 is working really nice.

> On Aug 22, 2017, at 3:36 PM, Arnaldo Viegas de Lima 
>  wrote:
> 
> Thank you to all that quickly answered (Patrick/Merlin/Sebastian).
> 
> I really missed this one. Maybe because I migrated from 2.4 direct to 3.0.3 
> in 2.5. Indeed one of my comments about the migration is that a list of 
> “behavior” changes could go a long way  into helping the whole process.
> 
> Now comes an interesting challenge: I do like the delayed expunge. It’s nice 
> an ingenious and for our installation a nice feature, so I really want to 
> keep it.
> 
> But my script needs to process the files in the directory. Up to now the 
> files where listed (filesystem) and a search was used to identify it on 
> Cyrus. With leftover (delayed) files, is there a way to list the messages on 
> the mailbox in Cyrus and obtain the actual filename?
> 
> Thanks again,
> 
> Arnaldo.


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: Message remains in spool after expunge

2017-08-22 Thread Arnaldo Viegas de Lima
Thank you to all that quickly answered (Patrick/Merlin/Sebastian).

I really missed this one. Maybe because I migrated from 2.4 direct to 3.0.3 in 
2.5. Indeed one of my comments about the migration is that a list of “behavior” 
changes could go a long way  into helping the whole process.

Now comes an interesting challenge: I do like the delayed expunge. It’s nice an 
ingenious and for our installation a nice feature, so I really want to keep it.

But my script needs to process the files in the directory. Up to now the files 
where listed (filesystem) and a search was used to identify it on Cyrus. With 
leftover (delayed) files, is there a way to list the messages on the mailbox in 
Cyrus and obtain the actual filename?

Thanks again,

Arnaldo.


> On Aug 22, 2017, at 9:57 AM, Patrick Boutilier  wrote:
> 
> On 08/22/2017 09:48 AM, Arnaldo Viegas de Lima wrote:
>> Hi,
>> We have just migrated from 2.4.17 to 3.0.3 and we are having a problem with 
>> one of our scripts that perform actions on a SPAM folder for retraining 
>> purposes.
>> All files placed by the user there are used for retaining. At the end Cyrus 
>> is called to remove the files: we mark all files for deletion and then 
>> expunge the mailbox. We have been using this script since 2007, flawlessly.
>> I’ve set Cyrus chatty mode on and I can see the commands being sent to the 
>> server and there is a confirmation log message for the expunge, with the  
>> correct number of files.
>> Checking the SPAM mailbox with Cyrus (or any IMAP client), show it as empty. 
>> But looking at the mailbox directory in the filesystem, the actual files are 
>> still there.
>> Am I missing something on 3.0.3 that may be the cause for this problem?
>> Thanks in advance.
> 
> expunge_mode: delayed is the default since 2.5
> 
> https://www.cyrusimap.org/imap/concepts/features/delayed-expunge.html
> 
> You would want expunge_mode: immediate to use the default behaviour in 2.4.17
> 
> 
> 
> 
> 
>> Arnaldo.
>> 
>> 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


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: Message remains in spool after expunge

2017-08-22 Thread Merlin Hartley
https://www.cyrusimap.org/imap/download/release-notes/2.5/x/2.5.0.html?highlight=expunge_mode#default-change-expunge-mode
 


expuge_mode default has changed…


--
Merlin Hartley
Computer Officer
MRC Mitochondrial Biology Unit
Cambridge, CB2 0XY
United Kingdom

> On 22 Aug 2017, at 13:48, Arnaldo Viegas de Lima  
> wrote:
> 
> Hi,
> 
> We have just migrated from 2.4.17 to 3.0.3 and we are having a problem with 
> one of our scripts that perform actions on a SPAM folder for retraining 
> purposes.
> All files placed by the user there are used for retaining. At the end Cyrus 
> is called to remove the files: we mark all files for deletion and then 
> expunge the mailbox. We have been using this script since 2007, flawlessly. 
> 
> I’ve set Cyrus chatty mode on and I can see the commands being sent to the 
> server and there is a confirmation log message for the expunge, with the  
> correct number of files.
> Checking the SPAM mailbox with Cyrus (or any IMAP client), show it as empty. 
> But looking at the mailbox directory in the filesystem, the actual files are 
> still there.
> 
> Am I missing something on 3.0.3 that may be the cause for this problem?
> 
> Thanks in advance.
> 
> Arnaldo. 
> 
> 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: Message remains in spool after expunge

2017-08-22 Thread Patrick Boutilier

On 08/22/2017 09:48 AM, Arnaldo Viegas de Lima wrote:

Hi,

We have just migrated from 2.4.17 to 3.0.3 and we are having a problem with one 
of our scripts that perform actions on a SPAM folder for retraining purposes.
All files placed by the user there are used for retaining. At the end Cyrus is 
called to remove the files: we mark all files for deletion and then expunge the 
mailbox. We have been using this script since 2007, flawlessly.

I’ve set Cyrus chatty mode on and I can see the commands being sent to the 
server and there is a confirmation log message for the expunge, with the  
correct number of files.
Checking the SPAM mailbox with Cyrus (or any IMAP client), show it as empty. 
But looking at the mailbox directory in the filesystem, the actual files are 
still there.

Am I missing something on 3.0.3 that may be the cause for this problem?

Thanks in advance.



expunge_mode: delayed is the default since 2.5

https://www.cyrusimap.org/imap/concepts/features/delayed-expunge.html

You would want expunge_mode: immediate to use the default behaviour in 
2.4.17







Arnaldo.

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: Message remains in spool after expunge

2017-08-22 Thread Sebastian Hagedorn

Hi,

what is your setting for expunge_mode in imapd.conf? You can see what Cyrus 
uses with this command:


$ cyr_info conf-all|grep expung

--On 22. August 2017 um 09:48:42 -0300 Arnaldo Viegas de Lima 
 wrote:



We have just migrated from 2.4.17 to 3.0.3 and we are having a problem
with one of our scripts that perform actions on a SPAM folder for
retraining purposes. All files placed by the user there are used for
retaining. At the end Cyrus is called to remove the files: we mark all
files for deletion and then expunge the mailbox. We have been using this
script since 2007, flawlessly.

I’ve set Cyrus chatty mode on and I can see the commands being sent to
the server and there is a confirmation log message for the expunge, with
the  correct number of files. Checking the SPAM mailbox with Cyrus (or
any IMAP client), show it as empty. But looking at the mailbox directory
in the filesystem, the actual files are still there.

Am I missing something on 3.0.3 that may be the cause for this problem?


--
   .:.Sebastian Hagedorn - Weyertal 121 (Gebäude 133), Zimmer 2.02.:.
.:.Regionales Rechenzentrum (RRZK).:.
  .:.Universität zu Köln / Cologne University - ✆ +49-221-470-89578.:.

pgpx90ri6Lbhf.pgp
Description: PGP signature

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

Message remains in spool after expunge

2017-08-22 Thread Arnaldo Viegas de Lima
Hi,

We have just migrated from 2.4.17 to 3.0.3 and we are having a problem with one 
of our scripts that perform actions on a SPAM folder for retraining purposes.
All files placed by the user there are used for retaining. At the end Cyrus is 
called to remove the files: we mark all files for deletion and then expunge the 
mailbox. We have been using this script since 2007, flawlessly. 

I’ve set Cyrus chatty mode on and I can see the commands being sent to the 
server and there is a confirmation log message for the expunge, with the  
correct number of files.
Checking the SPAM mailbox with Cyrus (or any IMAP client), show it as empty. 
But looking at the mailbox directory in the filesystem, the actual files are 
still there.

Am I missing something on 3.0.3 that may be the cause for this problem?

Thanks in advance.

Arnaldo. 

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