Remi Collet | 15 Jun 17:16 2016

Horde_Mongo, PHP 7 and mongodb extension

Hi,

Is there is any plan for Horde_Mongo and PHP 7 ?

The problem is that the Horde_Mongo_Client extends the MongoClient which
is provided by the pecl/mongo extension which will never be compatible
with PHP-7

I have run some test using https://github.com/alcaeus/mongo-php-adapter

Running the cache test suite:

$ phpunit MongoTest.php --verbose
PHPUnit 5.4.5 by Sebastian Bergmann and contributors.

Runtime:       PHP 7.0.8RC1
Configuration:
/dev/shm/BUILD/php-horde-Horde-Cache-2.5.3/Horde_Cache-2.5.3/test/Horde/Cache/phpunit.xml

........                                          8 / 8 (100%)

Time: 466 ms, Memory: 4.00MB

OK (8 tests, 21 assertions)

So it seems to work as expected.

For now this is only a local PoC,
Would you be interested by a PR for this ?

(Continue reading)

Jan Schneider | 15 Jun 12:14 2016
Gravatar

Horde 6 vs. Horde 5.3

Hi,

since we have been asked recently when to expect Horde 6, and what  
could be done to speed up its release, I'd like to discuss an  
alternative option to release Horde 5.3 first.

Many new features have gone into master since the Horde 5.2 release,  
few of them sponsored by clients or contributed by the community. The  
expectation to see those features in a stable release within a  
foreseeable timeframe is more than justified.

We could speed up the Horde 6 release by additional sponsoring, but  
it's not only a matter of money, but also a matter of developer  
resources. With Michael and me being the only remaining active core  
developers at the moment, we rather lack developer time. Especially  
for core development like infrastructure stuff, namespace refactoring  
etc. that are not easy for contributors to jump in.

AFAIK we don't have any BC breaks in master yet, at least none that  
couldn't be solved with bumped dependencies. So doing a 5.3 release  
should work. Michael, please correct me if I'm missing something.

The flipside is, that:
- Horde 6 will delay even further
- we won't be able to do any refactoring, e.g. switching to namespaces
- we won't have a repository split that would make the libraries more  
attractive, e.g. by being available via composer/packagist and thus  
attracting external developers
- we won't be able to do long-anticipated BC breaks that currently  
hinder some development
(Continue reading)

Sebastian Birnbach | 6 Jun 16:52 2016
Picon

Turba API search()

I am working on a Block that will output certain address book information.
I have trouble restricting the search to certain fields, namely the
"company" field.

[...]
    $terms = array($this->_params['search']);

    $options = array(
        'count_only' => false,
        'fields' => array('company')
    );

    $res = $registry->contacts->search($terms, $options);
[...]

This returns all persons with the search string in any searchable field, be
it "company" or "name".

I enclose the Block lib/Block/Contacts.php for better reproducability, call
it from any wiki page with this code:

[[block horde/Contacts search=string]]

Any clues anybody?

Kind regards

  Sebastian
Attachment (Contacts.php): application/x-httpd-php, 3152 bytes
(Continue reading)

Kambey L. Kisambu | 3 Jun 11:05 2016
Picon

Fwd: Problem with Horde: Guest user is not authorized for Mail related issue

---------- Forwarded message ----------
From: "Kambey L. Kisambu" <kambeylk <at> gmail.com>
Date: Fri, 3 Jun 2016 12:03:13 +0300
Subject: Problem with Horde: Guest user is not authorized for Mail related issue
To: ev <at> lists.horde.org, dev-request <at> lists.horde.org
Cc: jan <at> horde.org, mrubinsk <at> horde.org

Hello team,

Greetings,
I've recently upgraded my horde to 5.2.14 ruunning in OpenBSD +Nginx.

I'm facing the following issue:-
1) For some users, after login, the logs shows that the user logged
successfully but followed by "Guest user is not authorized for
Government Mailing System (Host: x.x.x.x). [pid 10705 on line 324 of
"/usr/local/share/pear/Horde/Registry.php"]"

That user also get error "502 Bad gateway " if he try to open the
specific email.

I thought its session related thing and after goggling, i set my
configuration as suggested to:-
 $conf['session']['use_only_cookies'] = false;.
$conf['cookie']['path']="/";
session.auto_start =0; (i php.ini)
hordeauth=true; (imp/config/backend.local.php)

Hooks are also set to login with either full email address or user_id
(without domain part) and no problem in login.
(Continue reading)

krono | 23 May 12:50 2016

Call to a member function write() on null

Hello dev list,
[already sent to koronolith list]

I have an installation of horde using
bitnami-horde-5.2.14-1-linux-x64-installer.run on ubuntu 16.04.
As for the custom mail server I toggle between 2 almost identical setups:
1. dovecot/postfix on ubuntu 12.04
2. dovecot/postfix on ubuntu 16.04
The toggling is done by updating the hostspec and host in imap section of
/opt/horde-5.2.14-1/apps/horde/htdocs/imp/config/backends.php and
restarting the stack - everything works fine.

I was creating an event in the calendar of a user while connected to the
mail server of ubuntu 12.04.
When I update the horde backend to the ubuntu 16.04 installation, and
try to login, I get the following web message:

A fatal error has occurred
Call to a member function write() on null
Details have been logged for the administrator.

and a message pops up on the console:
HORDE[15202]: [imp] Call to a member function write() on null [pid 15202
on line 4429 of
"/opt/horde-5.2.14-1/php/lib/php/Horde/Imap/Client/Socket.php"]

This happens only when I try to login to that specific user while
connected to the 16.04.
No problem when the backend points to the 12.04 and no problem to login
to other users when the backend points to 16.04. I also created a
(Continue reading)

Jan Schneider | 17 May 10:37 2016
Gravatar

Fwd: Hi Jan, I have a question regarding the use of Horde_Stream_Temp when fetching headers

----- Weitergeleitete Nachricht von Herr Klaus Leithoff Stylite AG -----
  Datum: Tue, 17 May 2016 10:24:46 +0200
Betreff: Hi Jan, I have a question regarding the use of  
Horde_Stream_Temp when fetching headers
     An: Jan Schneider <jan <at> horde.org>

Hi Jan,
I have a question regarding the use of Horde_Stream_Temp when fetching  
headers.
Outline:
In our EGroupare-Mail-Module, we implemented the possibility to have a  
"preview"
of the first few lines of a mail (like most mobile apps do it) in the  
list of available
mails. To achieve that, together with an
fquery = new Horde_Imap_Client_Fetch_Query();
fquery->headers(...)
we query for
fquery->fullText(peek=>true, length=>5000, start=>0)

when actually retrieving the headers, I bump into a Fatal, when accessing my
googlemail-account.Imap/Client/Data/Fetch.php Line 628 Call to  
undefined method Horde_Stream_Temp::toString() (this is within  
_getHeaders(...) ) we use pear-pear.horde.org/Horde_Imap_Client
Version 2.29.6

I worked around the problem with:
Horde_Imap_Client/Horde/Imap/Client/Data/Fetch.php Line 607
return 

(Continue reading)

Kambey L. Kisambu | 13 May 08:51 2016
Picon

Problem with Horde: Guest user is not authorized for Mail

Hello team,
Greetings,
I've recently upgraded my horde to 5.2.14 ruunning in OpenBSD +Nginx.

I'm facing the following issue:-
1) For some users, after login, the logs shows that the user logged
successfully but followed by "Guest user is not authorized for Government
Mailing System (Host: x.x.x.x). [pid 10705 on line 324 of
"/usr/local/share/pear/Horde/Registry.php"]"

That user also get error "502 Bad gateway " if he try to open the specific
email.

I thought its session related thing and after goggling, i set my
configuration as suggested to:-
 $conf['session']['use_only_cookies'] = false;.
$conf['cookie']['path']="/";
session.auto_start =0; (i php.ini)
hordeauth=true; (imp/config/backend.local.php)

Hooks are also set to login with either full email address or user_id
(without domain part) and no problem in login.
Other settings in nginx templates are:
               fastcgi_buffer_size 256k;
                fastcgi_buffers 256 32k;
                fastcgi_busy_buffers_size 256k;
                fastcgi_temp_file_write_size 256k;
                fastcgi_intercept_errors on;

Kindly assist me if anyone have idea of this issue.
(Continue reading)

Quinn Comendant | 6 Apr 18:08 2016
Gravatar

Anybody else experience this namespace bug?

Hello horde-dev,

I have had difficulty setting the IMAP path prefix in horde webmail 5.2 on a CentOS 6 server running
Courier-IMAP 4.1.2. When creating folders I was getting the error, "The mailbox 'New folder' was not
created. This is what the server said: IMAP error reported by server."

The imp_imap debug log shows that it is trying to create folders  
without the `INBOX.` prefix, which I think is the reason it is failing:

	S: * OK [CAPABILITY IMAP4rev1] Courier-IMAP ready. Copyright 1998-2005  
	Double Precision, Inc.  See COPYING for distribution information.
	C: 1 LOGIN quinn <at> example.com [PASSWORD]
	S: 1 OK LOGIN Ok.
	C: 2 LSUB "" New folder
	S: 2 OK LSUB completed
	C: 3 LIST "" New folder
	S: 3 OK LIST completed
	C: 4 CREATE New folder
	S: 4 NO Invalid mailbox name.
	C: 5 LOGOUT
	S: * BYE Courier-IMAP server shutting down
	S: 5 OK LOGOUT completed

I *am* able to create a folder if I manually include the IMAP prefix  
to its name, i.e. I go to Folder Actions > Create Mailbox and then use  
a folder name literally as `INBOX.New folder`. The new folder is created  
with that name literally and `INBOX.New folder` is created on the server and  
is displayed in IMP's sidebar. =\

As far as I can tell, this is configured using the 'namespace' option  
(Continue reading)

Sebastian Birnbach | 6 Apr 10:20 2016
Picon

user-changeable password

Hi all,

this may have been covered before but I was unable to find a solution on
the net. I am running Horde with SQL authentication and would like to
permit my users to change their passwords. As far as I can see the user can
chose between

a.) asking the admin to let him use the admin console and change the PW
or
b.) having his password reset to a random (?) value and mailed to him.

I am surprised that there seems to be no better solution, i.e. permitting
the user to change his password secretly and to a string he prefers.

Kind regards

  Sebastian
--

-- 
dev mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: dev-unsubscribe <at> lists.horde.org

Remi Collet | 21 Mar 15:58 2016

Horde_Mapi 1.0.7


This new version have no changelog.

It uses new Horde_Date::getTimezoneAlias()
which was introduced in Horde_Date 2.3.0
so dependency need to be updated

Regards,

remi
Quinn Comendant | 18 Feb 04:34 2016
Gravatar

IMAP path prefix not set in horde webmail 5.2

Hello horde-dev,

I have had difficulty setting the IMAP path prefix in horde webmail 5.2 on a CentOS 6 server running
Courier-IMAP 4.1.2. When creating folders I was getting the error, "The mailbox 'New folder' was not
created. This is what the server said: IMAP error reported by server."

The imp_imap debug log shows that it is trying to create folders  
without the `INBOX.` prefix, which I think is the reason it is failing:

	S: * OK [CAPABILITY IMAP4rev1] Courier-IMAP ready. Copyright 1998-2005  
	Double Precision, Inc.  See COPYING for distribution information.
	C: 1 LOGIN quinn <at> example.com [PASSWORD]
	S: 1 OK LOGIN Ok.
	C: 2 LSUB "" New folder
	S: 2 OK LSUB completed
	C: 3 LIST "" New folder
	S: 3 OK LIST completed
	C: 4 CREATE New folder
	S: 4 NO Invalid mailbox name.
	C: 5 LOGOUT
	S: * BYE Courier-IMAP server shutting down
	S: 5 OK LOGOUT completed

I *am* able to create a folder if I manually include the IMAP prefix  
to its name, i.e. I go to Folder Actions > Create Mailbox and then use  
a folder name literally as `INBOX.New folder`. The new folder is created  
with that name literally and `INBOX.New folder` is created on the server and  
is displayed in IMP's sidebar. =\

As far as I can tell, this is configured using the 'namespace' option  
(Continue reading)


Gmane