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.
congratulations! BILL_GATES has just bought one of your items!
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...