Re: [Mutt] help on complicated per-folder or per-sender sending email hooks

2021-11-27 Thread raf
On Sat, Nov 27, 2021 at 12:36:54PM +0100, Mihai Lazarescu wrote: > On Friday, November 26, 2021 at 23:41:46 -0600, mai...@email.com wrote: > > > Basically, if the email is postponed and called from the draft, it uses my > > work account (because that is set up to be the default). Is it possibl

Re: [Mutt] help on complicated per-folder or per-sender sending email hooks

2021-11-27 Thread Mihai Lazarescu
On Friday, November 26, 2021 at 23:41:46 -0600, mai...@email.com wrote: Basically, if the email is postponed and called from the draft, it uses my work account (because that is set up to be the default). Is it possible to set things up so that mutt will look at the sending address (@email dot

Re: [Mutt] help on complicated per-folder or per-sender sending email hooks

2021-11-26 Thread maitra
On Fri Nov26'21 05:53:54PM, Mihai Lazarescu wrote: > From: Mihai Lazarescu > Date: Fri, 26 Nov 2021 17:53:54 +0100 > To: mutt-users@mutt.org > Subject: Re: [Mutt] help on complicated per-folder or per-sender sending > email hooks > > On Thursday, November 25, 2

Re: [Mutt] help on complicated per-folder or per-sender sending email hooks

2021-11-26 Thread Mihai Lazarescu
On Thursday, November 25, 2021 at 18:32:50 -0600, mai...@email.com wrote: I had a few more questions. Is it possible to have a hook based on where the email is coming to? So, if I am in this folder, then I use the above, but I am wondering if I can have a hook that says something like if the e

Re: [Mutt] help on complicated per-folder or per-sender sending email hooks

2021-11-25 Thread maitra
On Wed Nov24'21 06:21:06PM, Mihai Lazarescu wrote: > From: Mihai Lazarescu > Date: Wed, 24 Nov 2021 18:21:06 +0100 > To: mutt-users@mutt.org > Subject: Re: [Mutt] help on complicated per-folder or per-sender sending > email hooks > > On Wednesday, November 24, 2021

Re: [Mutt] help on complicated per-folder or per-sender sending email hooks

2021-11-24 Thread Mihai Lazarescu
On Wednesday, November 24, 2021 at 10:23:31 -0600, Ranjan Maitra wrote: set smtp_url="smtp://yourusern...@smtp.example.com:587/" set smtp_pass="Your1!Really2@AweSome3#Password" But what do I do about the work email that uses postfix? If you unset smtp_url mutt should connect to port 25 on loc

help on complicated per-folder or per-sender sending email hooks

2021-11-24 Thread Ranjan Maitra
the way to go about doing all this is using hooks (which I have only some basic familiarity with now), but I am a bit lost as to how to go about doing the above, and looking around Can someone please point me to some resources, or advice on how to go about doing this? I use fetchmail and p

Re: more general hooks to handle similar mailing lists

2020-10-11 Thread Claus Assmann
On Sun, Oct 11, 2020, Remco Rnders wrote: > > save-hook "~C ietf-\\([a-z0-9]+\\)@ietf.org" =%1 > I know it is not a direct answer to your question, but it might perhaps get > the > end result you want; Have you considered using procmail or a sieve filter to > automatically save mail matching you

Re: more general hooks to handle similar mailing lists

2020-10-11 Thread Remco Rijnders
On Sun, Oct 11, 2020 at 08:08:07AM +0200, Claus wrote in <20201011060807.ga46...@kiel.esmtp.org>: I'm trying to use a more generic approach for some patterns to handle mailing list, e.g., something like: save-hook "~C ietf-\\([a-z0-9]+\\)@ietf.org" =%1 instead of having one entry for each maili

Re: more general hooks to handle similar mailing lists

2020-10-11 Thread Kevin J. McCarthy
On Sun, Oct 11, 2020 at 08:08:07AM +0200, Claus Assmann wrote: I'm trying to use a more generic approach for some patterns to handle mailing list, e.g., something like: save-hook "~C ietf-\\([a-z0-9]+\\)@ietf.org" =%1 instead of having one entry for each mailing list. Is that possible with the

more general hooks to handle similar mailing lists

2020-10-10 Thread Claus Assmann
I'm trying to use a more generic approach for some patterns to handle mailing list, e.g., something like: save-hook "~C ietf-\\([a-z0-9]+\\)@ietf.org" =%1 instead of having one entry for each mailing list. Is that possible with the current mutt features? It seems that back-references in regular

Re: Need some better ideas for folder-hooks

2018-08-10 Thread David Woodfall
On Friday 10 August 2018 08:14, Dave Woodfall put forth the proposition: > My ~/Mail is a local maildir mailbox, and I have quite a few > folder-hooks, some to set different 'from' and 'sendmail' to send via > various smtp servers and addresses and some set othe

Need some better ideas for folder-hooks

2018-08-10 Thread David Woodfall
My ~/Mail is a local maildir mailbox, and I have quite a few folder-hooks, some to set different 'from' and 'sendmail' to send via various smtp servers and addresses and some set other properties: folder-hook .* source ~/.mutt/default folder-hook =Lists/* source ~/.mutt/

Converting gpg.conf groups to crypt-hooks

2018-05-24 Thread Ben McGinnes
Hello, As we all know, the question of if and how the group entries in gpg.conf can be used in Mutt or Neomutt crops up periodically and generally the answer is no, not directly. I finally got around to making a permanent solution which, as its current location indicates, will be reference

Re: Problems with hooks, 'set' and quoting/escaping values

2018-05-18 Thread David Woodfall
On Friday 18 May 2018 18:22, Dave Woodfall put forth the proposition: When using hooks I find that I sometimes have problems with using 'set' and some variables that need quoting or escaping. eg: the following work: folder-hook =Sent 'set index_format="%3C %[!%d/%m/%y]

Problems with hooks, 'set' and quoting/escaping values

2018-05-18 Thread David Woodfall
When using hooks I find that I sometimes have problems with using 'set' and some variables that need quoting or escaping. eg: the following work: folder-hook =Sent 'set index_format="%3C %[!%d/%m/%y] %-15.15F %s"' folder-hook =Folk 'set editor="vim +\&#

Re: weird behaviour unaliasing/sourcing aliases in folder-hooks

2016-10-06 Thread nfb
manual.html#set-myvar). > > Alternatively, you can just spell out the file in both the set and the > source. (literally, or perhaps by using a user-defined variable to > reduce duplication). > > Details: > > Since $alias_file defaults to the value of the muttrc, essent

Re: weird behaviour unaliasing/sourcing aliases in folder-hooks

2016-10-05 Thread Kevin J. McCarthy
to the value of the muttrc, essentially each of your hooks initially will set $alias_file and re-read the muttrc. They are equivalent to: folder-hook "foo_folder" "unalias *; set alias_file = +foo_alias; source muttrc" folder-hook "bar_folder" "unalias *

Re: conditional hooks

2015-06-12 Thread Will Yardley
set reverse_name mutt will reply to the message using the address in $alternates that the message was addressed to. For creating new messages (e.g., to a mailing list), you would need to use hooks, e.g., send-hook . 'unmy_hdr From:' send-hook '~C ^mutt-users@mutt\.org$' 'my_hdr From: Your Name ' w

conditional hooks

2015-06-12 Thread Jon LaBadie
I don't thing conditional hooks is the right term. I've created about 300 aliases that my mta will accept and deliver to my mail box. For example, each time I use an online service, I assign them give them a unique address for our communications. These are not listed as mutt aliase

Re: mutt Applies fcc-hooks Inconsistently

2014-06-28 Thread Nathan Stratton Treadway
On Sat, Jun 28, 2014 at 13:46:42 -0700, Gary Johnson wrote: > The mutt manual describes this behavior of the fcc-hook in the > section, "Specify Default Fcc: Mailbox When Composing", as > > Mutt searches the initial list of message recipients for the > first matching regexp and uses mailbo

Re: mutt Applies fcc-hooks Inconsistently

2014-06-28 Thread Gary Johnson
On 2014-06-28, Koralatov wrote: > (And my understanding of mutt's hook operation was that the last > instruction overrides any preceding ones, so having the default > last shouldn't be right anyway.) Mutt has two types of hooks. One type invokes an operation that can be

Re: mutt Applies fcc-hooks Inconsistently

2014-06-27 Thread Mike Glover
The one you marked as working, doesn't have the dot escaped. All the other ones do? -mg On Fri, Jun 27, 2014 at 06:15:22PM +0100, Koralatov wrote: > I'm trying to use fcc-hooks to disregard e-mails that I'm sending where > I'll automatically be delivered back a copy

Syncing settings, different folder-hooks on different machines

2014-01-04 Thread Niels Kobschaetzki
ox It looks right now like this: source ~/Dropbox/Dotfiles/mutt/muttrc source ~/Dropbox/Dotfiles/mutt/sidebar source ~/Dropbox/Dotfiles/mutt/gpg.rc source ~/Dropbox/Dotfiles/mutt/gpg_special auto_view text/html I thought now that I could fit in a special file with folder-hooks that overwrites the

Re: Account-hooks do not work as expected

2013-11-17 Thread Niels Kobschaetzki
On 17/11, Chris Bannister wrote: On Sat, Nov 16, 2013 at 10:18:10PM +0100, Niels Kobschaetzki wrote: Hi, I am relatively new to mutt but was able to set up some account-hooks. I have three accounts A, B and C and when I start mutt everything works as expected. I start in account A and when I

Re: Account-hooks do not work as expected

2013-11-17 Thread Chris Bannister
On Sat, Nov 16, 2013 at 10:18:10PM +0100, Niels Kobschaetzki wrote: > Hi, > > I am relatively new to mutt but was able to set up some account-hooks. > I have three accounts A, B and C and when I start mutt everything > works as expected. I start in account A and when I want to c

Re: Account-hooks do not work as expected

2013-11-16 Thread Chris Down
On 2013-11-16 22:18:10 +0100, Niels Kobschaetzki wrote: > I am relatively new to mutt but was able to set up some account-hooks. I have > three accounts A, B and C and when I start mutt everything works as expected. > I start in account A and when I want to change folders or want to c

Account-hooks do not work as expected

2013-11-16 Thread Niels Kobschaetzki
Hi, I am relatively new to mutt but was able to set up some account-hooks. I have three accounts A, B and C and when I start mutt everything works as expected. I start in account A and when I want to change folders or want to copy mails I see the folders of account A. When I send mail it is

Re: Preventing send-hooks from overriding reply-hooks

2013-10-21 Thread Michael Elkins
On Mon, Oct 21, 2013 at 12:24:00AM -0400, Matt Rechkemmer wrote: Lately, I've found myself needing to change my replies' From address and signature based on which address the original message was sent to. I thought reply-hooks would be perfect for this, but I kept getting jamme

Preventing send-hooks from overriding reply-hooks

2013-10-20 Thread Matt Rechkemmer
Lately, I've found myself needing to change my replies' From address and signature based on which address the original message was sent to. I thought reply-hooks would be perfect for this, but I kept getting jammed up on my default send-hook. I dug this gem out of the archive

Re: Using send and reply hooks to set from address and reverse_name

2013-05-13 Thread James Griffin
Sun 12.May'13 at 13:49:32 +0200, Suvayu Ali > On Sat, May 11, 2013 at 11:24:53AM +0100, James Griffin wrote: > > > > This works for me, it may be of some use? The main setting is to have a > > default hook (folder-hook) that undoes the h

Re: Using send and reply hooks to set from address and reverse_name

2013-05-12 Thread Suvayu Ali
On Sat, May 11, 2013 at 11:24:53AM +0100, James Griffin wrote: > > This works for me, it may be of some use? The main setting is to have a > default hook (folder-hook) that undoes the hooks you have set in other > folder-hooks. I think that tip helps a lot. I'll try to w

Re: Using send and reply hooks to set from address and reverse_name

2013-05-12 Thread Suvayu Ali
..', composing a new message leads to a new message with the From address set to the last hook executed. So composing *before* changing to a new folder leads to one of my alternates in the from address. I see that later on the wiki goes on to say: Note it is generally better to manipula

Re: Using send and reply hooks to set from address and reverse_name

2013-05-11 Thread Andre Klärner
e regex for matching that folder. > > Depending on the folder I'm in the correct from address is set with "set > > from=…" > > As each IMAP account use different SMTP-Servers these are set via some > > send-hooks that depend on the from: address. This also matche

Re: Using send and reply hooks to set from address and reverse_name

2013-05-11 Thread James Griffin
hdr From: ..." command in the > above hooks. I want it to be my personal address. > > Any ideas how to resolve this conflict between hooks and reverse_name? My muttrc settings for default from address: set from=m...@myadress.com set reverse_name=yes set use_envelope_from=yes My

Re: Using send and reply hooks to set from address and reverse_name

2013-05-10 Thread Patrick Shanahan
* Suvayu Ali [05-10-13 20:09]: > On Tue, May 07, 2013 at 08:28:46PM +0200, Andre Klärner wrote: > > > > small question: why don't you use "set from=wor...@domain.com" etc? > > As far as I'm aware, 'set from=..' and 'my_hdr From ..' serves the same > purpose. [...] http://dev.mutt.org/trac/wiki

Re: Using send and reply hooks to set from address and reverse_name

2013-05-10 Thread Suvayu Ali
> from=…" > As each IMAP account use different SMTP-Servers these are set via some > send-hooks that depend on the from: address. This also matches my workflow > that new mails are edited/sent using a second mutt-instance in a new > screen-window. > > Maybe this g

Re: Using send and reply hooks to set from address and reverse_name

2013-05-10 Thread Suvayu Ali
Hi Patrick, On Tue, May 07, 2013 at 08:23:41AM -0400, Patrick Shanahan wrote: > * Suvayu Ali [05-07-13 08:14]: > > On Tue, May 07, 2013 at 01:58:57PM +0200, Suvayu Ali wrote: > [...] > > > This is what I did: > > > > > > 1. I removed all reply

Re: Using send and reply hooks to set from address and reverse_name

2013-05-07 Thread Andre Klärner
he same pattern. Depending on the folder I'm in the correct from address is set with "set from=…" As each IMAP account use different SMTP-Servers these are set via some send-hooks that depend on the from: address. This also matches my workflow that new mails are edited/sent using a second

Re: Using send and reply hooks to set from address and reverse_name

2013-05-07 Thread Patrick Shanahan
* Suvayu Ali [05-07-13 08:14]: > On Tue, May 07, 2013 at 01:58:57PM +0200, Suvayu Ali wrote: [...] > > This is what I did: > > > > 1. I removed all reply and send-hooks, `set reverse_name' (not > >reverse_name=yes), and then I set an empty default send-hook a

Re: Using send and reply hooks to set from address and reverse_name

2013-05-07 Thread Suvayu Ali
> add as the very first send-hook: send-hook . "" > > comment out or remove subject reply-hooks > > > > Make sure that all of the required "reverse_name"s are defined in > > "alternates" > > This is what I did: > > 1. I

Re: Using send and reply hooks to set from address and reverse_name

2013-05-07 Thread Suvayu Ali
Hello Patrick and others, First, apologies for the delayed response. On Fri, May 03, 2013 at 08:08:48AM -0400, Patrick Shanahan wrote: > > Try the following: > set reverse_name > add as the very first send-hook: send-hook . "" > comment out or remove subject r

Re: Using send and reply hooks to set from address and reverse_name

2013-05-03 Thread Patrick Shanahan
* Suvayu Ali [01-01-70 12:34]: > > [...] > > > Note that I do not have any default send-hook set. I also have the > > > following reply-hooks so that I can automatically reply with the correct > > > from address based on which account the email was delive

Re: Using send and reply hooks to set from address and reverse_name

2013-05-03 Thread Suvayu Ali
Hi Patrick, On Thu, May 02, 2013 at 08:28:15AM -0400, Patrick Shanahan wrote: > * Suvayu Ali [05-02-13 04:31]: > [...] > > Note that I do not have any default send-hook set. I also have the > > following reply-hooks so that I can automatically reply with the correct > &g

Re: Using send and reply hooks to set from address and reverse_name

2013-05-02 Thread Patrick Shanahan
* Suvayu Ali [05-02-13 04:31]: [...] > Note that I do not have any default send-hook set. I also have the > following reply-hooks so that I can automatically reply with the correct > from address based on which account the email was delivered to. > > reply-hook . my_

Using send and reply hooks to set from address and reverse_name

2013-05-02 Thread Suvayu Ali
Hi Mutt users, I have been having some problems setting my from address when I'm responding to my emails in a thread. I have $reverse_name set to yes and have posted about this before[1]. Since then I have realised my problem arises from conflicting hooks and I can't think of a way

Re: priority of send-hooks and folder-hooks

2011-05-17 Thread Michael Elkins
On Mon, May 16, 2011 at 09:53:34AM +0200, Thorsten Scherf wrote: I did some signature configuration based on folder-hooks and send-hooks. As default send-hook, I've choosen a specific signature that changes based on different recipient addresses. I now want to change the signature also bas

priority of send-hooks and folder-hooks

2011-05-16 Thread Thorsten Scherf
I did some signature configuration based on folder-hooks and send-hooks. As default send-hook, I've choosen a specific signature that changes based on different recipient addresses. I now want to change the signature also based on specific holders, but it looks like the config I did for

Re: Using patterns in hooks

2010-06-13 Thread martin f krafft
also sprach Javier Rojas [2010.06.13.2055 +0200]: > The following is a tip to check if you attached a file to a message, > triggered when you use the "attach" word in the text body. > > http://wiki.mutt.org/?ConfigTricks/CheckAttach > > It might be a good solution for your problem; it doesn't us

Re: Using patterns in hooks

2010-06-13 Thread Simon Ruderich
iff/ea36eed7af5f5e0e28b8d60f55abda2997cb1a08 > (also see http://bugs.debian.org/584264). > > [snip] > > I am now turning to you because you might have better ideas. Can you > think of a sentinel that is usable in hooks which > > a. matches if present, thus making the hook

Re: Using patterns in hooks

2010-06-13 Thread Javier Rojas
On Sun, Jun 13, 2010 at 07:57:23PM +0200, martin f krafft wrote: > Dear mutts, > > I am seeking a technical solution to a PEBCAK¹ case routed in my > inability — at times — to think before I do. ;) > > ¹) http://en.wikipedia.org/wiki/Pebcak > > Basically, I would like to instruct mutt to refuse

Using patterns in hooks

2010-06-13 Thread martin f krafft
ricted to those operators which match information Mutt extracts from the header of the message (i.e., from, to, cc, date, subject, etc.). It's a bit ironic that ~h is not usable in hooks, but so be it (see http://bugs.debian.org/585764). I am now turning to you because you might have better ide

Re: hooks and automatically determining "from" address : complicated way

2010-01-24 Thread David J. Weller-Fahy
* E. Prom [2010-01-20 23:04 -0400]: > Ideally, I would then just "source `external_program`", where > external_program returns the name of a mutt conf file changing all > these variables. > > [snips] > > My problem is that I need to pass this external_program the address > I'm writing to. And of c

Re: hooks and automatically determining "from" address : complicated way

2010-01-24 Thread Simon Ruderich
On Thu, Jan 21, 2010 at 04:02:44AM +0100, E. Prom wrote: > Hi, > > [snip] > > An ugly way would be to write a script that reads the aliases files > and writes all the hook-lines. Dozens of hooks lines... I don't like > it. Hi, I've had a similar problem: I want

hooks and automatically determining "from" address : complicated way

2010-01-20 Thread E. Prom
aluated. My problem is that I need to pass this external_program the address I'm writing to. And of course, `external_program ~t` does not work. Things are getting complicated. Is there a way to do that in mutt, or do I have to look for patches? An ugly way would be to write a script that

Re: Chained send-hooks

2008-11-25 Thread Michael Elkins
On Tue, Nov 25, 2008 at 05:31:19PM +0100, Jeremie Le Hen wrote: > To sum up, it seems that the address matched with ~f stay the same while > all send-hooks are processed. Is it the expected behaviour? Yes, this is expected behavior. You want to change the last send-hook to send2-hook,

Chained send-hooks

2008-11-25 Thread Jeremie Le Hen
ure-domain"' If the From: address has been changed by the third send-hook, the fourth one won't match. However, if the From: address has been changed thanks to reverse_name, then the fourth send-hook will match. To sum up, it seems that the address matched with ~f stay the same whi

Re: rerunning hooks

2008-09-24 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wednesday, September 24 at 01:22 PM, quoth martin f krafft: > also sprach Kyle Wheeler <[EMAIL PROTECTED]> [2008.09.23.1523 +0200]: >> Not really, because it's impossible to know which hooks "apply". >> Hooks a

Re: rerunning hooks

2008-09-24 Thread Rocco Rutte
urces (e.g. you do source file foo whose contents could change over time). This is because a second hook's behaviour at the time it is executed creates a new state based the state created by the first hook and so forth. Simply firing the appropriate folder-hooks for the folder you

Re: rerunning hooks

2008-09-24 Thread martin f krafft
also sprach Kyle Wheeler <[EMAIL PROTECTED]> [2008.09.23.1523 +0200]: > Not really, because it's impossible to know which hooks "apply". > Hooks are associated with actions, not with states. The send-hook > applies whenever you attempt to *send* a message, the messa

Re: rerunning hooks

2008-09-23 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday, September 23 at 10:58 AM, quoth martin f krafft: > After re-sourcing my config, all the colouring and similar stuff > I do in folder_hooks is overwritten. Is it somehow possible to rerun > all applicable hooks as part of the r

rerunning hooks

2008-09-23 Thread martin f krafft
After re-sourcing my config, all the colouring and similar stuff I do in folder_hooks is overwritten. Is it somehow possible to rerun all applicable hooks as part of the resourcing? -- martin | http://madduck.net/ | http://two.sentenc.es/ seen on an advertising for an elaborate swiss men&#

Re: fcc-hooks for nested groups of addresses

2008-07-28 Thread Kyle Wheeler
, and it'll get caught by the a12 hook. Of course, this only works because there are only two members of a12. The real problem here is that the a123 rule (or any group rule with more than two members) triggers even if only some of the members of group a123 are present. For example, if you s

fcc-hooks for nested groups of addresses

2008-07-28 Thread Ludo Pagie
igured out I need the '^' to make sure that single addresses only match the exact addresses. But I can't figure out how I can make the fcc-hooks for a12 and for a123 such that they only match at the proper time. The brackets and pattern matching in the last 2 fcc-hook lines are only

Re: folder hooks and condition not for the first message [SOLVED]

2008-03-30 Thread Raphael Brunner
> > the command is to delete from the selected message to > > bottom, not like without it, to the top message. > > What happens if you drop and set $resolve? > Exactly this works great! Thank you very much! Have a nice Sunday. Raphael.

Re: folder hooks and condition not for the first message

2008-03-26 Thread Raphael Brunner
> > the command is to delete from the selected message to > > bottom, not like without it, to the top message. > > What happens if you drop and set $resolve? > Hi Alain, I'll read it at the weekend how this work, at the moment, I don't understand what $resolve is. But, i'll try it... tha

Re: folder hooks and condition not for the first message

2008-03-25 Thread Alain Bench
Hello Raphael, On Friday, March 21, 2008 at 16:48:11 +0100, Raphael Brunner wrote: > the command is to delete from the selected message to > bottom, not like without it, to the top message. What happens if you drop and set $resolve? Bye!Alain. -- set honor_followup_to=yes in muttrc

folder hooks and condition not for the first message

2008-03-21 Thread Raphael Brunner
Dear Users I use this folder-hook at the moment: folder-hook 999-Trash* 'macro index d ""; \ macro pager d ""' now, the command is to delete from the selected message to bottom, not like without it, to the top message. this works good, only if I'm on the first

Re: hooks from aliases

2008-02-20 Thread Vladimir Marek
> > Nice. What exactly are your settings doing? What my_list_folders does? > > Hello Vladimir, > > Usage: > source "alias-hooks.php $alias_file|" > folder-hook . 'special settings' > folder-hook $my_list_folders 'other special settings' Ah, I overlooked that, I thought that it's some secret mutt

Re: hooks from aliases

2008-02-20 Thread Peter Münster
On Wed, Feb 20 2008, Vladimir Marek wrote: > > set my_list_folders = /list1$|/list2$ > > mailboxes =list1 =list2 > > subscribe [EMAIL PROTECTED] [EMAIL PROTECTED] > > Nice. What exactly are your settings doing? What my_list_folders does? Hello Vladimir, Usage: source "alias-hooks.php $alias_fil

Re: hooks from aliases

2008-02-20 Thread Vladimir Marek
> For my personal needs I've written a script to generate hooks from aliases: > Output: > fcc-hook '~C [EMAIL PROTECTED] ~C [EMAIL PROTECTED]' +a1a2 > save-hook '~L [EMAIL PROTECTED] ~L [EMAIL PROTECTED]' +a1a2 > fcc-save-hook [EMAIL PROTECTED] +a1 > fcc

hooks from aliases

2008-02-19 Thread Peter Münster
Hello, For my personal needs I've written a script to generate hooks from aliases: Input: alias a1 [EMAIL PROTECTED] (Name) alias a2 [EMAIL PROTECTED] (Name) alias a3 [EMAIL PROTECTED] (Name) alias a3 [EMAIL PROTECTED] (Name) alias a1a2 a1,a2 alias a4 [EMAIL PROTECTED] \

sig depending on recipient (was: Re: script for generating hooks)

2008-02-16 Thread Peter Münster
On Sat, Feb 16 2008, Joseph wrote: > What hook would you use to set your sig based on the initial user you > have chosen? I suppose a send-hook. Cheers, Peter -- http://pmrb.free.fr/contact/

Re: script for generating hooks

2008-02-16 Thread Joseph
On 02/16/08, Peter Münster wrote: > Hello, > > Before making some scripts, I would like to know, if someone has already > done, what I'm looking for, or something similar: > > A script, that generates fcc- and save-hooks automatically from aliases > > Example: &

script for generating hooks

2008-02-16 Thread Peter Münster
Hello, Before making some scripts, I would like to know, if someone has already done, what I'm looking for, or something similar: A script, that generates fcc- and save-hooks automatically from aliases Example: alias user1 [EMAIL PROTECTED] (Name) alias user2 [EMAIL PROTECTED] (Name)

Re: global case insensitivity on hooks

2007-11-19 Thread Michelle Konzack
Am 2007-11-14 11:21:52, schrieb Eric Smith: > For example, I have the following hook, > send-hook "~t `cat ~/recipients_list` " 'set signature=... > > And I want the matching of everything in the recipients_list file > to be case insensitive without having to specify each address in > the file wi

Re: global case insensitivity on hooks

2007-11-14 Thread Michael Elkins
On Wed, Nov 14, 2007 at 05:35:58PM +0100, Eric Smith wrote: > To my understanding, > this makes every address listed in the recipients_list lowercase > but does not solve the problem that in the email header, the > address might have unpredictable case. > > So I want the recipe to match any case

Re: global case insensitivity on hooks

2007-11-14 Thread Paul Hoffman
On Wed, Nov 14, 2007 at 05:35:58PM +0100, Eric Smith wrote: > Michael > > To my understanding, > this makes every address listed in the recipients_list lowercase > but does not solve the problem that in the email header, the > address might have unpredictable case. > > So I want the recipe to ma

Re: global case insensitivity on hooks

2007-11-14 Thread Eric Smith
Michael To my understanding, this makes every address listed in the recipients_list lowercase but does not solve the problem that in the email header, the address might have unpredictable case. So I want the recipe to match any case in the header. Also, I should have added that my hook is compo

Re: global case insensitivity on hooks

2007-11-14 Thread Michael Elkins
On Wed, Nov 14, 2007 at 11:21:52AM +0100, Eric Smith wrote: > For example, I have the following hook, > send-hook "~t `cat ~/recipients_list` " 'set signature=... > > And I want the matching of everything in the recipients_list file > to be case insensitive without having to specify each address

global case insensitivity on hooks

2007-11-14 Thread Eric Smith
For example, I have the following hook, send-hook "~t `cat ~/recipients_list` " 'set signature=... And I want the matching of everything in the recipients_list file to be case insensitive without having to specify each address in the file with a regex. Thanks -- - Eric Smith

Re: Howto run a command in message hooks (was: Re: How to send a

2007-10-25 Thread Patrick Schoenfeld
Hey Karl, it may have sounded arrogant, but indeed it wasn't intended to sound that. But... On Thu, Oct 25, 2007 at 10:35:31AM +1300, Karl. wrote: > Given that you asked for advice, perhaps you should work on accepting > all advice _graciously_, rather than being arrogant? You'll find it a Yo

Re: Howto run a command in message hooks (was: Re: How to send a

2007-10-25 Thread Karl.
On Wed, Oct 24, 2007 at 09:37:34PM +0200, Patrick Schoenfeld wrote: > On Wed, Oct 24, 2007 at 01:39:17PM -0400, Patrick Shanahan wrote: > > ls -la ~/.mutt/return_receipt > > You should work on you ability to _read_ mails others write _properly_. Given that you asked for advice, perhaps you should

Re: Howto run a command in message hooks (was: Re: How to send a

2007-10-24 Thread Patrick Schoenfeld
On Wed, Oct 24, 2007 at 01:39:17PM -0400, Patrick Shanahan wrote: > ls -la ~/.mutt/return_receipt You should work on you ability to _read_ mails others write _properly_. I told you, that the file _is_ executable. And as you eventually noticed someone else already pointed the right solution out to

Re: Howto run a command in message hooks (was: Re: How to send a

2007-10-24 Thread Patrick Shanahan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * Patrick Schoenfeld <[EMAIL PROTECTED]> [10-24-07 11:01]: > On Wed, Oct 24, 2007 at 04:53:23PM +0200, Patrick Schoenfeld wrote: > > What information do you expect me to presentate? Eventually my whole mutt > > configuration just to ask why one specifi

Re: Howto run a command in message hooks

2007-10-24 Thread Rado S
=- Patrick Schoenfeld wrote on Wed 24.Oct'07 at 17:18:54 +0200 -= > and waits for an input ("read yn"), but mutt adds its "Press any > key to continue...". So it seems that mutt already answers the > question (what it shouldn't do). Also if I do press return to that > question, it restarts the scr

Re: Howto run a command in message hooks (was: Re: How to send a

2007-10-24 Thread Rado S
=- Patrick Schoenfeld wrote on Wed 24.Oct'07 at 16:40:33 +0200 -= > Why? According to what I read this works for macros, why shouldn't > it work for message hooks? Because macros operate on functions, while hooks operate on muttrc commands. See http://WIKI.mutt.org/ -> Mutt

Re: Howto run a command in message hooks

2007-10-24 Thread Dave Evans
dlessly? Just a guess, but maybe after running an external script, mutt re-runs the hooks; after all, it is still "Before mutt displays (or formats for replying or forwarding) a message". The muttrc man page, at least, is not very specific (AFAICT) about when the hooks get run. In

Re: Howto run a command in message hooks

2007-10-24 Thread Christian Brabandt
Hi Patrick! On Wed, 24 Oct 2007, Patrick Schoenfeld wrote: > On Wed, Oct 24, 2007 at 05:30:45PM +0200, Christian Brabandt wrote: > > If you have used I think your stdin has changed to the > > messages you piped. And read expects your answer from that filehandle. > > So you might try explicitly s

Re: Howto run a command in message hooks

2007-10-24 Thread Patrick Schoenfeld
On Wed, Oct 24, 2007 at 05:30:45PM +0200, Christian Brabandt wrote: > If you have used I think your stdin has changed to the > messages you piped. And read expects your answer from that filehandle. > So you might try explicitly setting your tty with read yn

Re: Howto run a command in message hooks

2007-10-24 Thread Christian Brabandt
Hi Patrick! On Wed, 24 Oct 2007, Patrick Schoenfeld wrote: > On Wed, Oct 24, 2007 at 04:56:13PM +0200, Christian Brabandt wrote: > > Do you mind formating your message with a width < 80 chars? > > no, thats no problem. > > > Depending on what your want try either or > > Hm. That and what Dav

Re: Howto run a command in message hooks

2007-10-24 Thread Christian Brabandt
e. For me it wouldn't because w/o the question > _I_ would forget to send the return receipt). Something like this > can automatically be triggered only by message hooks. But as the > solution is extern (= a script), how do i call it from within the > message hook? I added a hook lik

Re: Howto run a command in message hooks

2007-10-24 Thread Patrick Schoenfeld
Hi Christian, On Wed, Oct 24, 2007 at 04:56:13PM +0200, Christian Brabandt wrote: > Do you mind formating your message with a width < 80 chars? no, thats no problem. > Depending on what your want try either or Hm. That and what Dave Evans wrote works, at least partially. Now the script is lau

Re: Howto run a command in message hooks (was: Re: How to send a

2007-10-24 Thread Patrick Schoenfeld
On Wed, Oct 24, 2007 at 04:53:23PM +0200, Patrick Schoenfeld wrote: > What information do you expect me to presentate? Eventually my whole mutt > configuration just to ask why one specific message-hook (which I presentated) > is not working? There is only one information that I see that I really m

Re: Howto run a command in message hooks

2007-10-24 Thread Dave Evans
On Wed, Oct 24, 2007 at 04:40:33PM +0200, Patrick Schoenfeld wrote: > message-hook "~h Return-Receipt-To:" "|/home/schoenfeld/.mutt/return_receipt" > > And even though the specified file is a valid executable script mutt says > (when > I open this mail in the pager): > > |/home/schoenfeld/.mutt/

Re: Howto run a command in message hooks (was: Re: How to send a

2007-10-24 Thread Patrick Schoenfeld
On Wed, Oct 24, 2007 at 10:47:58AM -0400, Patrick Shanahan wrote: > * Patrick Schoenfeld <[EMAIL PROTECTED]> [10-24-07 10:42]: > > And even though the specified file is a valid executable script mutt says > > (when > > I open this mail in the pager): > > first *guess* w/b that ~/.mutt/return_recei

Re: Howto run a command in message hooks (was: Re: How to send a return receipt)

2007-10-24 Thread Patrick Shanahan
ouldn't because w/o the question _I_ would forget to send > the return receipt). Something like this can automatically be triggered only > by message > hooks. But as the solution is extern (= a script), how do i call it from > within > the message hook? I added a hook like

Howto run a command in message hooks (was: Re: How to send a return receipt)

2007-10-24 Thread Patrick Schoenfeld
. For me it wouldn't because w/o the question _I_ would forget to send the return receipt). Something like this can automatically be triggered only by message hooks. But as the solution is extern (= a script), how do i call it from within the message hook? I added a hook like this: message-ho

Re: How to limit displayed messages via folder-hooks

2007-10-06 Thread Patrick Schoenfeld
On Sat, Oct 06, 2007 at 12:19:00PM -0700, Gary Johnson wrote: > 'limit' is a function, not a command. folder-hooks execute commands Ahh. I understand. Thanks for pointing this out. > not functions. However, the 'push' and 'exec' commands will execute &g

Re: How to limit displayed messages via folder-hooks

2007-10-06 Thread Christian Ebert
e possible to enable this >> limit for folders by default, by using folder-hooks. > > folder-hook . 'push all' actually, in this case, you don't need the default command above. the following should suffice: > folder-hook =Mailinglisten.mutt-users 'push ~N&#

  1   2   3   4   >