Re: OT: perl mail problems
On 01/29/12 02:13, Matthew Seaman wrote: On 28/01/2012 13:39, Da Rock wrote: I know this is not exactly FreeBSD related, but I'm in need of a monk that can enlighten me on a sacred incantation to connect perl to an imap server using Mail::Box modules :) If it helps people sleep, its all running only on FreeBSD systems... I have googled and searched, and googled some more, and tested, and then went back to the drawing board and googled yet again... there is simply no clear answer out there. All the docs are very disjointed from my reckoning- with no clear direction that explains how you get from a-b. I have enabled a connection (I think - based on my tests and logs), but I cannot get further than that. I have a Mail::Box::Manager instantiated, and then I have to use Mail::Box::IMAP4 to open a connection to the server. From there I need to get a list of the folders available- and thats where I get stymied. All the docs are pop3 based, or maildir based, or mbox. The imap is very sketchy... and what is out there says to basically connect, and then there is a jump to folders and messages with no idea of what is involved in between. Although I did see one complete example with pop3, but it won't work for imap. This is absolutely typical -- IMAP is frequently treated as POP-with-extra-bits, which really makes no sense whatsoever. There's a fundamental difference in behaviour to do with where the mail is actually stored. Anything that works by connecting to an IMAP server and downloading all the new messages to hold and read locally really is missing the point. I think there is a genuine effort to help make it easier to use and to abstract the backend, but it doesn't seem the coder has a handle on it themselves. They seem more familiar with filesystem based mail then the network ones- and then familiarity with pop3 rules. Therefore me, as a newb, has next to no hope of figuring it out... :/ One of the biggest problems is the username confuses any other module method than the Mail::Box::IMAP4 - the syntax is user@domain, and so if I use Mail::Box::Manager it will compile it into a url form ie imap4://user@domain:password@mail.server which it obviously barfs on and refuses to look beyond user@domain. Yeah, IMAP4 doesn't do URL-style things itself, so this is a fiction invented to appease the higher layers of Mail::Box. Unfortunately, '@' is of syntactic significance to URL schemes, making it difficult to incorporate usernames containing it. Hmmm can you substitute a hex encoded character string in that username? %40 should be the encoding for an @ character. That could work... I might have a crack at that. I thought pop3 would have trouble as well, you can use that username structure there too. I really seem to be missing something fundamental here. I'm only trying to create some tools which will handle some situations apparently only local to my systems, and improve my perl foo before I start creating modules of my own and testing mod_perl. If someone can help clear this up I'll be happy to communicate off list if that is necessary. Is all the e-mail you have to deal with stored on your IMAP4 server? If so, then using Mail::IMAPClient directly[*] might serve you better rather than through the Mail::Box and Mail::Transport classes. However, that's a much lower level interface and you'll need to be fairly au-fait with RFC 3501. (That's not as bad as it sounds: all it boils down to is finding what the command is called in the IMAP protocol when you want to achieve a particular effect.) Yes... I was dreading that a bit, but it does seem easier. I was hoping it would be more like Email::Simple, but it doesn't seem to be there yet. That said, I'll try that trick and see if it works first. One thing that I notice on a cursory reading of Mail::Box::IMAP4 is that it seems to assume things about the behaviour of the IMAP message store which aren't necessarily true for all different IMAP servers. (ICBW -- it was a /very/ cursory reading.) Usernames of the form 'n...@example.com' are one of those things you can do with IMAP which tend to come as a bit of a surprise to people used to other mailclient protocols. It seems to make some assumptions based on common uses, and I believe it said you can override others; but yes it is also still under development - a note which appears and disappears from time to time :S Thanks for the help guys. I've stepped away from php for security reasons; and the fact that I can integrate perl right into apache with mod_perl. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: OT: perl mail problems
On 29/01/2012 08:11, Da Rock wrote: Thanks for the help guys. I've stepped away from php for security reasons; and the fact that I can integrate perl right into apache with mod_perl. Verb. Sap. Checkout PSGI if you're doing web-based perl things. See http://plackperl.org/ It means you can code up your web app using the Plack API using a simple built-in HTTP server and then deploy to your production systems using full-on mod_perl and apache. Or mod_psgi and apache. Or any one of about twenty different combinations -- whatever web server, plugin module, toolkit, etc. you already have deployed. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: OT: perl mail problems
Matthew Seaman m.sea...@infracaninophile.co.uk wrote: Anything that works by connecting to an IMAP server and downloading all the new messages to hold and read locally really is missing the point. ... or is working around administrative issues, e.g. the mail recipient wants the mail stored locally, and the mail-server provides IMAP but not POP. BTW fetchmail is the canonical (although not the only) solution to this problem. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
make release custom kernel conf not found
Hi All, I am performing a `make release` to build a new release with a custom kernel. The `make release` fails with the following error: cd /usr/src/release/..; make TARGET_ARCH=amd64 TARGET=amd64 KERNCONF=MYKERNEL kernel DESTDIR=/R/stage/kernels KODIR=/MYKERNEL ERROR: Missing kernel configuration file(s) (MYKERNEL). *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src/release. + umount /dev *** Error code 1 Stop in /usr/src/release. I have the kernel config at /root/kernels/MYKERNEL and /usr/src/sys/amd64/conf/MYKERNEL is a symlink to the kernel config. The applicable environment variables are set in my .profile as follows: BUILDNAME=8.2-RELEASE-MYKERNEL-1.1 CHROOTDIR=/app/release CVSROOT=/home/cvs EXTPORTSDIR=/usr/ports EXTSRCDIR=/usr/src KERNELS=GENERIC MYKERNEL MAKE_DVD=YES NODOC=YES NO_FLOPPIES=YES I am unsure how to get `make release` to realize the location of the kernel config. Also, I notice that in the command to make the kernel, DESTDIR is set to /R/stage/kernels while the CHROOTDIR (and the location where I want the release to be built) is /app/release. I am wondering if someone knows how I may resolve the issue so I can get the release built. I appreciate any advice and feedback. Thanks. -- Take care Rick Miller ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
issue with limiting java's memory usage
hi there, maybe i'm missing something obvious, but i don't quite understand the following top(1) output: last pid: 13875; load averages: 0.73, 0.75, 0.68 65 processes: 2 running, 62 sleeping, 1 waiting CPU 0: 19.5% user, 0.0% nice, 13.3% system, 0.0% interrupt, 67.2% idle CPU 1: 20.3% user, 0.0% nice, 7.8% system, 0.0% interrupt, 71.9% idle Mem: 1365M Active, 185M Inact, 323M Wired, 69M Cache, 213M Buf, 32M Free Swap: 10G Total, 2494M Used, 7746M Free, 24% Inuse, 4K In PIDUIDTHR PRI NICE SIZERES STATE C TIME WCPU COMMAND 6913 1001 32 200 4252M 1312M uwait 0 18.3H 39.06% /usr/local/diablo-jdk1.6.0/bin/java -Xmx512m -jar JDownloade ...how can the size of the resident memory of pid 6913 be 512 megabytes? this is wth a very recent HEAD on amd64. cheers. alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
how safe is kern.geom.part.check_integrity=0 ?
Hello, I upgraded today a gmirror'ed machine from 8.2-RELEASE to 9.0-RELEASE, but the system fails to mount my root mirror with an error 19 when I try to boot with the 9.0 kernel. I read that adding kern.geom.part.check_integrity=0 could solve the problem, but I haven't found any statement on the safety of setting this.. Any idea if it's safe ? Also I'm a bit disappointed that there is no entry in /usr/src/UPDATING about this issue ... Thanks, Julien ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: issue with limiting java's memory usage
Le Sun, 29 Jan 2012 19:34:11 +, Alexander Best arun...@freebsd.org a écrit : hi there, Hello, maybe i'm missing something obvious, but i don't quite understand the following top(1) output: last pid: 13875; load averages: 0.73, 0.75, 0.68 65 processes: 2 running, 62 sleeping, 1 waiting CPU 0: 19.5% user, 0.0% nice, 13.3% system, 0.0% interrupt, 67.2% idle CPU 1: 20.3% user, 0.0% nice, 7.8% system, 0.0% interrupt, 71.9% idle Mem: 1365M Active, 185M Inact, 323M Wired, 69M Cache, 213M Buf, 32M Free Swap: 10G Total, 2494M Used, 7746M Free, 24% Inuse, 4K In PIDUIDTHR PRI NICE SIZERES STATE C TIME WCPU COMMAND 6913 1001 32 200 4252M 1312M uwait 0 18.3H 39.06% /usr/local/diablo-jdk1.6.0/bin/java -Xmx512m -jar JDownloade ...how can the size of the resident memory of pid 6913 be 512 megabytes? I don't know but you can inspect the java application with the java console (jconsole). There are several stats on memory usage. With JDownloader (doing nothing), I see 57 MB of non heap memory usage, and only 30 MB of heap memory. Regards. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: issue with limiting java's memory usage
On Sun Jan 29 12, Patrick Lamaiziere wrote: Le Sun, 29 Jan 2012 19:34:11 +, Alexander Best arun...@freebsd.org a écrit : hi there, Hello, maybe i'm missing something obvious, but i don't quite understand the following top(1) output: last pid: 13875; load averages: 0.73, 0.75, 0.68 65 processes: 2 running, 62 sleeping, 1 waiting CPU 0: 19.5% user, 0.0% nice, 13.3% system, 0.0% interrupt, 67.2% idle CPU 1: 20.3% user, 0.0% nice, 7.8% system, 0.0% interrupt, 71.9% idle Mem: 1365M Active, 185M Inact, 323M Wired, 69M Cache, 213M Buf, 32M Free Swap: 10G Total, 2494M Used, 7746M Free, 24% Inuse, 4K In PIDUIDTHR PRI NICE SIZERES STATE C TIME WCPU COMMAND 6913 1001 32 200 4252M 1312M uwait 0 18.3H 39.06% /usr/local/diablo-jdk1.6.0/bin/java -Xmx512m -jar JDownloade ...how can the size of the resident memory of pid 6913 be 512 megabytes? I don't know but you can inspect the java application with the java console (jconsole). There are several stats on memory usage. jconsole doesn't seem to work for me. all i get is a blank white X window. :( cheers. alex With JDownloader (doing nothing), I see 57 MB of non heap memory usage, and only 30 MB of heap memory. Regards. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
em0 legacy driver 1.0.3?
Hi, I noticed that my Intel 82541GI gigabit ethernet controller uses a legacy driver 1.0.3, instead of the in 9.0 standard em0 driver 7.3.2. Why is this and is the legacy driver as good as the standard driver? Regards, Marco -- The road to Hades is easy to travel. -- Bion ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: OT: perl mail problems
On 01/29/12 18:56, Matthew Seaman wrote: On 29/01/2012 08:11, Da Rock wrote: Thanks for the help guys. I've stepped away from php for security reasons; and the fact that I can integrate perl right into apache with mod_perl. Verb. Sap. Checkout PSGI if you're doing web-based perl things. See http://plackperl.org/ It means you can code up your web app using the Plack API using a simple built-in HTTP server and then deploy to your production systems using full-on mod_perl and apache. Or mod_psgi and apache. Or any one of about twenty different combinations -- whatever web server, plugin module, toolkit, etc. you already have deployed. Thanks Matthew. I'll look into that at some point, but I'm not entirely sure it will be necessary in my situation. I finally decided to scrap Mail::Box and go with Mail::IMAPClient instead as suggested (I didn't even bother with the workaround), and it worked immediately! So I'm stoked... much simpler to use. Should have called it Mail::IMAPSimple instead :) All that googling for nought! Mail::IMAPClient never really came up as a contender when searching perl imap - it was all about Mail::Box. Weird... Cheers ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: make release custom kernel conf not found
On Sun, Jan 29, 2012 at 9:03 AM, Rick Miller vmil...@hostileadmin.com wrote: Hi All, I am performing a `make release` to build a new release with a custom kernel. The `make release` fails with the following error: cd /usr/src/release/..; make TARGET_ARCH=amd64 TARGET=amd64 KERNCONF=MYKERNEL kernel DESTDIR=/R/stage/kernels KODIR=/MYKERNEL ERROR: Missing kernel configuration file(s) (MYKERNEL). *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src/release. + umount /dev *** Error code 1 Stop in /usr/src/release. I have the kernel config at /root/kernels/MYKERNEL and /usr/src/sys/amd64/conf/MYKERNEL is a symlink to the kernel config. The applicable environment variables are set in my .profile as follows: BUILDNAME=8.2-RELEASE-MYKERNEL-1.1 CHROOTDIR=/app/release CVSROOT=/home/cvs EXTPORTSDIR=/usr/ports EXTSRCDIR=/usr/src KERNELS=GENERIC MYKERNEL MAKE_DVD=YES NODOC=YES NO_FLOPPIES=YES I am unsure how to get `make release` to realize the location of the kernel config. Also, I notice that in the command to make the kernel, DESTDIR is set to /R/stage/kernels while the CHROOTDIR (and the location where I want the release to be built) is /app/release. I am wondering if someone knows how I may resolve the issue so I can get the release built. I appreciate any advice and feedback. Thanks. The kernel is built inside the chroot, so all paths are really /app/release/whatever. Your symlink points to /app/release/root/kernels/MYKERNEL. It will be easiest to get rid of the symlink and copy the actual file into your EXTSRCDIR before starting the make release; alternately you could use the LOCAL_PATCHES or LOCAL_SCRIPT variables to import it. -- Rob Farmer ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: make release custom kernel conf not found
2012-01-29 18:03, Rick Miller skrev: Hi All, I am performing a `make release` to build a new release with a custom kernel. The `make release` fails with the following error: cd /usr/src/release/..; make TARGET_ARCH=amd64 TARGET=amd64 KERNCONF=MYKERNEL kernel DESTDIR=/R/stage/kernels KODIR=/MYKERNEL Shouldn't that be KERNCONF=MYKERNEL DESTDIR=/R/stage/kernels KODIR=/MYKERNEL ERROR: Missing kernel configuration file(s) (MYKERNEL). *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src/release. + umount /dev *** Error code 1 Stop in /usr/src/release. I have the kernel config at /root/kernels/MYKERNEL and /usr/src/sys/amd64/conf/MYKERNEL is a symlink to the kernel config. The applicable environment variables are set in my .profile as follows: BUILDNAME=8.2-RELEASE-MYKERNEL-1.1 CHROOTDIR=/app/release CVSROOT=/home/cvs EXTPORTSDIR=/usr/ports EXTSRCDIR=/usr/src KERNELS=GENERIC MYKERNEL MAKE_DVD=YES NODOC=YES NO_FLOPPIES=YES I am unsure how to get `make release` to realize the location of the kernel config. Also, I notice that in the command to make the kernel, DESTDIR is set to /R/stage/kernels while the CHROOTDIR (and the location where I want the release to be built) is /app/release. I am wondering if someone knows how I may resolve the issue so I can get the release built. I appreciate any advice and feedback. Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org