Code Monkey home page Code Monkey logo

Comments (8)

sblaisot avatar sblaisot commented on August 25, 2024 1

Sorry for my (very) late reply, I unfortunately no more have the time to maintain this plugin as it deserves.

As far as I know, using the good old rcmail instead of the new rcube is no problem as the rcmail still exist. I just tested it working with roundcube 1.4.2

Installing with composer has not worked very well since the beginning and INSTALL file advice to install from archive. PR are welcome for composer installation problems.

Another known issue is database prefix is not handled correctly at the moment. Any PR about this is also welcome.

from automatic_addressbook.

sblaisot avatar sblaisot commented on August 25, 2024 1

database prefixed will never be automatically addressed

Database prefix are automatically addressed on plugin installation with composer as you can see here

Unfortunately, they are only adressed for CREATE TABLE and CREATE SEQUENCE statements and not for REFERENCES statements we use in automatic_addressbook plugin. This is a bug that should be addressed in plugin installer and everything should be working with database prefix after that.
I will post a PR on that tomorrow.

from automatic_addressbook.

thoatswold avatar thoatswold commented on August 25, 2024

I was able to get automatic_addressbook to work on Roundcube 1.3.6 eventually. My system is Ubuntu 18.04. Here are the steps I followed:

[1] Installed the plugin using composer:
[a] added it to /usr/share/roundcube/composer.json as the last entry under 'require':
"sblaisot/automatic_addressbook": "~0.4.3"
[b] cd /usr/share/roundcube && php composer.phar update

[2] Composer threw an error when running the mysql.initial.sql file, so I did this manually in mysql:
USE roundcube;
source ./SQL/mysql.initial.sql;

[3] The plugin uses the old 'rcmail' instead of 'rcube', so I backed up the plugin folder and did a search & replace:
...
cd plugins
rsync -av ./automatic_addressbook/ ./automatic_addressbook.bak
cd automatic_addressbook
find . -type f -name '*.php' -exec sed -i -e "s/rcmail/rcube/g" {} \;
...

[4] Create a symlink of the plugin source directory in /var/lib/roundcube/plugins/:
ln -s /usr/share/roundcube/plugins/automatic_addressbook/ /var/lib/roundcube/plugins/

[5] Edit the Roundcube config file and add the plugin reference to enable it:
nano /etc/roundcube/config.inc.php:
...
$config['plugins'] = array('automatic_addressbook','acl', ... ... ... );
...

I hope that's of some help even after six months!

from automatic_addressbook.

tiurlumbangaol avatar tiurlumbangaol commented on August 25, 2024

hi,

i could make it work on Roundcube version 1.3.9.

cd /var/www/html/plugins/
git clone https://github.com/sblaisot/automatic_addressbook

then running this query on postgresql :
GRANT ALL PRIVILEGES ON TABLE collected_contacts TO databaseuser;
GRANT USAGE, SELECT ON ALL SEQUENCES IN SCHEMA public TO databaseuser;

from automatic_addressbook.

mckaygerhard avatar mckaygerhard commented on August 25, 2024

PR #26 solves this

from automatic_addressbook.

mckaygerhard avatar mckaygerhard commented on August 25, 2024

database prefixed will never be automatically addressed.. i talk in past about that in roundcube support and forums, admins must customized if there's any databa prefix set.

yeah .. i changed the rcmail to rcube and now works as i set in the pull request.. just merged and that's all

from automatic_addressbook.

sblaisot avatar sblaisot commented on August 25, 2024

I have tested last automatic_addressbook version with RC 1.4.2 with success. I see no problem with using rcmail.

So can you please explain WHY you want to change rcmail by rcube ? I mean an objective reasons other than "I have done that without knowing what I did" ?
Is there any deprecation notice somewhere in roundcube developer documentation or mailing list about that ?
Can you provide step-by-step instruction that lead to automatic_addressbook plugin not working without changing rcmail with rcube ?
As far as I can see here rcmail class extends rcube class so I can see no reason to call the base framework class rather than the specific webmail class.

from automatic_addressbook.

wawefr avatar wawefr commented on August 25, 2024

Hello
I have juste an issue with autocomplete which don't work (the reste of the plugin is ok)
Thanks

from automatic_addressbook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.