euglug.org

[작성자:] admin

  • [Eug-lug] Schwag!



    Bob MillerMon Dec 12 08:30:43 PST 2005

    Some schwag has arrived.
    
    I have Ubuntu CDs, compliments of the Ubuntu project.  Release 5.10
    ("Breezy Badger").  40 copies for PC and 15 for minority
    architectures.
    
    Marsee at O'Reilly sent us multiple copies of three titles.
    
    	Linux Desktop Pocket Guide
    	Knoppix Pocket Reference
    	Linux Desktop Hacks
    
    I'll bring it all to this Thursday's clinic.
    
    -- 
    Bob Miller                              K<bob>
                                            kbob at jogger-egg.com
    
  • [Eug-lug] Comacast internet and linux?



    T. Joseph CARTERMon Dec 12 06:07:27 PST 2005

    On Mon, Dec 12, 2005 at 10:04:37AM +0000, Jeff Newton wrote:
    > Hey guys, I know this has been discussed before, but does anyone one know 
    > if Comcast internet services works well with linux or not?
    
    What would make it not?
    
    (It works fine so far as I know.)
    
    -- 
    "We are what we repeatedly do.  Excellence, therefore, is not an act,
    but a habit."
    	-- Aristotle
    
  • [Eug-lug] Comacast internet and linux?



    Jeff NewtonMon Dec 12 02:04:37 PST 2005

    Hey guys, I know this has been discussed before, but does anyone one know if 
    Comcast internet services works well with linux or not?
    
    Thanks -
    
    Jeff
    
  • [Eug-lug] More advanced procmail voodoo



    T. Joseph CARTERSat Dec 10 19:54:42 PST 2005

    On Sat, Dec 10, 2005 at 06:30:34PM -0800, Patrick R. Wade wrote:
    > >Now, I can trivially identify the AOL client through its msgid, or through
    > >its X-Mailer being a retarded string like "8.0 for Windows", but I have no
    > >idea how to do the two-line match to determine that one of the parts is a
    > >mislabelled Q-P part with windows-1252 charset.  I've managed to determine
    > >that AOL's software sends a proper charset for anything BUT windows-1252,
    > >which makes this just really annoying.
    > >
    > >So the question is, how do I match on the condition of that two-line
    > >breakage and, having done so, how do I fix the broken charset before
    > >writing the message to the destination folder?
    > 
    > I have a feeling this is going to involve an egrep pattern that 
    > incorporates a newline, and then use of formail to munge the 
    > Content-Type line, but i'm groping.
    
    Yeah, I don't think formail is smart enough.  I've seen people do stuff
    with munpack and other people do stuff with perl scripts, but I think I am
    running smack into the limitations of procmail/formail here.  It is then
    rather unfortunate that all of the things that lack procmail's limitations
    also lack its "ease" (relatively) of configuration.
    
    The last person to call procmail "puny" used some massive bit of perl
    grossness which required writing a new function every time he wanted to
    add a new mailing list.  On the other hand, it would deal with the
    crosspost issue that my little procmail recipe can't and make sure that
    the message is delivered to all of the lists he's on, but won't cause a
    new folder to be created automatically for ones he's not.
    
    Middle ground should exist.  ;)
    
    -- 
    "We are what we repeatedly do.  Excellence, therefore, is not an act,
    but a habit."
    	-- Aristotle
    
  • [Eug-lug] More advanced procmail voodoo



    Patrick R. WadeSat Dec 10 18:30:34 PST 2005

    T. Joseph CARTER wrote:
    
    > Now, I can trivially identify the AOL client through its msgid, or through
    > its X-Mailer being a retarded string like "8.0 for Windows", but I have no
    > idea how to do the two-line match to determine that one of the parts is a
    > mislabelled Q-P part with windows-1252 charset.  I've managed to determine
    > that AOL's software sends a proper charset for anything BUT windows-1252,
    > which makes this just really annoying.
    > 
    > So the question is, how do I match on the condition of that two-line
    > breakage and, having done so, how do I fix the broken charset before
    > writing the message to the destination folder?
    > 
    
    I have a feeling this is going to involve an egrep pattern that 
    incorporates a newline, and then use of formail to munge the 
    Content-Type line, but i'm groping.
    
    -- 
    On two occasions I have been asked [by members of Parliament!], 'Pray,
    Mr. Babbage, if you put into the machine wrong figures, will the right
    answers come out?' I am not able rightly to apprehend the kind of
    confusion of ideas that could provoke such a question.
    	-- Charles Babbage
    
    
  • [Eug-lug] More advanced procmail voodoo



    Patrick R. WadeSat Dec 10 18:25:27 PST 2005

    Rob Hudson wrote:
    > I think I have a similar question for procmail while we're at it...  I'm 
    > using dspam for spam filtering.  It gives headers of the form:
    > 
    >     X-DSPAM-Result: Spam
    >     X-DSPAM-Confidence: 0.5065
    >     X-DSPAM-Probability: 1.0000
    >     X-DSPAM-Signature: some kind of hash
    > 
    > I'd like to filter those with result=Spam and with a confidence above a 
    > certain threshold to /dev/null since I'm pretty comfortable I never want 
    > to see those.  The ones with lower confidence I may want to save in case 
    >  of a false positive for spam.
    > 
    > I've filtered on a single header before but never two.  How do you do that?
    > 
    
    Procmail conditions are ANDed ;
    
    :0
    * ^X-DSPAM-Result: Spam
    * ^X-DSPAM-Confidence: 0.5065
    * ^X-DSPAM-Probability: 1.0000
    * ^X-DSPAM-Signature: some kind of hash
    /dev/null
    
    will match exactly the message with the sample headers you showed. 
    Matching
    * ^X-DSPAM-Confidence: (some value greater than N)
    Is a little more complicated, i'm not sure how to approach it except to 
    say that the parts in condition lines are equivalent to egrep regular 
    expressions.  If you're better at regex voodoo than i am, you can 
    probably come up with it.
    
    
    
    -- 
    On two occasions I have been asked [by members of Parliament!], 'Pray,
    Mr. Babbage, if you put into the machine wrong figures, will the right
    answers come out?' I am not able rightly to apprehend the kind of
    confusion of ideas that could provoke such a question.
    	-- Charles Babbage
    
    
  • [Eug-lug] More advanced procmail voodoo



    T. Joseph CARTERSat Dec 10 16:19:39 PST 2005

    On Sat, Dec 10, 2005 at 01:21:21PM -0800, Rob Hudson wrote:
    > I think I have a similar question for procmail while we're at it...  I'm 
    > using dspam for spam filtering.  It gives headers of the form:
    > 
    > 	X-DSPAM-Result: Spam
    > 	X-DSPAM-Confidence: 0.5065
    > 	X-DSPAM-Probability: 1.0000
    > 	X-DSPAM-Signature: some kind of hash
    > 
    > I'd like to filter those with result=Spam and with a confidence above a 
    > certain threshold to /dev/null since I'm pretty comfortable I never want 
    > to see those.  The ones with lower confidence I may want to save in case 
    >  of a false positive for spam.
    > 
    > I've filtered on a single header before but never two.  How do you do that?
    
    That depends.  Do you want an OR or an AND?
    
    For an AND, you just include a second expression line.  You can even match
    on the same header twice:
    
    :0
    * ^List-Id:.*<[-A-Za-z0-9]*\.nfbnet\.org>
    * ^List-Id:.*<\/[-A-Za-z0-9]*
    NFB_${MATCH}/
    
    BTW, I invented that little trick back when I was a Debianite because of
    Debian's 37,000 different mailing lists.  It's safe against shell escapes,
    writes to maildir in my case (add the locking : if you change that!), and
    this version of the rule works on all Mailman/Listar servers only editing
    for the identity of the server in question.  While on Debian, I used
    <debian-[-A-Za-z0-9]*.lists.debian.org> for the first and used Debian_ as
    my prefix.  That way I didn't wind up with Debian_debian-devel, etc.
    
    
    Unfortunately, these NFB lists have names like nfb-talk, nabs-l, blndtalk,
    etc, mostly 8 characters or less from the daze of DOS because David can't
    be bothered to rename the list, create the aliases, etc.  ;)
    
    -- 
    "We are what we repeatedly do.  Excellence, therefore, is not an act,
    but a habit."
    	-- Aristotle
    
  • [Eug-lug] More advanced procmail voodoo



    T. Joseph CARTERSat Dec 10 16:02:22 PST 2005

    On Sat, Dec 10, 2005 at 11:54:31AM -0800, spugee at nortopia.net wrote:
    > I take it bouncing every one of these to the sender with a brief 
    > description and instructions on how to call AOL technical support is not 
    > an option ? <EG>
    
    No.  What I have been doing is killing the broken attachments myself in
    mutt.  Now, that's an option if I can verify that there are indeed two
    attachments and that one of them is borked and the other isn't.  One
    sender on the lists in question is using ... something ... that only
    includes a single broken attachment.  I don't remember what it was, but it
    wasn't AOL, and that person doesn't say anything interesting often enough
    for me to care.  ;)
    
    -- 
    "We are what we repeatedly do.  Excellence, therefore, is not an act,
    but a habit."
    	-- Aristotle
    
  • [Eug-lug] More advanced procmail voodoo



    Rob HudsonSat Dec 10 13:21:21 PST 2005

    I think I have a similar question for procmail while we're at it...  I'm 
    using dspam for spam filtering.  It gives headers of the form:
    
    	X-DSPAM-Result: Spam
    	X-DSPAM-Confidence: 0.5065
    	X-DSPAM-Probability: 1.0000
    	X-DSPAM-Signature: some kind of hash
    
    I'd like to filter those with result=Spam and with a confidence above a 
    certain threshold to /dev/null since I'm pretty comfortable I never want 
    to see those.  The ones with lower confidence I may want to save in case 
      of a false positive for spam.
    
    I've filtered on a single header before but never two.  How do you do that?
    
    Thanks,
    Rob
    
    T. Joseph CARTER wrote:
    > If you never thought you'd see the day Joseph ASKS how to use procmail
    > rather than ANSWERING, today is the day.  ;)  I have no clue how to do
    > this easily..
    > 
    
  • [Eug-lug] More advanced procmail voodoo



    spugee at nortopia.netSat Dec 10 11:54:31 PST 2005

    I take it bouncing every one of these to the sender with a brief 
    description and instructions on how to call AOL technical support is not 
    an option ? <EG>
    
    T. Joseph CARTER wrote:
    
    >If you never thought you'd see the day Joseph ASKS how to use procmail
    >rather than ANSWERING, today is the day.  ;)  I have no clue how to do
    >this easily..
    >
    >The problem:
    >
    >If you are an AOL user (WHY are you an AOL user!?) and you set your
    >wonderful point-and-drool email client to not send out HTML mail, it still
    >sends multipart/alternative email with the first attachment being:
    >
    >	Content-Type: text/plain; charset="US-ASCII"
    >	Content-Transfer-Encoding: 7bit
    >
    >Now, this attachment is readable.  However, mutt chooses the latter one,
    >which says:
    >
    >	Content-type: text/plain; charset="US-ASCII"
    >	Content-Transfer-Encoding: quoted-printable
    >
    >No problem, all modern mail clients support that.  Except AOL lies, of
    >course.  It's text/plain, and it's Q-P, but it's absolutely not us-ascii
    >by any stretch of the imagination.  It's windows-1251, which means my
    >messages are filled with ?????? and whatnot anywhere there's an 8-bit
    >character.
    >
    >Now, I can trivially identify the AOL client through its msgid, or through
    >its X-Mailer being a retarded string like "8.0 for Windows", but I have no
    >idea how to do the two-line match to determine that one of the parts is a
    >mislabelled Q-P part with windows-1252 charset.  I've managed to determine
    >that AOL's software sends a proper charset for anything BUT windows-1252,
    >which makes this just really annoying.
    >
    >So the question is, how do I match on the condition of that two-line
    >breakage and, having done so, how do I fix the broken charset before
    >writing the message to the destination folder?
    >
    >  
    >