Re: Sendmail relaying for Intranet?
On 13/02/2013 09:50, Bernt Hansson wrote: dnl define(`SMART_HOST', `your.isp.mail.server') on your intranet machine and put in your inet machine name. Switching to postfix and editing mynetworks in main.cf might be simplest solution. Peter ___ 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: Upgrade causes loss of all firefox settings (?)
On Wed, Feb 13, 2013 at 11:35 AM, Bernt Hansson b...@bananmonarki.se wrote: A blind Linux user's homepage: http://juliencoder.de/ The homepage of my provider: http://www.o2online.de/ What site is more pleasant ;)? The first one. Agree, it contains more information than the second one which is picture-flash based and I cannot see ~80% of its content :-) Anyway the best thing in BSD is that you can do ANYTHING from the commandline with a simple command set, including full system configuration, package creation, kernel build, etc :-) Best regards :-) Tomek Cedro -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info ___ 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
OT: Upgrade causes loss of all firefox settings (?)
On Wed, 2013-02-13 at 11:39 +0100, CeDeROM wrote: Agree, it contains more information than the second one which is picture-flash based and I cannot see ~80% of its content :-) And the biggest evil is, that those web pages hide important things and they don't add a site map. I can't find the current location to download the bill and already clicked through billions of advertisings, that are nothing but a PITA. No FreeBSD browser and no Linux browser until now is able to open mails by the interface of the homepage, if I try to contact them, by their contact forms, I'm linked to the logout. In the past it already was hard to download the bill. No action for a click and right click, to download was banned. I had to close and open several browsers, to log out and in, out and in ... and when doing this for half an hour I was able to download the bill. Since I've got VBox with XP for a while, next time I'll test to access the homepage with XP. Regards, Ralf PS: Regarding to the topic: Does renaming the config dir work? ___ 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: Upgrade causes loss of all firefox settings (?)
On 12/02/2013 21:38, Ronald F. Guilmette wrote: In general, I don't upgrade my ports very often, so up until recently I was running a fairly old version of firefox (firefox-15.0.1,1). But over the weekend, I moved everything over to a new drive containing the latest 9.1-RELEASE FreeBSD, and with a complete set of freshly rebuilt ports, including the latest firefox 18.0.1. (As part of this process, I copied my entire /home directory over to the new drive.) So anway, mostly everything is still working ok, however at some time during this process, firefox apparently lost track of all of my personal settings... my start page, all of my bookmarks, and all of my saved web site user IDs an passwords. I looked in the /usr/ports/UPDATING file for some clue as to why this might have happened and found none. Looking into this issue a bit deeper, I've now learned that all of one's personal settings are stored in a directory having a name which has the following general form: ~/.mozilla/firefox/.default where the part is some eight character apparently random combination of lower case letters and digits. The odd thing is that it appears that all of my old firefox setting are still alive and well and living under a subdirectory of the ~/.mozilla/firefox directory called 4up9dkb1.default. However it does also appear that my execution of firefox, for the first time, on this new system I've been putting together has resulted in the creation of a brand new parallel subdirectory, located in the same directory as my original personal settings .default directory, but this new one is named nh2ykiym.default. And now, firefox is apparently saving and retrieving my (new set of) personal settings out of that new directory. So, um, what gives? Why did this happen? And more to the point, can I get back all of my personal settings just via the following seemingly intutive commands: rm -fr nh2ykiym.default mv 4up9dkb1.default nh2ykiym.default or will that break something else in some obscure but annoying way? Is there a file .mozilla/firefox/profiles.ini? If so it should list which profile to use. Just change it to the one you want and it should just work. I'm using an older version so don't know how the latest works Chris Regards, rfg ___ 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 ___ 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
baresip: SIP call connects but no video
Hello, I run baresip v0.4.0 on FreeBSD 10-CURRENT. I'd like to phone to one of our SIP conference rooms and this works fine concerning audio, but no video; the local video loop works fine; while calling it says: ... connecting to 'sip:x...@oclc.org'.. SIP Progress: 100 Trying () SIP Progress: 180 Ringing () oss init: 16 bit 8000 Hz 1 ch, blocksize=128 Set audio encoder: PCMA 8000Hz 1ch Set audio decoder: PCMA 8000Hz 1ch oss init: 16 bit 8000 Hz 1 ch, blocksize=128 oss init: 16 bit 8000 Hz 1 ch, blocksize=128 Enable telephone-event: pt_tx=101, pt_rx=101 video stream is disabled.. map...@iptel.org: Call established: sip:x...@oclc.org Any idea what is missing? Thanks matthias -- Sent from my FreeBSD netbook Matthias Apitz | - No system with backdoors like Apple/Android E-mail: g...@unixarea.de | - No HTML/RTF in E-mail WWW: http://www.unixarea.de/ | - No proprietary attachments phone: +49-170-4527211 | - Respect for open standards ___ 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: Upgrade causes loss of all firefox settings (?)
On Wed, 2013-02-13 at 13:13 +, Chris Whitehouse wrote: Is there a file .mozilla/firefox/profiles.ini? If so it should list which profile to use. Just change it to the one you want and it should just work. I'm using an older version so don't know how the latest works Good point Chris! I've forgotten, that there is such a file, when using profiles. Btw. they are formated like this: spinymouse@precise:~$ ls -l /mnt/archlinux/home/spinymouse/.mozilla/firefox total 8 lrwxrwxrwx 1 spinymouse users 18 Dec 13 2011 archfox - /mnt/data2/archfox drwx-- 13 spinymouse users 4096 Oct 31 15:11 ndos9d6q.default -rw-r--r-- 1 spinymouse users 143 Apr 18 2012 profiles.ini spinymouse@precise:~$ cat /mnt/archlinux/home/spinymouse/.mozilla/firefox/profiles.ini [General] StartWithLastProfile=1 [Profile0] Name=d IsRelative=1 Path=ndos9d6q.default Default=1 [Profile1] Name=x IsRelative=1 Path=archfox ___ 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
pkg -c/pkg -j question
A question for pkgng gurus. When using pkg -c or pkg -j to work within chroots or jails, how much of the pkg infrastructure needs to be present in the chroot/jail? The reason I ask is because I'm thinking of building a server which has all services running in jails, with the necessary packages being manipulated from above. ___ 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: pkg -c/pkg -j question
On 13/02/2013 15:58, Arthur Chance wrote: A question for pkgng gurus. When using pkg -c or pkg -j to work within chroots or jails, how much of the pkg infrastructure needs to be present in the chroot/jail? The reason I ask is because I'm thinking of building a server which has all services running in jails, with the necessary packages being manipulated from above. You need /bin/sh in each jail for pkg to be able to workout what ${ABI} should be. You need /var/db/pkg and /var/cache/pkg available and writable in the jail / chroot (ie. relative to the chroot or root of the jail) That's basically it. You might run into problems running some package scripts if you're trying to manage a chroot designed for a very different CPU arch / OS version than your system is running: this is something we haven't really put much thought into yet. Cheers, Matthew PS. This sort of question is what the new freebsd-...@freebsd.org list is for. ___ 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
Fun Scripting Problem
I know how to do this in Python, but I really want to do it in straight Bourne shell. I have some ideas, but I thought I'd give you folks a crack at this Big Fun: a) You have a directory of files - say they're logs - generated at nondeterministic intervals. You may get more than one a day, more than one a month, none, or hundreds. b) To conserve space, you want to keep the last file generated in any given month (the archive goes back for an unspecified number of years), and delete all the files generated prior to that last file in that same month. c) Bonus points if the problem is solved generally for either files or directories generated as described above. These are not actually logs, and no, I don't think logrotate can do this ... or can it? -- --- Tim Daneliuk ___ 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: Fun Scripting Problem
(apologies for top-post) As tempted as I am, I think newsyslog(8) may be what you want. Missing information in your post is how you intend to timestamp the files -- by filename? by content? If by-content, then is it a good assumption that the data is one entry per-line? ... and if-so, is the timestamp in that line? These are all questions that would be needed to script what you're asking for (not that I'm volunteering or anything like that). -- Devin From: owner-freebsd-questi...@freebsd.org [owner-freebsd-questi...@freebsd.org] on behalf of Tim Daneliuk [tun...@tundraware.com] Sent: Wednesday, February 13, 2013 10:27 AM To: FreeBSD Mailing List Subject: Fun Scripting Problem I know how to do this in Python, but I really want to do it in straight Bourne shell. I have some ideas, but I thought I'd give you folks a crack at this Big Fun: a) You have a directory of files - say they're logs - generated at nondeterministic intervals. You may get more than one a day, more than one a month, none, or hundreds. b) To conserve space, you want to keep the last file generated in any given month (the archive goes back for an unspecified number of years), and delete all the files generated prior to that last file in that same month. c) Bonus points if the problem is solved generally for either files or directories generated as described above. These are not actually logs, and no, I don't think logrotate can do this ... or can it? -- --- Tim Daneliuk ___ 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 _ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. ___ 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: Fun Scripting Problem
On 02/13/2013 12:38 PM, Teske, Devin wrote: (apologies for top-post) As tempted as I am, I think newsyslog(8) may be what you want. Missing information in your post is how you intend to timestamp the files -- by filename? by content? If by-content, then is it a good assumption that the data is one entry per-line? ... and if-so, is the timestamp in that line? These are all questions that would be needed to script what you're asking for (not that I'm volunteering or anything like that). The only way to determine the date of the file is by looking at its stat info. There is nothing the file name or content that could be used to infer this. -- --- Tim Daneliuk ___ 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: Fun Scripting Problem
Tim Daneliuk tun...@tundraware.com writes: On 02/13/2013 12:38 PM, Teske, Devin wrote: (apologies for top-post) As tempted as I am, I think newsyslog(8) may be what you want. Missing information in your post is how you intend to timestamp the files -- by filename? by content? If by-content, then is it a good assumption that the data is one entry per-line? ... and if-so, is the timestamp in that line? These are all questions that would be needed to script what you're asking for (not that I'm volunteering or anything like that). The only way to determine the date of the file is by looking at its stat info. There is nothing the file name or content that could be used to infer this. Well, you can use stat to output the year, month, timestamp, and file name in a fixed format for all of the files, sort them, and then cycle through the list, deleting every file that has a year and month that are the same as the following one in the list. The looping can be done with sh read or with sed. ___ 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
Why ue0 do ARP on non local address when using static route?
This is 8.3-Release on a HP EliteBook 8460p (4-core i5) with an on board Intel (em0) interface. When attached a Trendent TU2-ET100 USB Ether dongle for a second interface, it has no problem to talk to the local network (10.234.37.0/24), but it has problem to talk to a remote network or host (10.227.148.0/24) via eu0 interface. When a remote host ping this host or this host ping that remote host, ARP request is always showing up. A static route is set and remote host is no part of the local sub net, why ARP is going on? Is any sysctl parameter can fix this problem? -Jin Internet: DestinationGatewayFlagsRefs Use Netif Expire default10.234.16.1UGS 0 2841993em0 10.227.148.52 10.234.37.80 UHS 0 26ue0 10.234.16.0/22 link#1 U 00em0 10.234.17.41 link#1 UHS 00lo0 10.234.37.0/24 link#8 U 03ue0 10.234.37.80 link#8 UHS 00lo0 127.0.0.1 link#7 UH 0 492lo0 ue0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=80008VLAN_MTU,LINKSTATE ether 00:50:b6:00:a4:91 inet 10.234.37.80 netmask 0xff00 broadcast 10.234.37.255 media: Ethernet autoselect (100baseTX full-duplex) status: active ping from 10.227.148.52 12:16:37.924425 IP 10.227.148.52 10.234.37.80: ICMP echo request, id 21002, seq 1, length 64 12:16:37.924442 ARP, Request who-has 10.227.148.52 tell 10.234.37.80, length 28 12:16:38.931919 IP 10.227.148.52 10.234.37.80: ICMP echo request, id 21002, seq 2, length 64 12:16:38.931937 ARP, Request who-has 10.227.148.52 tell 10.234.37.80, length 28 12:16:39.931662 IP 10.227.148.52 10.234.37.80: ICMP echo request, id 21002, seq 3, length 64 12:16:39.931680 ARP, Request who-has 10.227.148.52 tell 10.234.37.80, length 28 12:16:40.931656 IP 10.227.148.52 10.234.37.80: ICMP echo request, id 21002, seq 4, length 64 12:16:40.931674 ARP, Request who-has 10.227.148.52 tell 10.234.37.80, length 28 12:16:41.931519 IP 10.227.148.52 10.234.37.80: ICMP echo request, id 21002, seq 5, length 64 12:16:41.931533 ARP, Request who-has 10.227.148.52 tell 10.234.37.80, length 28 12:16:42.931643 IP 10.227.148.52 10.234.37.80: ICMP echo request, id 21002, seq 6, length 64 ping to 10.227.148.52 12:16:42.931661 ARP, Request who-has 10.227.148.52 tell 10.234.37.80, length 28 12:16:59.724724 ARP, Request who-has 10.227.148.52 tell 10.234.37.80, length 28 12:17:00.725715 ARP, Request who-has 10.227.148.52 tell 10.234.37.80, length 28 12:17:01.725883 ARP, Request who-has 10.227.148.52 tell 10.234.37.80, length 28 12:17:02.726690 ARP, Request who-has 10.227.148.52 tell 10.234.37.80, length 28 12:17:03.727677 ARP, Request who-has 10.227.148.52 tell 10.234.37.80, length 28 ^C 45 packets captured 1557 packets received by filter ___ 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: Fun Scripting Problem
Date: Wed, 13 Feb 2013 12:27:31 -0600 From: Tim Daneliuk tun...@tundraware.com Subject: Fun Scripting Problem I know how to do this in Python, but I really want to do it in straight Bourne shell. I have some ideas, but I thought I'd give you folks a crack at this Big Fun: a) You have a directory of files - say they're logs - generated at nondeterministic intervals. You may get more than one a day, more than one a month, none, or hundreds. b) To conserve space, you want to keep the last file generated in any given month (the archive goes back for an unspecified number of years), and delete all the files generated prior to that last file in that same month. c) Bonus points if the problem is solved generally for either files or directories generated as described above. These are not actually logs, and no, I don't think logrotate can do this ... or can it? here's a one-liner: rm ` \ stat -f %SB %B %N * \ | sort -k5nr \ | cut -c1-7,17-20,32- \ | awk 'BEGIN {a=;b=0;c=0} $1==a $2==b $3=c {print $4;}{a=$1;b=$2;c=$3}' \ ` This selects on creation date. change the B (both of them) in the stat call to use a different timestamp ___ 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: Upgrade causes loss of all firefox settings (?)
In message CAFYkXjmA_DTP=Bzf=D+QSw890tbrz0+ZNTiLaWNj=dmr749...@mail.gmail.com CeDeROM cede...@tlen.pl wrote: On Tue, Feb 12, 2013 at 10:38 PM, Ronald F. Guilmette r...@tristatelogic.com wrote: Looking into this issue a bit deeper, I've now learned that all of one's personal settings are stored in a directory having a name which has the following general form: ~/.mozilla/firefox/.default Hey Ronald, are you sure there is no corruption on the disk? I have no reason whatsoever to suspect that there is. ___ 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
vmstat -w not honored
Hello list, I'm running 8.3-STABLE and apparently, vmstat won't honor both -i (interrupts) and -w (repeat display every wait delay seconds) flags at the same time. The problem also arises with -z. The manual doesn't mention these flags being incompatible with -w. Anyone knows if this is intended behavior ? I wanna make sure before filling a PR, either to get this fixed or the man pages adjusted. ___ 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: Why ue0 do ARP on non local address when using static route?
On Feb 13, 2013, at 12:35 PM, Jin Guojun wrote: When attached a Trendent TU2-ET100 USB Ether dongle for a second interface, it has no problem to talk to the local network (10.234.37.0/24), but it has problem to talk to a remote network or host (10.227.148.0/24) via eu0 interface. When a remote host ping this host or this host ping that remote host, ARP request is always showing up. A static route is set and remote host is no part of the local sub net, why ARP is going on? You've told the interface that it can reach 10.227.148.52 via 10.234.37.80, which is the IP ue0 was configured to use. It sends ARPOP_REQUESTS to get the MAC address of 10.227.148.52 which is expected to be reachable. Is any sysctl parameter can fix this problem? You can do things like use proxy-arp, or setup /etc/ethers, or NAT, or even configure ue0 to be on the same subnet as 10.227.148.52 instead, perhaps using an alias. Regards, -- -Chuck ___ 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: Why ue0 do ARP on non local address when using static route?
/etc/ethers does not help because there is no way resolve the IP by QFHN in ethers. The correct way is to use router IP (10.234.37.1) between 10.234.37.0 and 10.227.148.0 instead of interface IP (10.234.37.80) for static route. From: Chuck Swiger cswi...@mac.com To: Jin Guojun jguo...@sbcglobal.net Cc: questions freebsd questi...@freebsd.org Sent: Wed, February 13, 2013 12:55:07 PM Subject: Re: Why ue0 do ARP on non local address when using static route? On Feb 13, 2013, at 12:35 PM, Jin Guojun wrote: When attached a Trendent TU2-ET100 USB Ether dongle for a second interface, it has no problem to talk to the local network (10.234.37.0/24), but it has problem to talk to a remote network or host (10.227.148.0/24) via eu0 interface. When a remote host ping this host or this host ping that remote host, ARP request is always showing up. A static route is set and remote host is no part of the local sub net, why ARP is going on? You've told the interface that it can reach 10.227.148.52 via 10.234.37.80, which is the IP ue0 was configured to use. It sends ARPOP_REQUESTS to get the MAC address of 10.227.148.52 which is expected to be reachable. Is any sysctl parameter can fix this problem? You can do things like use proxy-arp, or setup /etc/ethers, or NAT, or even configure ue0 to be on the same subnet as 10.227.148.52 instead, perhaps using an alias. Regards, -- -Chuck ___ 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: Why ue0 do ARP on non local address when using static route?
Jin Guojun jguo...@sbcglobal.net writes: This is 8.3-Release on a HP EliteBook 8460p (4-core i5) with an on board Intel (em0) interface. When attached a Trendent TU2-ET100 USB Ether dongle for a second interface, it has no problem to talk to the local network (10.234.37.0/24), but it has problem to talk to a remote network or host (10.227.148.0/24) via eu0 interface. When a remote host ping this host or this host ping that remote host, ARP request is always showing up. A static route is set and remote host is no part of the local sub net, why ARP is going on? Is any sysctl parameter can fix this problem? Until we know what the problem is, we can't guess at the solution. You didn't show the commands you used, for setting up the routes *or* for the diagnostic information you provided. -Jin Internet: DestinationGatewayFlagsRefs Use Netif Expire default10.234.16.1UGS 0 2841993em0 10.227.148.52 10.234.37.80 UHS 0 26ue0 There's no G in the flags there. Sign of a problem. 10.234.16.0/22 link#1 U 00em0 10.234.17.41 link#1 UHS 00lo0 10.234.37.0/24 link#8 U 03ue0 10.234.37.80 link#8 UHS 00lo0 That's the gateway address. What's it doing with a host route on the loopback interface? That will override the 10.234.37.0/24 interface route, and turn 10.234.37.80 into a black hole. - Lowell ___ 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: Why ue0 do ARP on non local address when using static route?
On Feb 13, 2013, at 2:17 PM, Jin Guojun wrote: /etc/ethers does not help because there is no way resolve the IP by QFHN in ethers. I'm not sure what QFHN is, but setting up an entry in /etc/ethers provides the IP to MAC address mapping that ARP attempts to provide dynamically. The correct way is to use router IP (10.234.37.1) between 10.234.37.0 and 10.227.148.0 instead of interface IP (10.234.37.80) for static route. Assuming there's a router at 10.234.37.1 which knows how to get to 10.227.148.52, yes. Regards, -- -Chuck ___ 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-sending selected e-mail messages
I need a way to automatically re-sent stored e-mail messages according to some criteria and like to ask for advice or suggestions for an already existing solution before I start reinventing the wheel. :-) The messages in question are stored in MH format. This is a tree where a mailbox equals a directory, and the individual files in that directory equal the messages. They are numbered 1, 2, 3, 4, ..., and so on. Each message is in Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable or Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit or maybe even Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit text format. Some of them might contain an attachment, which is included in the file with something like --Multipart=... Content-Type: ...; name=... Content-Disposition: attachment; filename=... Content-Transfer-Encoding: base64 --Multipart=...--- Some messages are fully multipart. So when iterating on ~/Mail/sent/1,2,3,4,5,... I get all the messages. Each third line, To:, is the criteria to look at. If it matches a given recipient, the mail should be sent again. This can easily be done by the system's mailer which is properly configured (and uses ISP's MX), so | mail -s maybe new subject is possible. The message should already be properly pre-composed. What is the easiest way to do this without reinventing the wheel, or should I? :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ 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: Re-sending selected e-mail messages
On Wed, Feb 13, 2013 at 3:49 PM, Polytropon free...@edvax.de wrote: I need a way to automatically re-sent stored e-mail messages according to some criteria and like to ask for advice or suggestions for an already existing solution before I start reinventing the wheel. :-) The messages in question are stored in MH format. This is a tree where a mailbox equals a directory, and the individual files in that directory equal the messages. They are numbered 1, 2, 3, 4, ..., and so on. Each message is in Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable or Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit or maybe even Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit text format. Some of them might contain an attachment, which is included in the file with something like --Multipart=... Content-Type: ...; name=... Content-Disposition: attachment; filename=... Content-Transfer-Encoding: base64 --Multipart=...--- Some messages are fully multipart. So when iterating on ~/Mail/sent/1,2,3,4,5,... I get all the messages. Each third line, To:, is the criteria to look at. If it matches a given recipient, the mail should be sent again. This can easily be done by the system's mailer which is properly configured (and uses ISP's MX), so | mail -s maybe new subject is possible. The message should already be properly pre-composed. What is the easiest way to do this without reinventing the wheel, or should I? :-) Perhaps mini_sendmail? Seems fairly capable, and scriptable. Kurt ___ 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: Fun Scripting Problem
On Wed, 13 Feb 2013 12:53:32 -0600, Tim Daneliuk tun...@tundraware.com said: T The only way to determine the date of the file is by looking at its stat T info. There is nothing the file name or content that could be used to T infer this. Being a pedantic twit, I interpreted stat info to mean info you can get from something that calls stat(). The script below runs on BSD, Linux, or Solaris if you have GNU find installed. Season to taste. -- Karl Vogel I don't speak for the USAF or my company Mom was so overprotective, she only let us play Rock, Paper. --- #!/bin/ksh # usage: keepfiles DIR export PATH=/usr/local/bin:/bin:/usr/bin tag=${0##*/} here=$(pwd) tmp=$here/keep$$ # Sanity check. die () { echo $tag: FATAL: $@ 2; exit 1; } # Don't repeat yourself. Use undocumented option %Ts to # avoid dealing with fractional seconds. listdir () { find . -type f -printf %TY%Tm%Td %Ts|%p\n; } case $# in 0) die need a directory ;; *) work=$1 ;; esac # List files by date generated. mkdir $tmp|| die $tmp: mkdir failed test -d $work || die $work: not a directory cd $work || die cd $work failed months=$(listdir | cut -c1-6 | sort -u) for mon in $months do listdir | # Get the files to check, grep ^$mon | # ... look for each month, sort -n | # ... sort by modtime, cut -d'|' -f2 | # ... get the path, tail -1 | # ... last one's oldest, sed -e 's!^\(.*\)!mv \1 '$tmp'!' | # ... write a mv command, sh # ... and run it. done # Clean up. cd $here echo Keep the stuff in $tmp exit 0 ___ 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: Why ue0 do ARP on non local address when using static route?
man page says that ethernet-address (MAC) + fully-qualified-host-name (FQHN). The issue is that host cannot resolve the address by using FQHN, thus no ARP any more, but no traffic either. After adding FQDH in the /etc/hosts file then, ARP request uses FQHN instead of IP (10.237.148.52). The question is why ARP occurs? The subnet (10.227.148.0) is not matching with the local network/netmask (10.234.37.0/24) unless somewhere in the system is using default 255.0.0.0 netmask for 10.0 A class network by mistake. From: Chuck Swiger cswi...@mac.com To: Jin Guojun jguo...@sbcglobal.net Cc: questions freebsd questi...@freebsd.org Sent: Wed, February 13, 2013 2:33:57 PM Subject: Re: Why ue0 do ARP on non local address when using static route? On Feb 13, 2013, at 2:17 PM, Jin Guojun wrote: /etc/ethers does not help because there is no way resolve the IP by QFHN in ethers. I'm not sure what QFHN is, but setting up an entry in /etc/ethers provides the IP to MAC address mapping that ARP attempts to provide dynamically. The correct way is to use router IP (10.234.37.1) between 10.234.37.0 and 10.227.148.0 instead of interface IP (10.234.37.80) for static route. Assuming there's a router at 10.234.37.1 which knows how to get to 10.227.148.52, yes. Regards, -- -Chuck ___ 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: Why ue0 do ARP on non local address when using static route?
Jin Guojun jguo...@sbcglobal.net writes: man page says that ethernet-address (MAC) + fully-qualified-host-name (FQHN). The issue is that host cannot resolve the address by using FQHN, thus no ARP any more, but no traffic either. After adding FQDH in the /etc/hosts file then, ARP request uses FQHN instead of IP (10.237.148.52). The question is why ARP occurs? The subnet (10.227.148.0) is not matching with the local network/netmask (10.234.37.0/24) unless somewhere in the system is using default 255.0.0.0 netmask for 10.0 A class network by mistake. Your first message showed an overriding route for the gateway address. Are you sure that the ARP is happening on the interface for the gateway's network? According to the routing table you posted, it should be hitting the loopback interface, but not leaving the box. ___ 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: Re-sending selected e-mail messages
Kurt Buff kurt.b...@gmail.com writes: On Wed, Feb 13, 2013 at 3:49 PM, Polytropon free...@edvax.de wrote: I need a way to automatically re-sent stored e-mail messages according to some criteria and like to ask for advice or suggestions for an already existing solution before I start reinventing the wheel. :-) [...] Perhaps mini_sendmail? Seems fairly capable, and scriptable. Or maybe procmail's tools (I'm thinking in particular of procmail, although there are some other bits and bobs that might relate also) would serve the particular selection criteria? ___ 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: Sendmail relaying for Intranet?
On Wed, Feb 13, 2013 at 12:47 AM, Zyumbilev, Peter pe...@aboutsupport.com wrote: On 13/02/2013 09:50, Bernt Hansson wrote: dnl define(`SMART_HOST', `your.isp.mail.server') on your intranet machine and put in your inet machine name. Switching to postfix and editing mynetworks in main.cf might be simplest solution. Peter ___ That looks like would only take care of outbound mail, but what about incoming mail? Thanks, Chris Maness ___ 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
Windowmaker build error, freebsd 9.1 inotify_init
Hello All, I am seeing this exact windowmaker build error, http://www.freebsd.org/cgi/query-pr.cgi?pr=174105cat= , on my freshly installed system appear when I try to build Windowmaker on my 9.1-RELEASE Freebsd and64 system running a generic kernel. How exactly do I properly format the fix stated in the closed 174105 bug report to the Windowmaker Makefile? Fix Adding -linotify to LD_FLAGS in the Makefile fixes the problem. Thanks in advance, Sean ___ 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: Windowmaker build error, freebsd 9.1 inotify_init
On Wed, 13 Feb 2013 21:17:10 -0500, sean wrote: How exactly do I properly format the fix stated in the closed 174105 bug report to the Windowmaker Makefile? Fix Adding -linotify to LD_FLAGS in the Makefile fixes the problem. Just add the text -linotify to the LD_FLAGS variable defined in the Makefile. It's /usr/ports/x11-wm/windowmaker/Makefile in line 40. However, the name of the variable is LDFLAGS (no underscore). I have v 1.171 of this file here, port version is 0.95.2 rev. 4 -- just for reference. Original line: LDFLAGS+= -L${LOCALBASE}/lib To be changed into: LDFLAGS+= -L${LOCALBASE}/lib -linotify Then try to build WindowMaker again. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ 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: Re-sending selected e-mail messages
On Feb 13, 2013 3:49 PM, Polytropon free...@edvax.de wrote: I need a way to automatically re-sent stored e-mail messages according to some criteria and like to ask for advice or suggestions for an already existing solution before I start reinventing the wheel. :-) The messages in question are stored in MH format. This is a tree where a mailbox equals a directory, and the individual files in that directory equal the messages. They are numbered 1, 2, 3, 4, ..., and so on. Each message is in Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable or Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit or maybe even Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit text format. Some of them might contain an attachment, which is included in the file with something like --Multipart=... Content-Type: ...; name=... Content-Disposition: attachment; filename=... Content-Transfer-Encoding: base64 --Multipart=...--- Some messages are fully multipart. So when iterating on ~/Mail/sent/1,2,3,4,5,... I get all the messages. Each third line, To:, is the criteria to look at. If it matches a given recipient, the mail should be sent again. This can easily be done by the system's mailer which is properly configured (and uses ISP's MX), so | mail -s maybe new subject is possible. The message should already be properly pre-composed. What is the easiest way to do this without reinventing the wheel, or should I? :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ 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 I'm working on an email related project, you might hack it to work for you. https://github.com/waitman/elmboxo check out pmess.c it can do a single message. (the easy way to feed pmess a single message is actually to feed the single message to elmboxo as it is coded) anyway its built to stuff them in a mongodb db, but I.m working on a free nosql solution that works for my project. you can just chuck all those bits. an idea. Waitman Gobble San Jose California ___ 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: Windowmaker build error, freebsd 9.1 inotify_init
On Feb 13, 2013, at 9:25 PM, Polytropon free...@edvax.de wrote: On Wed, 13 Feb 2013 21:17:10 -0500, sean wrote: How exactly do I properly format the fix stated in the closed 174105 bug report to the Windowmaker Makefile? Fix Adding -linotify to LD_FLAGS in the Makefile fixes the problem. Just add the text -linotify to the LD_FLAGS variable defined in the Makefile. It's /usr/ports/x11-wm/windowmaker/Makefile in line 40. However, the name of the variable is LDFLAGS (no underscore). I have v 1.171 of this file here, port version is 0.95.2 rev. 4 -- just for reference. Original line: LDFLAGS+= -L${LOCALBASE}/lib To be changed into: LDFLAGS+= -L${LOCALBASE}/lib -linotify Then try to build WindowMaker again. -- That did the trick, thanks. I wonder why the bug was closed as unable to be reproduced. ___ 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
installing port devel/py-qt4-dbussupport - cannot open Makefile
I'm trying to install devel/py-qt4-dbussupport on freebsd 8.3. When I type make it looks like configure is run, but then I get an error cannot open Makefile. I'm not sure what steps to take next. google only shows the following query, which is unanswered. http://forums.freebsd.org/showthread.php?t=37696 (but I note that this is on Freebsd 9) Creating pyuic4 wrapper... Creating pyuic4 Makefile... pylupdate4 and pyrcc4 will not be built because the Qt XML module is missing. Creating pyqtconfig.py... === Building for py27-qt4-dbussupport-4.9.6 make: cannot open Makefile. *** Error code 1 Stop in /usr/ports/devel/py-qt4-dbussupport. shairia# uname -a FreeBSD shairia.millerfarm.com 8.3-RELEASE-p3 FreeBSD 8.3-RELEASE-p3 #0: Tue Jun 12 00:39:29 UTC 2012 root@amd64- builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 My steps to get into this state: portsnap fetch update (about a week ago - a couple days after kde 4.9.5 went live) follow the steps in Updating - 20130203 for updating KDE. At some point in this process I lost system power, but most of the update was done. I attempted to do the update boost (2013013) instructions, but had problems because of mixed python 2.6 and 2.7, so I did a pkg_delete on py26*. (This was probably wrong). Looking farther I found the python entry from back in 20110304, but I had to errors until I updated perl (20130204), and tcl/tk (20130206). I then completed the python update. My attempts to do any more updates (either complete boost, or just upgrade everything with portmaster -a) all fail on the above port. ___ 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: Re-sending selected e-mail messages
Date: Thu, 14 Feb 2013 00:49:13 +0100 From: Polytropon free...@edvax.de To: FreeBSD Questions freebsd-questions@freebsd.org Subject: Re-sending selected e-mail messages I need a way to automatically re-sent stored e-mail messages according to some criteria and like to ask for advice or suggestions for an already existing solution before I start reinventing the wheel. :-) The messages in question are stored in MH format. What is the easiest way to do this without reinventing the wheel, or should I? :-) procmail is your friend. cat ~/sent* |procmail -f resendrc where resendrc is: emailaddr=f...@bar.baz :0 *^To: *${emailaddr} *^Subject:\/.*$ | formail -I Subject: {resend} ${MATCH} | $SENDMAIL -oi -t Delete the 'formail' if you want the Subject: unmolested. ___ 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: Fun Scripting Problem
On 02/13/2013 03:13 PM, Robert Bonomi wrote: Date: Wed, 13 Feb 2013 12:27:31 -0600 From: Tim Daneliuk tun...@tundraware.com Subject: Fun Scripting Problem I know how to do this in Python, but I really want to do it in straight Bourne shell. I have some ideas, but I thought I'd give you folks a crack at this Big Fun: a) You have a directory of files - say they're logs - generated at nondeterministic intervals. You may get more than one a day, more than one a month, none, or hundreds. b) To conserve space, you want to keep the last file generated in any given month (the archive goes back for an unspecified number of years), and delete all the files generated prior to that last file in that same month. c) Bonus points if the problem is solved generally for either files or directories generated as described above. These are not actually logs, and no, I don't think logrotate can do this ... or can it? here's a one-liner: rm ` \ stat -f %SB %B %N * \ | sort -k5nr \ | cut -c1-7,17-20,32- \ | awk 'BEGIN {a=;b=0;c=0} $1==a $2==b $3=c {print $4;}{a=$1;b=$2;c=$3}' \ ` This selects on creation date. change the B (both of them) in the stat call to use a different timestamp Thanks to all that took the time. Interesting responses. It will be fun to cook up my own version. -- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ 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: Sendmail relaying for Intranet?
2013-02-14 03:07, Chris Maness skrev: On Wed, Feb 13, 2013 at 12:47 AM, Zyumbilev, Peter pe...@aboutsupport.com wrote: On 13/02/2013 09:50, Bernt Hansson wrote: dnl define(`SMART_HOST', `your.isp.mail.server') on your intranet machine and put in your inet machine name. That looks like would only take care of outbound mail, but what about incoming mail? You mean incoming to the relay or your other machine? ___ 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