Re: [Discuss] mbox questions

2011-11-16 Thread Tom Metro
Jerry Feldman wrote:
> ...one of the solutions is to remove all the index
> (.msf) files and compact all the mbox files. In my situation I have
> emails in local folders going back years. This should be no problem...

Be aware that although the documentation would have you believe that the
.msf files are there strictly for performance and are otherwise
disposable, they actually store some unique meta data - at least with TB
version 3.x and earlier, and for local folders. For example, if you
delete your .msf file, you will lose any tagging you had set.

Even doing something as seemingly innocuous as moving your local mail
store to a different file system (path) can throw TB off ad cause the
meta data to be lost.


John Abreau wrote:
> Now I keep all my local backups of mail folders in Maildir format
> on one of my home servers, with Dovecot sitting on top for
> easier access via IMAP.

I second that approach.

 -Tom

-- 
Tom Metro
Venture Logic, Newton, MA, USA
"Enterprise solutions through open source."
Professional Profile: http://tmetro.venturelogic.com/
___
Discuss mailing list
Discuss@blu.org
http://lists.blu.org/mailman/listinfo/discuss


Re: [Discuss] Postfix Wildcard email forwarding

2011-11-16 Thread Tom Metro
Dave Peters wrote:
> ...how to configure postfix to forward wildcard emails to anther email 
> account.
> 
> what I would like to do: 
> 
> _re...@mymail.com --> re...@mymail.com
> _nore...@mymail.com --> nore...@mymail.com
> xxx_s...@mymail.com --> s...@mymail.com

So in your example you want the "x" replaced with a wild card that
matches any one character?

This should be doable using a regexp_table[1] or pcre_table[2], with a
file containing a line like (untested):
/_re...@mymail.com/ re...@mymail.com

and then in main.cf set alias_maps or virtual_alias_maps to
regexp:/path/to/file.

1. http://www.postfix.org/regexp_table.5.html
2. http://www.postfix.org/pcre_table.5.html

 -Tom

-- 
Tom Metro
Venture Logic, Newton, MA, USA
"Enterprise solutions through open source."
Professional Profile: http://tmetro.venturelogic.com/
___
Discuss mailing list
Discuss@blu.org
http://lists.blu.org/mailman/listinfo/discuss


Re: [Discuss] Perl OO question

2011-11-16 Thread Tom Metro
Derek Martin wrote:
> I...have two implementations of a Perl module, and
> I want to compare them programmatically.

I would take the approach of running Perltidy[1] on both, followed by
diff or other text processing of your choice. (For example, once you
have methods formatted consistently, a simple grep can list all the
methods in a file.)

 dynamically generated methodsThis isn't perfect if your two modules
differ radically, as you can have , or an implementation that is spread
across multiple modules using inheritance.

1. http://perltidy.sourceforge.net/


> Is there a way to do this *in code* *in Perl*?

I see you ran across how to dive into the symbol table.


> The namespace is polluted by members of other imported modules used
> within that one, a fact which I have very little control over.

Using an OO framework like Moose avoids this, but that doesn't help you
if the code you are analyzing doesn't use it.

OO in Perl 5 is "glued on" rather than native, unlike Perl 6, and this
becomes evident when you start introspecting objects.


> I was also reminded that I (still) hate Perl.

Perl makes easy stuff convenient, and hard stuff possible. What you were
looking to do is out of the realm of what's typical.

 -Tom

-- 
Tom Metro
Venture Logic, Newton, MA, USA
"Enterprise solutions through open source."
Professional Profile: http://tmetro.venturelogic.com/
___
Discuss mailing list
Discuss@blu.org
http://lists.blu.org/mailman/listinfo/discuss


Re: [Discuss] sshd logging question

2011-11-16 Thread Jerry Feldman
On 11/16/2011 09:49 AM, Bill Horne wrote:
> On Wed, 2011-11-16 at 09:29 -0500, Jerry Feldman wrote:
>> Sorry if this is an RTFM question.
>> Every night our NY office connects in to our backup server. I have a
>> script that checks the status of the most recent backup as well as those
>> connects, but I would like to be able to track the time the NY office
>> disconnects. The NY office is using rsync to connect through and ssh
>> tunnel. A while back there was a case where they were not actually
>> transferring any data. Certainly the NY office could also check the
>> times on their end.
> The login/logout times are in the file /var/log/auth.log on my Ubuntu
> system. 
They are in /var/log/secure on my system (fedora 15). I don't have an
auth.log. Unfortunately the WD MyBook has neither and the log entries
are in messages, and do not include the disconnect.

-- 
Jerry Feldman 
Boston Linux and Unix
PGP key id:3BC1EB90 
PGP Key fingerprint: 49E2 C52A FC5A A31F 8D66  C0AF 7CEA 30FC 3BC1 EB90

___
Discuss mailing list
Discuss@blu.org
http://lists.blu.org/mailman/listinfo/discuss


Re: [Discuss] Postfix Wildcard email forwarding

2011-11-16 Thread John Abreau
I don't recall the details offhand, but one possible strategy would be
to usea catchall alias to pass the mail to a script, and then have the
script reinject the message into postfix. I recall seeing this strategy
described as one possible way to configure spamassassin for postfix.

I think the important word to include in your google search is "reinject".


On Wed, Nov 16, 2011 at 9:22 AM, Dave Peters  wrote:
> Hi all,
>
> I google and couldn't find any answer about how to configurate the postfix to 
> forward wildcard emails to anther email account.
> I cannot use catchall account because I have 3 seperate email accounts to 
> deal with different bounced email purpose. I tried the alias and didn't work.
>
>
> That's what I would like to do:
>
> _re...@mymail.com --> re...@mymail.com
> _nore...@mymail.com --> nore...@mymail.com
> xxx_s...@mymail.com --> s...@mymail.com
>
>
> Any input or suggestion is appreciated.
>
>
> Thanks,
>
> - DP
> ___
> Discuss mailing list
> Discuss@blu.org
> http://lists.blu.org/mailman/listinfo/discuss
>



-- 
John Abreau / Executive Director, Boston Linux & Unix
Email j...@blu.org / WWW http://www.abreau.net / PGP-Key-ID 0xD5C7B5D9
PGP-Key-Fingerprint 72 FB 39 4F 3C 3B D6 5B E0 C8 5A 6E F1 2C BE 99
___
Discuss mailing list
Discuss@blu.org
http://lists.blu.org/mailman/listinfo/discuss


Re: [Discuss] Boston Linux Meeting Reminder, tomorrow, Wednesday, November 16, 2011 Rolling out IPv6 on Linux

2011-11-16 Thread Eric Chadbourne
Hi,

I'm not able to make this meeting.  Will there be any slides or video
posted?

Thanks,
Eric
___
Discuss mailing list
Discuss@blu.org
http://lists.blu.org/mailman/listinfo/discuss


Re: [Discuss] sshd logging question

2011-11-16 Thread Bill Horne
On Wed, 2011-11-16 at 09:29 -0500, Jerry Feldman wrote:
> Sorry if this is an RTFM question.
> Every night our NY office connects in to our backup server. I have a
> script that checks the status of the most recent backup as well as those
> connects, but I would like to be able to track the time the NY office
> disconnects. The NY office is using rsync to connect through and ssh
> tunnel. A while back there was a case where they were not actually
> transferring any data. Certainly the NY office could also check the
> times on their end.

The login/logout times are in the file /var/log/auth.log on my Ubuntu
system. 

Bill


___
Discuss mailing list
Discuss@blu.org
http://lists.blu.org/mailman/listinfo/discuss


[Discuss] sshd logging question

2011-11-16 Thread Jerry Feldman
Sorry if this is an RTFM question.
Every night our NY office connects in to our backup server. I have a
script that checks the status of the most recent backup as well as those
connects, but I would like to be able to track the time the NY office
disconnects. The NY office is using rsync to connect through and ssh
tunnel. A while back there was a case where they were not actually
transferring any data. Certainly the NY office could also check the
times on their end.

-- 
Jerry Feldman 
Boston Linux and Unix
PGP key id:3BC1EB90 
PGP Key fingerprint: 49E2 C52A FC5A A31F 8D66  C0AF 7CEA 30FC 3BC1 EB90

___
Discuss mailing list
Discuss@blu.org
http://lists.blu.org/mailman/listinfo/discuss


[Discuss] Postfix Wildcard email forwarding

2011-11-16 Thread Dave Peters
Hi all,

I google and couldn't find any answer about how to configurate the postfix to 
forward wildcard emails to anther email account. 
I cannot use catchall account because I have 3 seperate email accounts to deal 
with different bounced email purpose. I tried the alias and didn't work.


That's what I would like to do: 

_re...@mymail.com --> re...@mymail.com
_nore...@mymail.com --> nore...@mymail.com
xxx_s...@mymail.com --> s...@mymail.com


Any input or suggestion is appreciated.


Thanks,

- DP
___
Discuss mailing list
Discuss@blu.org
http://lists.blu.org/mailman/listinfo/discuss