FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 07-08-2012, 01:45 AM
suvayu ali
 
Default Matching message headers in mutt hooks

Hi mutt using Fedora users,

I am trying to set the from name based on the "Delivered-To:" message
header. In my case, the header has values like this:

Delivered-To: mygmailid+keyword@gmail.com

This is what I have tried:

reply-hook "~h 'Delivered-To: mygmailid+keyword@gmail.com'"
"set from = 'emailid@otherdomain.com'"

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

Cheers,

--
Suvayu

Open source is the future. It sets us free.
--
users mailing list
users@lists.fedoraproject.org
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
 
Old 07-08-2012, 08:52 AM
Heinz Diehl
 
Default Matching message headers in mutt hooks

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@otherdomain.com'"

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

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

> 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@lists.fedoraproject.org
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
 
Old 07-08-2012, 10:07 AM
suvayu ali
 
Default Matching message headers in mutt hooks

On Sun, Jul 8, 2012 at 10:52 AM, Heinz Diehl <htd@fritha.org> wrote:
> reply-hook '~h "Delivered-To: +mygmailid+keyword@gmail.com"'my_hdr From: emailid@otherdomain.com'

This works! However I used `.' instead of `.', I believe the former
should match a literal `.' just like `+'?

Thanks a lot!

--
Suvayu

Open source is the future. It sets us free.
--
users mailing list
users@lists.fedoraproject.org
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
 
Old 07-08-2012, 10:59 AM
Heinz Diehl
 
Default Matching message headers in mutt hooks

On 08.07.2012, suvayu ali wrote:

> However I used `.' instead of `.', I believe the former
> should match a literal `.' just like `+'?

Yes, of course. I simply overlooked the second slash here, sorry!
If the expression only should match on a single point, you have to
double-escape the "." here, otherwise it will match on any single
character.

--
users mailing list
users@lists.fedoraproject.org
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
 
Old 07-08-2012, 12:47 PM
suvayu ali
 
Default Matching message headers in mutt hooks

On Sun, Jul 8, 2012 at 12:59 PM, Heinz Diehl <htd@fritha.org> wrote:
> On 08.07.2012, suvayu ali wrote:
>
>> However I used `.' instead of `.', I believe the former
>> should match a literal `.' just like `+'?
>
> Yes, of course. I simply overlooked the second slash here, sorry!
> If the expression only should match on a single point, you have to
> double-escape the "." here, otherwise it will match on any single
> character.
>

Thanks a lot for the confirmation! I am liking mutt a lot. I think
I'll fiddle some more.

--
Suvayu

Open source is the future. It sets us free.
--
users mailing list
users@lists.fedoraproject.org
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
 
Old 07-08-2012, 03:02 PM
Heinz Diehl
 
Default Matching message headers in mutt hooks

On 08.07.2012, suvayu ali wrote:

> Thanks a lot for the confirmation! I am liking mutt a lot. I think
> I'll fiddle some more.

You're welcome! Mutt has served me as a mail client over a long time,
and though I've looked at other clients as well, none could really
convince me. When I need access to my incoming email when I'm
travelling, I use an IMAP-client, though (tried wanderlust some time,
but decided to go with the much more stable Mew - I'm using emacs a lot).

--
users mailing list
users@lists.fedoraproject.org
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
 
Old 07-08-2012, 08:27 PM
"Eddie G.O'Connor Jr-I"
 
Default Matching message headers in mutt hooks

On 07/08/2012 08:47 AM, suvayu ali wrote:

On Sun, Jul 8, 2012 at 12:59 PM, Heinz Diehl <htd@fritha.org> wrote:

On 08.07.2012, suvayu ali wrote:


However I used `.' instead of `.', I believe the former
should match a literal `.' just like `+'?

Yes, of course. I simply overlooked the second slash here, sorry!
If the expression only should match on a single point, you have to
double-escape the "." here, otherwise it will match on any single
character.


Thanks a lot for the confirmation! I am liking mutt a lot. I think
I'll fiddle some more.



If I may?...exactly what IS "mutt"?....is it something I should concern
myself with?



EGO II
--
users mailing list
users@lists.fedoraproject.org
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
 
Old 07-08-2012, 08:37 PM
Edward M
 
Default Matching message headers in mutt hooks

On 07/08/2012 01:27 PM, Eddie G.O'Connor Jr-I wrote:
If I may?...exactly what IS "mutt"?....is it something I should
concern myself with?


mutt is a text based email client.

--
users mailing list
users@lists.fedoraproject.org
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
 
Old 07-08-2012, 10:17 PM
Heinz Diehl
 
Default Matching message headers in mutt hooks

On 09.07.2012, Eddie G.O'Connor Jr-I wrote:

> If I may?...exactly what IS "mutt"?....is it something I should concern
> myself with?

Mutt is a console/textbased MUA, see http://www.mutt.org .
It is highly customizeable/configurable, but for the most common cases
you want to run a local mailserver and POP3-client (e.g. fetchmail)
to be able to use it fully.

--
users mailing list
users@lists.fedoraproject.org
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
 
Old 07-08-2012, 10:27 PM
"Eddie G.O'Connor Jr-I"
 
Default Matching message headers in mutt hooks

On 07/08/2012 04:37 PM, Edward M wrote:

On 07/08/2012 01:27 PM, Eddie G.O'Connor Jr-I wrote:
If I may?...exactly what IS "mutt"?....is it something I should
concern myself with?


mutt is a text based email client.

Hmmm....I guess it's because I've never used something like it, but I
imagine it's pretty hard to move around in if it's all text based?....no
icons to click on for deleting messages? no drag-and-drop
features?.....I think only a DIE hard techie would opt for such a thing!
I cannot see the reason for or a situation where something like that
would come in handy!....curious!



EGO II

--
users mailing list
users@lists.fedoraproject.org
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
 

Thread Tools




All times are GMT. The time now is 01:57 PM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org