Hmm, when I tested in on linux I did have issues with images showing up in gmail (it was due to the gmail image proxy and ssl issues on my server), but it looks like you are sending it from and to your server and the images are showing fine on your server. Did the images show up when you added them to the headers?
Also, if you want the web portion formatted correctly you will need to put the files in the web folder into plexemail.
If you wouldn't mind, could you send an email using email_use_web_images = True (I'll PM you my email)
Cannot get this to work on Linux due to sqlite version mismatches.
Don't want to break python on my system so didn't try much to resolve. Only the very latest versions of Linux have sqlite 3.8.8.3 bundled, Centos 6.6 which I use only has sqlite 3.6.20.
I see Plex keeps their own version of Python in the /usr/lib/plexmediaserver/Resources folder. Any idea how to use this version to run the script?
Here is trying to access plugins.db with bundled sqlite3:
[root@vulcan scripts]# sqlite3 /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Plug-in\ Support/Databases/com.plexapp.plugins.library.db
SQLite version 3.6.20
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> .databases
Error: file is encrypted or is not a database
sqlite> .quit
Here is with latest downloaded binary:
[root@vulcan scripts]# sqlite3.8.8.3 /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Plug-in\ Support/Databases/com.plexapp.plugins.library.db
SQLite version 3.8.8.3 2015-02-25 13:29:11
Enter ".help" for usage hints.
sqlite> .databases
seq name file
--- --------------- ----------------------------------------------------------
0 main /var/lib/plexmediaserver/Library/Application Support/Plex
sqlite> .quit
I'll take a look at the code during the week and see if I can rather interface with the XML API instead of connecting directly to the db.
Here is trying to access plugins.db with bundled sqlite3:
[root@vulcan scripts]# sqlite3 /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Plug-in\ Support/Databases/com.plexapp.plugins.library.db
SQLite version 3.6.20
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> .databases
Error: file is encrypted or is not a database
sqlite> .quit
Here is with latest downloaded binary:
[root@vulcan scripts]# sqlite3.8.8.3 /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Plug-in\ Support/Databases/com.plexapp.plugins.library.db
SQLite version 3.8.8.3 2015-02-25 13:29:11
Enter ".help" for usage hints.
sqlite> .databases
seq name file
--- --------------- ----------------------------------------------------------
0 main /var/lib/plexmediaserver/Library/Application Support/Plex
sqlite> .quit
I'll take a look at the code during the week and see if I can rather interface with the XML API instead of connecting directly to the db.
Taking a look now to see an easy way to use an alternative version of python without messing up the default version. Testing it now with make altinstall and virtualenv
Taking a look now to see an easy way to use an alternative version of python without messing up the default version. Testing it now with make altinstall and virtualenv
Thanks appreciate it. I'm sure many people that run Linux servers will run into this same problem.
cd ~/downloads
wget https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz
tar -xvf Python-2.7.9.tgz
cd Python-2.7.9
./configure
make
sudo make altinstall
Then make a new virtualenv:
cd ~/plexemail/scripts (or wherever your scripts folder is for plexemail)
sudo virtualenv --python=/usr/local/bin/python2.7 pevenv