Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    automatic gmail labels creation ( mutt + fetchmail + procmail ?)

    i have a quite simple (to describe) aim: when a new email arrives on my gmail account, i want to be labelled (=tagged), letting an external bash script read the message and choose the right label.


    from: ebay
    to: me

    dear matteo,
    congratulations! BILL_GATES has just bought one of your items!
    mr. ebay

    i can easily write a script to calculate the right label (BILL_GATES) but how can i create it (if not already existing) and apply it to the processed message?

    it took me 2 minutes to find a guide on how to configure mutt to view my gmail account, but i can't go any further...
    mutt has a kind of patch or extension to manage labels (view, edit, apply, etc), but i can't figure out how i could make it an automatic procedure...

    fetchmail + procmail seems to be the best solution, but (before spending a night with any effort) i'd like to know if anyone can give me a suggestion... please consider that i need the messages to be labelled on gmail web interface, not just on my local inbox...

    many thanks,

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Have you tried the gmail filters? They have the capability to do that inside their system, without you needed to do anything.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts