Mihamina Rakotomandimby

To content | To menu | To search

Tuesday 3 January 2012

headers check for mailing list and autoreply

Autoresponder and mailing lists

I am subscribed to much mailing lists, and espacially on holidays, I notice many people set their autoresponders to reply to the mailing list.
It's annoying and whenever possible should be avoided, by checking several headers befor autoreplying.

Headers to check and patterns

Mailing lists have pretty verbose footprints. Unfortunately, There is no standard I know about that, but there is a simple enumeration of what headers and patterns a mailing list has.

Return-Path: and Sender:

Return-Path: and Sender: match owner\-\.+@, ^\.+\-request@, and ^\.+\--bounces@

List-ID: or X-Mailing-List:

If there is a List-ID: or X-Mailing-List: header, it's probably from a mailing list!

To: or Cc:

If you receive an email, but you're not in the To: or Cc:, then you probably should avoid autoreplying.

"Precedence: Bulk" or "Precedence: List"

A little documentation about the "Precedence:" header where we see that "bulk" value mean the message is a "one-to-many" (typical for mailing lists)

Conclusion

We then have a set of criteria to check, have a good time... :-)

Tuesday 30 August 2011

xubuntu early lightdm bug

My system

I have a Natty system where I wanted to early install GTK3 ported packages such as Evince, LightDM,...

To do so, I just temporarily enabled Oneiric repositories (without no more pinning configuration, I love my hairs) then installed

Ecountered problems

I got the lightDM login screen without problem. For some obscur reasons, I had to disable splashscreen at boot. That doesn't disturb me, I love seeing lines on my screen, it's an indication that things are going on.

But, after entering my credentials and choosing "Xubuntu Session" or "Xfce Session", I just got a framebuffer screen with a mouse pointer. Not more. I can escape from that state with "Ctrl-Backspace".

I joined the bug huntings:

Solution for me

Completely disappointed, I randomly tried to enter a "guest" session on the computer and the Xfce environment launched.

I tried then to move out all my $HOME files and directories and gave a try: It worked!

So, something in my ".config/" or any dotfile prevented Xfce to launch.

If you encouter that bug, try oyrself and tell me!

Thursday 28 July 2011

Google plus Madagascar Market Enabler

Google plus Android in Madagascar

I wanted to download the Google Plus (google+) client on my Android telephone but could not, because of my country (Madagascar)

Market enabler

Fortunately, there is the Market Enabler App. On the Phone, go to the market and search for "Market Enabler". On the "Set Custom" tab, change the 6 digit number: Mine was 64604 (Telma Mobile SA) , I changed it to "France Telecom".

I'm done!

natty epiphany3 gtk2 gtk2

Natty GTK2 and GTK3

My Ubuntu Natty default shipped GTK2 and Epiphany (browser) 2.x. I wanted to switch to Epiphany 3.x but it comes along with several GTK3 stuff.

This is how I did it

Enable Oneiric reposotiry

Although it's only alpha at this moment, I enabled them in my "sources.list" I did not enable any pinning. Dont forget to apt-get update.

Install wanted softwares and dependences

After installing Epiphany, Evince and Evolution (yes...), It worked well but the aspect of GTK3 windows was different because of my current GTK2 theme was not ported to GTK3 yet. As far as I searched, Radiance and Ambiance were ported so I switched to them on my XFCE Theme manager and all went well. Radiance and Ambiance are part of the light-themes package (on Ubuntu).

GLib-GIO-ERROR **: Settings schema 'org.gtk.Settings.FileChooser' does not contain a key named 'last-folder-uri'

I encoutered that error:

  • Epiphany: When I open the preference menu (the download location?)
  • Evolution: When replying to a message (the attachment folder to open?)
After some search I found:

Friday 20 May 2011

lookup reverse ip

Reverse IP

Reverse lookup is needed for several uses. To check what is the reverse of an IP address, one can issue:

        dig -t PTR +short 99.123.204.41.in-addr.arpa.
      

Easily reverse an IP

Using "awk", reversing an IP address can be done with

        $ echo "41.204.123.99" | awk -F "." '{for (i=NF;i>=1;i--) printf $i"."; print "in-addr.arpa."}'
      
Or putting this in a simple SHELL script (i.e "flip-ip.sh"):
        #!/bin/bash
        echo $1 | awk -F "." '{for (i=NF;i>=1;i--) printf $i"."; print "in-addr.arpa."}'
      
and calling it:
        $ ./flip-ip.sh  41.204.123.99
      
Used in one line with "dig":
        $ dig -t PTR +short $(flip-ip.sh  41.204.123.99)
      

- page 1 of 7