PDA

View Full Version : Claws Mail PBI don't have all plugins


nemysis
03-28-2012, 08:10 PM
There are more usefull plugins, which I use daily

http://www.freshports.org/search.php?query=claws&search=go&num=10&stype=name&method=match&deleted=excludedeleted&start=1&casesensitivity=caseinsensitive

Perhaps this Modules use more dependencies.

For claws-mail-fancy is webkit-gtk2, and I can make a PBI if this is needed.


Please adjust this PBI with additional Module with this Linie or similar

PBI_MKPORTAFTER="mail/claws-mail-archiver mail/claws-mail-att_remover \
mail/claws-mail-attach_warner mail/claws-mail-clamd mail/claws-mail-fancy \
mail/claws-mail-fetchinfo mail/claws-mail-gtkhtml2_viewer mail/claws-mail-perl \
mail/claws-mail-rssyl mail/claws-mail-spamreport mail/claws-mail-tnef \
mail/claws-mail-vcalendar mail/clawsker"


http://trac.pcbsd.org/browser/pbi/modules/mail/claws-mail/pbi.conf


I normally install FreeBSD Ports with this script, when this new PBI is finished I deinstall all this

cat /home/bin/install-claws-mail-bsd
#!/bin/sh

portmaster -n mail/claws-mail mail/claws-mail-archiver mail/claws-mail-att_remover \
mail/claws-mail-attach_warner mail/claws-mail-clamd mail/claws-mail-fancy \
mail/claws-mail-fetchinfo mail/claws-mail-gtkhtml2_viewer mail/claws-mail-perl \
mail/claws-mail-rssyl mail/claws-mail-spamreport mail/claws-mail-tnef \
mail/claws-mail-vcalendar mail/clawsker


echo ""
echo -n "Would You to install Claws Mail (y,n)"
echo ""
echo ""
read INSTALL
if [ "${INSTALL}" = "Y" -o "${INSTALL}" = "y" ]
then
echo ""
echo ""
portmaster mail/claws-mail mail/claws-mail-archiver mail/claws-mail-att_remover \
mail/claws-mail-attach_warner mail/claws-mail-clamd mail/claws-mail-fancy \
mail/claws-mail-fetchinfo mail/claws-mail-gtkhtml2_viewer mail/claws-mail-perl \
mail/claws-mail-rssyl mail/claws-mail-spamreport mail/claws-mail-tnef \
mail/claws-mail-vcalendar mail/clawsker

else
echo ""
echo "You have not installed Claws Mail!"
echo ""
fi

Beanpole
03-29-2012, 06:49 PM
Thanks for the suggestion!
I just added these plugins to our module for claws-mail and set it to rebuild the PBI.

epp
08-04-2012, 07:20 PM
There is a Linux package claws-mail-extra-plugins which contains more plugins. These particular extra plugins (bsfilter, gtkhtml2viewer, notification and others) did not install on a default installation of Claws Mail.

I attempted to install these separately via the Ports collection, Running the command pkg_add -r with the filename and the Ports command (whatever that does), both tell me that the packages are "installed", however when I go back to Claws Mail, the additional plugins are NOT in the plugin directory, it only shows the one plugin (trayicon) that installed with it.

In addition to this, when I "installed" the first plugin package, during the process, it also installed Claws Mail from the Ports collection, so the system now has -2- versions of Claws Mail installed. And this other version also appears to pull it from the same plugin directory, which only shows trayicon.

Any help finding these plugins that are "installed" would be greatly appreciated. Thank you.

nemysis
08-06-2012, 07:44 AM
Please look in

less /usr/ports/mail/claws-mail/pkg-plist


There is no

/usr/local/share/icons/hicolor/48x48/apps/claws-mail.png

which is in pkg-plist

share/icons/hicolor/48x48/apps/claws-mail.png


Have used as root

pbi_icon add-pathlnk claws-mail-3.8.0-amd64


And this PBI has not, perhaps is not rebuild with all and approved in AppCafe.

/usr/pbi/claws-mail-arch/include/claws-mail/plugins


Please solve this

Beanpole
08-06-2012, 06:36 PM
@nemysis
When you install the PBI for claws mail, the LOCALBASE of the files listed in the port is actually "/usr/pbi/claws-mail-[architecture]" NOT "/usr/local", so with a PBI installation the file will be located at:
"/usr/pbi/claws-mail-[architecture]/share/icons/hicolor/48x48/apps/claws-mail.png"

This is the whole point of having a self-contained PBI framework, that it does not interfere with the standard installation of the programs on the base ("/usr/local") system.
If there is some urgent reason for linking/copying the file into /usr/local, we can do it, but there needs to be an *important* reason for it (I.E. fixes the PBI for all/most users).

nemysis
08-06-2012, 07:19 PM
ls -l /usr/pbi/claws-mail-amd64/share/icons
lrwxr-xr-x 1 user operator 22 6 Aug 21:01 /usr/pbi/claws-mail-amd64/share/icons -> /usr/local/share/icons

You see this is a link, perhaps this is a bug. This is the same with all other PBI where is this a link to

/usr/local/share/icons


Yes I knew all is in /usr/pbi not localbase.


And what is with claws-mail plugins? Perhaps is PBI not rebuild after adding plugins in pbi.conf PBI_MKPORTAFTER=

With PBI no plugins Directory

/usr/pbi/claws-mail-arch/include/claws-mail


With Ports plugins Directory full working

/usr/local/include/claws-mail/plugins

nemysis
08-07-2012, 12:26 PM
I have downloaded Claws Mail Modul from trac with

cd ~/EasyPBI/Modules

svn co svn://svn.pcbsd.org/pbi/modules/mail/claws-mail


And tried to change pbi.conf to have working GnuPG with Claws Mail, according to

http://www.claws-mail.org/plugins.php?branch=STD

Here are listed additional Plugins

http://www.claws-mail.org/plugins.php?branch=EXT


Have added

This plugin enables the viewing of PDF and PostScript attachments using the Poppler lib and GhostScript.

mail/claws-mail-pdf_viewer


PBI_MKPORTBEFORE="security/gnupg security/libgpg-error security/gpgme"

PBI_MKPORTAFTER="mail/claws-mail-archiver mail/claws-mail-att_remover \
mail/claws-mail-attach_warner mail/claws-mail-clamd mail/claws-mail-fancy \
mail/claws-mail-fetchinfo mail/claws-mail-gtkhtml2_viewer mail/claws-mail-pdf_viewer \
mail/claws-mail-perl mail/claws-mail-rssyl mail/claws-mail-spamreport \
mail/claws-mail-tnef mail/claws-mail-vcalendar mail/clawsker"

PBI_BUILDKEY="01"; export PBI_BUILDKEY
export PBI_PROGNAME PBI_PROGWEB PBI_PROGAUTHOR PBI_MKPORTBEFORE PBI_MKPORTAFTER PBI_PROGICON PBI_MAKEPORT


Have make as root Claws Mail PBI with

time pbi_makeport -c /home/user/EasyPBI/Modules/claws-mail -o /usr/pbi/PBI-out mail/claws-mail


Installed this PBI with

pbi_add --no-checksig claws-mail-3.8.1-amd64.pbi


But have not get GnuPG additions in

/usr/pbi/claws-mail-amd64/include/claws-mail/plugins

/usr/pbi/claws-mail-amd64/lib/claws-mail/plugins


Also have copied from normaly Ports and works good, yes this is dirty, but how to get this normally with a PBI?

ls /usr/pbi/claws-mail-amd64/include/claws-mail/plugins | grep ^pgp ; echo $status
pgpcore
pgpinline
pgpmime

ls /usr/pbi/claws-mail-amd64/lib/claws-mail/plugins | grep ^pgp ; echo $status
pgpcore.a
pgpcore.la
pgpcore.so
pgpinline.a
pgpinline.deps
pgpinline.la
pgpinline.so
pgpmime.a
pgpmime.deps
pgpmime.la
pgpmime.so

Beanpole
08-07-2012, 04:20 PM
You might have forgotten to enable the GPGME option for the Claws-mail port. This is supposed to take care of the PGP, GnuPG, and SMIME plugins.
Reading through the makefile, it looks like it adds the appropriate dependencies on security/gnupg, security/libgpg-error, security/gpgme when that option is enabled, so you should not need your PBI_MKPORTBEFORE setting either.
I went ahead and made the changes to our module, if you want to try downloading/building the PBI again.

The current Claws-Mail PBI was built quite awhile ago, so once this PBI rebuilds, the icon linking might be fixed for you as well, since there have been a few minor changes to the general PBI build process since PC-BSD 9.0 was released.

nemysis
08-07-2012, 04:38 PM
I have not forgotten to enable the GPGME option for the Claws Mail Port, normally Port works.

Thanks for adjusted pbi.conf i try build again.

nemysis
08-07-2012, 06:51 PM
I have again build Claws Mail with yours pbi.conf.

Now works good Claws Mail with GnuPG :D

ls /usr/pbi/claws-mail-amd64ude/claws-mail/plugins | grep ^pgp ; echo $status
pgpcore
pgpinline
pgpmime

ls /usr/pbi/claws-mail-amd64/claws-mail/plugins | grep ^pgp ; echo $status
pgpcore.a
pgpcore.la
pgpcore.so
pgpinline.a
pgpinline.deps
pgpinline.la
pgpinline.so
pgpmime.a
pgpmime.deps
pgpmime.la
pgpmime.so

Thanks many for good Tip.


I think this is Problems with Icons:

...
Creating external link entries...
WARN: external_link target: "share/icons/hicolor/128x128/apps/claws-mail-128x128.png -> share/icons/hicolor/128x128/apps/claws-mail-128x128.png replace" does not exist!
WARN: external_link target: "share/icons/hicolor/48x48/apps/claws-mail.png -> share/icons/hicolor/48x48/apps/claws-mail.png replace" does not exist!
WARN: external_link target: "share/icons/hicolor/64x64/apps/claws-mail-64x64.png -> share/icons/hicolor/64x64/apps/claws-mail-64x64.png replace" does not exist!
Creating xdg scripts...
..

Beanpole
08-07-2012, 06:59 PM
Ahh, it looks like the port has an error in the pkg-plist then, because those image files are listed in there and the PBI automatically tries to link them when possible.
I would suggest sending the port maintainer a quick message and let him know that it needs to be corrected.

nemysis
08-07-2012, 07:09 PM
Yes in

/usr/ports/mail/claws-mail/pkg-plist

are listed

share/icons/hicolor/128x128/apps/claws-mail-128x128.png
share/icons/hicolor/48x48/apps/claws-mail.png
share/icons/hicolor/64x64/apps/claws-mail-64x64.png


But this should exist in every pkg-plist icons, or in Makefile self

PLIST_FILES= bin/${PORTNAME} \
share/applications/${PORTNAME}.desktop \
share/pixmaps/${PORTNAME}.png

Programs don't have properly links in /usr/local/share/icons if is a link, not only Claws Mail.

ls -l icons
lrwxr-xr-x 1 user operator 22 7 Aug 20:40 icons -> /usr/local/share/icons


Sorry can not email to maintaier why he has this good made. I make self such for mine Ports.

gour
10-04-2012, 09:09 PM
I just added these plugins to our module for claws-mail and set it to rebuild the PBI.

I'd like to migrate from Linux to PC-BSD asap, but Claws and it plugins are one of the 'must' prerequisites...

On Linux Claws' plugins are (usually) handled via so called 'claws-mail-extra-plugins' package, while FreeBSD has port for each plugin.

Here is the list of Claws' plugins: AcpiNotifier, AddressKeeper, AttRemover, AttachWarner, BSfilter, Clamd, Fancy, Fetchinfo, GData, GeoLocation,
Gtkhtml2 Viewer, Mail Archiver, mailMBOX, NewMail, Notification, PDF Viewer,
Perl, Python, RSSyl, SpamReport, TNEF parse, vCalendar.

FreeBSD contains all of them except AcpiNotifier, GeoLocation and Notification.

However, afaics, in comparison with FreeBSD's ports, PC-BSD's PBI is missing:

AddressKeeper (http://www.freshports.org/mail/claws-mail-address_keeper/)
BSfilter (http://www.freshports.org/mail/claws-mail-bsfilter/)
mailMBOX (http://www.freshports.org/mail/claws-mail-mailmbox/)
Python (http://www.freshports.org/mail/claws-mail-python/)


and from the above I'm definitely missing BSfilter to handle spam via Bogofilter (and possibly AddressKeeper) if we assume that based on PBI_MAKEOPTS="WITH_GPGME=true WITH_SPAMASSASSIN=true"

there is support for GPG signing/encryption.

So, my humble pleas is if you can extend the present Claws-mail PBI by adding the missing plugin(s)?

Possible issue in regard to BSfilter might be that there is more than one version of Bogofilter (I use the one (http://www.freshports.org/mail/bogofilter-sqlite/) which stores its data in Sqlite3 database.


Sincerely,
Gour

Beanpole
10-08-2012, 02:11 PM
I just added the following [FreeBSD ports | claws-mail plugins] to the PBI:
mail/claws-mail-address_keeper
mail/claws-mail-bsfilter
mail/claws-mail-mailmbox
mail/claws-mail-python

Once the PBI rebuilds, please test it out and make sure that the plugins are working to your satisfaction. If you notice an issue with the BSfilter plugin, let me know and we can try to include the bogofilter port as well.

gour
10-08-2012, 07:45 PM
I just added the following [FreeBSD ports | claws-mail plugins] to the PBI:
mail/claws-mail-address_keeper
mail/claws-mail-bsfilter
mail/claws-mail-mailmbox
mail/claws-mail-python


Thank you very much.

At the moment I'm dl-ing latest RC2 and finishing my backup so that I can install & move fully to PC-BSD tomorrow

Once the PBI rebuilds, please test it out and make sure that the plugins are working to your satisfaction. If you notice an issue with the BSfilter plugin, let me know and we can try to include the bogofilter port as well.

Sure.

Now I took a closer look and 'discovered' that mail-bsfilter is actually not Bogofilter, but another plugin.

Fortunately, I've also found out that Bogfilter plugin is one of the included ones.

Please, excuse me for false report. :-(

Still, I believe it's good to have complete arsenal of the plugins which are usually included in Linux's extra-plugins package.