Re: Matching message headers in mutt hooks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08.07.2012, suvayu ali wrote: 

> This is what I have tried:
> 
>   reply-hook "~h 'Delivered-To: mygmailid+keyword@gmail\.com'" \
>     	     "set from = 'emailid@xxxxxxxxxxxxxxx'"

It's the other way 'round (look at your ' and "):

reply-hook '~h "Delivered-To: +mygmailid\\+keyword@gmail\.com"''my_hdr From: emailid@xxxxxxxxxxxxxxx'

> I have also tried the message-hook with no success. Does anyone have any
> idea what I'm doing wrong?

Your problem is the pattern-matching, which is wrong at several places. You
won't get any errormessage from mutt parsing your .muttrc, because
what you do is valid , but it doesn't do what you expect it to do.

Look at my string, which is tested with the latest mutt-1.5.21 from
the developers hg-repository (since I've rewritten small parts of the
routines in sendlib to fit my needs). You'll see what you did wrong and then
you can look up the items here:

http://www.mutt.org/doc/manual/manual-4.html

(I've been using mutt since it has been forked from ELM, and have
still some difficulties doing correct pattern-matching...)

Hope this helps!

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux