by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    hash.fail
    @ZeroNoncense_twitter
    The fight is tedious, but it is worth it. 100%. If we don't try, I'm afraid no one will.
    Jason Munro
    @jasonmunro
    Hi @ZeroNoncense_twitter welcome. Everyone's opinion matters here, even if you are new :) Thanks for your interest in the project
    Jason Munro
    @jasonmunro
    Also, just learned about the new (to me) "samesite" cookie property and added support to Cypht for it. Requires PHP 7.3 or greater.
    And I rewrote address parsing yesterday, still not sure I like the result but was seeing lots of issues with the older code
    which was not even that old! :)
    Jason Munro
    @jasonmunro
    @kk6mrp Did you rerun the config_gen.php script?
    Weston Miller
    @kk6mrp
    @jasonmunro Yes, I did rerun the config_gen.php script and the theme shows up in the themes list and I can select it but it does nothing
    Jason Munro
    @jasonmunro
    @kk6mrp ok, can you use the developer tools of your browser (F12 or Ctl-Shit-I usually) and bring up the network tab. Then force the page to reload after you have the theme enabled (Ctl-Shift-R works for most) and see if your new CSS file is listed in the page assets?Themes are loaded after the primary CSS file for the site. I use the dark theme, so I see /modules/themes/assets/dark.css in the list. If your theme is not showing up sounds like a bug and I will try to reproduce. If it is showing up then potentially it has syntax issues or needs to be more forceful in it's overriding :)
    Weston Miller
    @kk6mrp
    @jasonmunro Ok, I got it now! I was thinking that I could modify the login screen with a custom theme but I see that is not the way that works.
    I also am running Cypht running with sqlite; however, it cannot access the database in any location but the document root. Is there something I am missing here? Anywhere else and the login fails :/
    Jason Munro
    @jasonmunro
    @kk6mrp I should probably make the login page easier to theme now that you mention it :) Likely read/write access to the sqlite db file. might need to chown www-data or whatever user your webserver software runs as.
    Weston Miller
    @kk6mrp
    I'm running Apache, with the containing folder and file owned by www-data, Normally I'm using a chmod 660 but even with chmod 777 it isn't working properly. When the database is in another location besides the document root and session_type=DBthe login always fails but with session_type=PHP the login will authenticate but the user cannot save any settings. I've also tried using the Apache open_basedir to allow more directories and I've also tried storing the database in /var/lib/hm3/ but that leaves me with the same result. If you have a location and permissions you know to work, I would love to try it out.
    Marc Laporte
    @marclaporte_gitlab
    @ZeroNoncense_twitter welcome to the community!
    Jason Munro
    @jasonmunro
    @kk6mrp I will do some more concise testing today and let you know. I have this working on one of my test setups I just need to review exactly how
    Jason Munro
    @jasonmunro
    @kk6mrp Put this together which hopefully sorts out your issues with SQLite. Let me know if you are still having problems. https://github.com/jasonmunro/cypht/wiki/Using-SQLite
    Weston Miller
    @kk6mrp
    I think maybe I see the issue now but I need to verify. I followed the Install tutorial on the Cypht website so I have my directories set up as /var/lib/hm3/* and all the references in my hm3.ini are to /var/lib/hm3/* In the Apache log I am seeing it say open_basedir prohibits opening /var/lib/cypht/app_data/cypht.dbbut I have db_socket=/var/lib/hm3/app_data/cypht.dbin the hm3.ini file so I am guessing that if I change to /var/lib/cypht/* the issue will go away.
    Yes, that does indeed work!
    Weston Miller
    @kk6mrp
    So somehow the setting is getting re-written from what it was set to
    Jason Munro
    @jasonmunro
    @kk6mrp thanks for fixing my typo in the wiki :) Cypht should not be rewriting any paths, directories defined in the ini should be white-listed in open basedir as seen here: https://github.com/jasonmunro/cypht/blob/master/lib/ini_set.php#L60-L70 So as long as the path is correct on disk, matches the hm3.ini file, and config_gen.php has been run, it should work. If you can reproduce otherwise please fill out an issue at github with the steps and I will investigate.
    Weston Miller
    @kk6mrp
    I will try to reproduce the issue and open an issue on github if needed: that is, if I can reproduce the issue. One other question, I have the First page after loginset to Everythingis there a way for this to be the default page when opening a new tab also or would that have to be added?
    Jason Munro
    @jasonmunro
    not sure what you mean, like if you went to just the base cypht url you would be directed to the first page after login setting value? Not a bad idea since the Home page is pretty much worthless at this point :)
    Weston Miller
    @kk6mrp
    If I log in I am directed to here with First page after login set: https://mail.mysite.com/?page=message_list&list_path=combined_inbox
    If I close that tab and open a new tab and type in mail.mysite.com, it redirects to https://mail.mysite.com/?page=home but it just says https://mail.mysite.com in the address bar
    Jason Munro
    @jasonmunro
    ah I see what you mean, just a sec
    Weston Miller
    @kk6mrp
    By the way, you have done a great job on this project! Thank you for your time and effort!
    Jason Munro
    @jasonmunro
    Thanks! Appreciate your interest and feedback in the project
    https://gist.github.com/jasonmunro/2094ff2a668553d8b1de66a1be2c57ec <- this will do what you want I think. Need to test a bit more before I can commit but I will let you know
    Weston Miller
    @kk6mrp
    So far that works for me! I'll let you know if I have any issues
    Weston Miller
    @kk6mrp
    So this is a little strange... I have two sites pointing to the same Cypht install which appears to be possible based on this issue: jasonmunro/cypht#127 but I don't know if I am doing it right. What appears to be happening is that when a user signs in from a different browser, it logs in but all settings/servers/etc are gone. If you log out and log back in, it will open Cypht with all the settings/servers that were saved before. Here is my log for a single sign on: https://pastebin.com/raw/H9FUp69x
    This is with the SQLite database that we got going before
    Weston Miller
    @kk6mrp
    I did some more testing and this happens whenever I change browsers/open private windows and when I log through the other domain. On the first login, the default Cypht page opens with default theme and says I need to add sources and then logging out and logging back in in the same session opens up the theme/settings/mail connections.
    Jason Munro
    @jasonmunro
    @kk6mrp well that is pretty strange. Could you fill out an issue with these details at github so we can debug it more?
    Marc Laporte
    @marclaporte_gitlab
    Off topic: Machine Learning in PHP -> Community chat -> Date and time: Wednesday, August 5, 2020. -> http://dev.tiki.org/Rubix-ML
    Marc Laporte
    @marclaporte_gitlab
    For the Tiki & Cypht interop, we had some collisions in some contexts. Some major changes were done to make this robust: tikiwiki/tiki@b5fe577 tikiwiki/tiki@86704f9
    Marc Laporte
    @marclaporte_gitlab
    Machine Learning in PHP: online meetup in a few days: https://github.com/RubixML/RubixML/wiki/Our-First-Online-Meetup
    Steve Roberts
    @stage3-net
    Can Cypht be installed and run in a cPanel shared hosting environment (PHP 7)? I think in theory it should work if I can get the necessary files in the right places.
    Marc Laporte
    @marclaporte_gitlab
    I am eager to learn the answer to that. Do you have SSH?
    Marc Laporte
    @marclaporte_gitlab
    I use Cypht daily on my phone. I scan messages and delete, reply, archive, or move to another folder. Some of these decisions are done after reading the whole message. So I'd like the action toolbar to also be below the message (after I read it). Thoughts?
    Steve Roberts
    @stage3-net
    Marc, I do not have SSH access on my hosting account, I can request it though.
    Jason Munro
    @jasonmunro
    @stage3-net I think it's going to be tricky to get cypht properly installed without it. Not impossible I don't think, but tricky
    Marc Laporte
    @marclaporte_gitlab
    I am having an issue with Cypht in Tiki: I am 95% sure it's an integration issue, and not in standalone Cypht, but I'd like to double check:
    1- Sometimes, I attach a file to an email, and it's confirmed uploaded. But then, when I send, the attachment is not part of sent email
    2- Sometimes, I click reply, or reply to all, and the email is blank. If I cancel and try again, it works OK.
    I get the impression these two issues share the same cause. Any ideas on where to look?
    Jason Munro
    @jasonmunro
    I think they are both Cypht bugs, I have had each happen to me but not frequently enough to track down yet. I'm not sure they share the same cause, but I'm not sure they don't. If you could create issues for each at Github I will follow up with some theories and we can test from there.
    Galyna
    @DOKMIA_twitter
    Hello everybody! I am looking for a developer to implement cypht webmail into my CRM.
    Marc Laporte
    @marclaporte_gitlab
    @DOKMIA_twitter Fantastic!
    I think it's a great use case!
    Interact with client in context of the client info, instead of a huge mailbox with everything.