mutt imap setup: save-hook with local exact header match (not '=h foo:')
Hi All, Is there a way, in a save-hook, to match an email header with an exact string match (not a regex) when the mail being saved is from an IMAP mailbox? I am saving the messages to local mbox files, and am using both the Mutt header cache and the Mutt message cache. I would like for the exact string search to be made against data from the local caches rather than on the remote IMAP server (which is what '=h' does). Context: I am consolidating different Mutt configs into a multi-account config that accesses both local inboxes (main mail spool and other local mailboxes into which messages have been sifted) and remote IMAP inboxes. In a related effort, I am also in the process of moving some mailing list subscriptions from an account whose messages are pulled down down into the local mail spool to one in which that list traffic will be delivered to one of the IMAP accounts. My existing save-hook commands for these lists use the '=h' pattern modifier, and generally look like this: save-hook '~L "\\" =h "List-Id: "' +debian-emacsen-%[%Y].gz Those worked well when the config was using only the local mail spool, and I'm sure my intent was to have the 'List-Id:' headers match exactly. With IMAP, though, '=h' has special meaning, and the search will be performed on the IMAP server. You can force Mutt to treat EXPR as a simple string instead of a regular expression by using = instead of ~ in the pattern name. For example, =b *.* will find all messages that contain the literal string “*.*”. Simple string matches are less powerful than regular expressions but can be considerably faster. For IMAP folders, string matches =b, =B, and =h will be performed on the server instead of by fetching every message. IMAP treats =h specially: it must be of the form “header: substring” and will not partially match header names. The substring part may be omitted if you simply wish to find messages containing a particular header without regard to its value. I could rewrite the '=h' bits my save-hooks to work with '~h' regexen: save-hook '~L "\\" ~h "\\]"' +debian-emacsen-%[%Y].gz but if there's a way to say "match this specific literal header string, using only locally available data", I'd be interested in learning about it. I feel like I might be missing something obvious, but I haven't been able to find it in the manual or via web searches. Thanks, -Al -- a l a n d. s a l e w s k i ads@salewski.email salew...@att.net https://github.com/salewski
save-hook Dynamic Destination
Hello and Happy Holidays to everyone, I receive emails from a vendors support system that come from supp...@vendor.com addresses and have something similar to the following in the subject: Support Request I currently file them in a folder vendor-support/ where the cooresponds to the support request number. Is it possible to have a save hook dynamically suggest the based on the number that actually appears in the subject of the email? Thank you, -- Joshua Smith Lead Systems Administrator WVNET Montani Semper Liberi
FCC-SAVE-HOOK with ~B
I try to set a fcc-save-hook to save all messages that math to: Cotacao or cotacao or Cotação or cotação or Cotaçao or Cotacão ... or Quotacao or quotacao or Quotação ... in any message fields (subject, body, to, cc, Ccc) to ~/Mail/Cotacao/Inbox I created the folders ~/Mail/Cotacao/Inbox I set this on my ~/.mutt/muttrc # boxes mailboxes +--Gmail +GMail/Inbox +GMail/Enviados \ +GMail/Rascunhos +GMail/Lixeira +GMail/Importante mailboxes +--Yahoo +Yahoo/Inbox +Yahoo/Enviados \ +Yahoo/Rascunhos +Yahoo/Lixeira mailboxes +--UFVJM +UFVJM/INBOX +UFVJM/Sent +UFVJM/Drafts \ +UFVJM/Spam +UFVJM/Trash mailboxes +--Cotação-- +Cotação/Inbox fcc-save-hook '~B [Cc]ota[çc][aã]o | ~B [Qq]uota[çc][aã]o' \ +Cotacao/Inbox #fcc-save-hook '~b Cotacao ~b Quotacao' +Cotacao/Inbox However, mutt complains about B and b. It is not possible? In the manual we have: fcc-save-hook [!]pattern mailbox This command is a shortcut, equivalent to doing both a fcc-hook and a save-hook with its arguments. Thank you -- Marcelo Brasil (Brazil, for English Speakers) Linux user number 487797
Re: Changing save-hook based on current folder
Never mind, I figured out the problem myself. save-hook works fine inside of folder-hook after all :) pants.
Changing save-hook based on current folder
Hello, I'd like to change the place that mutt saves messages to based on the folder that I'm currently in, like I do with 'set' commands within folder-hooks. However, it doesn't seem that I can use save-hooks in that way. Any help would be appreciated. Cheers, pants.
Re: fcc-save-hook for multiple recipients
Thanks Tim but the condition is AND not OR. All three addresses need to be present in random order in the To: or Cc: fo the rule to apply. -- - Eric Smith Tim Gray said: On Dec 05, 2011 at 10:23 PM +0100, Eric Smith wrote: If a sent or received mail has a certain list of email addresses in the To: and Cc:, then I want to automatically save to a specific folder. Well, you can either string together a bunch of criteria with 'ors' and use the ~C pattern: fcc-save-hook '~C name1 | ~C name2 | ~C name3' foler_name or you can put all the addresses in a group and just use the %C pattern: fcc-save-hook '%C groupname' folder_name The first is probably more direct.
Re: fcc-save-hook for multiple recipients
Tim Gray said: On Dec 08, 2011 at 12:08 PM +0100, Eric Smith wrote: Thanks Tim but the condition is AND not OR. All three addresses need to be present in random order in the To: or Oops. Just take that the |'s then. If you just place several search modifiers together, a logical AND is assumed. Thanks, but I still cannot find a pattern modifier that specifies So if it is a mail from one of three names and the other two names are in ~C (To: or Cc:), then it is a match. What is the smartest way to specify this logic with an fcc-save-hook? --- If that does not make sense, then this is the real life situation. I work independently with foo, bar and baz. So I have a folder for each. I also work collectively in a project with foo, bar and baz. When all three are in the mail headers, then I want the outgoing mails and the incoming mails to be saved to the project folder and not to the foo, bar or baz folder. Hope that makes sense. Eric Smith
Re: fcc-save-hook for multiple recipients
On Dec 08, 2011 at 10:39 PM +0100, Eric Smith wrote: So if it is a mail from one of three names and the other two names are in ~C (To: or Cc:), then it is a match. What is the smartest way to specify this logic with an fcc-save-hook? If I understand correctly, the following should do it. It's a hook that has all three recipients in the To: or CC: fields which sets the fcc/save folder to 'project_folder', followed by three individual hooks for the separate people. fcc-save-hook '~C foo ~C bar ~C baz' project_folder fcc-save-hook '~C foo' foo_folder fcc-save-hook '~C bar' bar_folder fcc-save-hook '~C baz' baz_folder It's in the order it is because hooks are matched in the order they appear in the file. So you want your group hook to match before the individual ones... otherwise the 'foo' hook would match both 'foo' only messages and the group ones.
Re: fcc-save-hook for multiple recipients
On Dec 08, 2011 at 08:15 AM -0500, Tim Gray wrote: On Dec 08, 2011 at 12:08 PM +0100, Eric Smith wrote: Thanks Tim but the condition is AND not OR. All three addresses need to be present in random order in the To: or Oops. Just take that the |'s then. If you just place several search modifiers together, a logical AND is assumed. I realized I had a typo here. It should read: Just take out the |'s then.
Re: fcc-save-hook for multiple recipients
Yes Tim But this will not match if the mail is From: foo and To: bar, baz -- - Eric Smith Tim Gray said: On Dec 08, 2011 at 10:39 PM +0100, Eric Smith wrote: So if it is a mail from one of three names and the other two names are in ~C (To: or Cc:), then it is a match. What is the smartest way to specify this logic with an fcc-save-hook? If I understand correctly, the following should do it. It's a hook that has all three recipients in the To: or CC: fields which sets the fcc/save folder to 'project_folder', followed by three individual hooks for the separate people. fcc-save-hook '~C foo ~C bar ~C baz' project_folder fcc-save-hook '~C foo' foo_folder fcc-save-hook '~C bar' bar_folder fcc-save-hook '~C baz' baz_folder It's in the order it is because hooks are matched in the order they appear in the file. So you want your group hook to match before the individual ones... otherwise the 'foo' hook would match both 'foo' only messages and the group ones.
Re: fcc-save-hook for multiple recipients
On Dec 09, 2011 at 12:05 AM +0100, Eric Smith wrote: But this will not match if the mail is From: foo and To: bar, baz You'll just need to add a couple more hooks to catch all the cases. It's really all explained in the manual. fcc-save-hook '~f foo ~C bar ~C baz' project_folder fcc-save-hook '~f bar ~C foo ~C baz' project_folder fcc-save-hook '~f baz ~C foo ~C bar' project_folder The above three rules would be needed in addition to the previous set. Obviously, you join the above rules into one giant hook, but readability might go down a bit. You could probably also use the ~L modifier and catch all these cases, assuming I'm reading the manual correctly. It defines it as messages either originated or received by EXPR. fcc-save-hook '~L foo ~L bar ~L baz' project_folder
fcc-save-hook for multiple recipients
If a sent or received mail has a certain list of email addresses in the To: and Cc:, then I want to automatically save to a specific folder. How would I implement this? -- - Eric Smith
Re: fcc-save-hook for multiple recipients
On Dec 05, 2011 at 10:23 PM +0100, Eric Smith wrote: If a sent or received mail has a certain list of email addresses in the To: and Cc:, then I want to automatically save to a specific folder. Well, you can either string together a bunch of criteria with 'ors' and use the ~C pattern: fcc-save-hook '~C name1 | ~C name2 | ~C name3' foler_name or you can put all the addresses in a group and just use the %C pattern: fcc-save-hook '%C groupname' folder_name The first is probably more direct.
patterns and fcc-save-hook
Hello, because of reading email with mutt for a long time, I've traditionally kept mail for each addressee in a separate folder. For work mail (e.g. foo@work.com) I save to =work/foo.bar. Problem is, there's quite a few of these work addresses, and I have to add each one manually to my save_hook file. Is there a way to use patters to achieve this automatically? Here's roughly what I would write it in regexp language: fcc-save-hook ([a-z\.]+)@work.com =work/\1 That syntax probably doesn't fly with mutt (or does it), but you probably get the idea. I'd like to match the part before @ and use that after =work/. Could I achieve this by somehow changing the default base folder where mutt saves email? Any other tricks to make this work? If it won't work like this I'll consider an automatic script which writes a full list of fcc-save-hooks based on our ldap server entries. *Sigh* Perhaps it's time to switch to more generic mailboxes (=work, =friends) and use limits to filter by user. Webmail, phone email and others all seem to dislike my 300+ imap folders. Mutt is one of the only mail clients which handles this well. Kind regards, Hein Zelle -- Unix is user friendly. It's just very particular about who it's friends are. Hein Zelle h...@icce.rug.nl http://www.icce.rug.nl/~hein
fcc-save-hook
I have a script that generates entries into my hooks file as follows: fcc-save-hook ~t @swypeinc\.com | ~f @swypeinc\.com +swypeinc.com Now this fails when the mail is cc'ed to me and the recipient entry appears *before* the sender's entry in the hooks file. This of course results in the file being by default saved in the mailbox of the recipient. Is there a clever way to solve this problem (without having to complicate my script to provide two entries, a ~f at the top of the file and a ~t at the bottom to enforce the precedence of ssender matching). -- - Eric Smith
Re: [SOLVED] Need a little help with save-hook
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 srevilak I found a way to get the behavior I was looking for: move srevilak the save-hook into the individual folder hooks: kyle-mutt Heh - I was just writing you a message saying precisely kyle-mutt that. kyle-mutt kyle-mutt The reason is because the '=' is expanded at the time the kyle-mutt send-hook is established, rather than at the time the kyle-mutt send-hook is triggered. Kyle, Thanks for the explanation. Steve -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.11 (Darwin) iEYEARECAAYFAkocj+AACgkQX7YJI4BuyDQcKgCg7w/74fs1q5YdD3p9r9NE6Bqc B+IAn0UJ3/nxXztZ2nlzVSTjd4oDspaI =4uDJ -END PGP SIGNATURE-
[SOLVED] Need a little help with save-hook
I've been using Mutt for a few weeks. I'm impressed with the amount of flexibility that Mutt offers, and for the most part, I've been successful in adapting Mutt to my personal tastes. But there's one thing that I haven't been able to get quite right, and I'm hoping one of you can offer some insight. I use Mutt with three different IMAP accounts. In general, I'd like Mutt to save messages in ~/mail/messages. BUT, when using one particular IMAP account (call it imaps://mail.example.com), I'd like the default save folder to be imaps://mail.example.com/messages instead. Put it another way, I'd the default save folder to be =messages, relative to the current value of $folder. I've tried to do this with a combination of folder and save hooks. My default folder-hook is folder-hook . 'set folder=~/mail; \ set record=~/mail/messages; \ set postponed=~/mail/postponed-msgs; \ set smtp_url= ... ; \ set ssl_starttls=yes; \ set from= ... ; \ set pgp_sign_as= ...;' (Above, ... isn't a literal string -- it just means that I've omitted the value, since the setting doesn't seem relevant to the discussion at hand.) The folder-hook for the IMAP account where I'd like to have the save folder on the IMAP server. folder-hook imaps://m...@mail.example.com \ 'set folder=imaps://m...@mail.example.com/; \ set record=imaps://m...@mail.example.com/messages; \ set smtp_url=smtp://m...@mail.example.com; \ set from= ...; \ set pgp_sign_as=...' Finally, I have one save hook: save-hook . =messages This _almost_ works. If I'm *not* reading mail at imaps://mail.example.com/, mutt offers the save folder: Save to mailbox ('?' for list): =messages which appends to ~/mail/messages. This is exactly what I'd like Mutt to do. When I read mail at imaps://mail.example.com/, Mutt offers the following: Save to mailbox ('?' for list): ~/mail/messages If I change the line to Save to mailbox: =messages Then mutt appends saved messages to imaps://mail.example.com/messages. Before giving the save command, I've verified that folder=imaps://mail.example.com/. When reading mail at imaps://mail.example.com, how can I get Mutt to offer =messages as the default save folder, instead of ~/mail/messages? I'm sure it's something simple, but I'm just not seeing it. I found a way to get the behavior I was looking for: move the save-hook into the individual folder hooks: folder-hook . 'set folder=~/mail; \ set record=~/mail/messages; \ set postponed=~/mail/postponed-msgs; \ set smtp_url= ... ; \ set ssl_starttls=yes; \ set from= ... ; \ set pgp_sign_as= ...; \ save-hook . =messages' ## new line folder-hook imaps://m...@mail.example.com \ 'set folder=imaps://m...@mail.example.com/; \ set record=imaps://m...@mail.example.com/messages; \ set smtp_url=smtp://m...@mail.example.com; \ set from= ...; \ set pgp_sign_as=...; \ save-hook . =messages '## new line # save-hook . =messages ## remove this line To give credit where credit is due, I got the idea from http://zeniv.linux.org.uk/~telsa/BitsAndPieces/muttrc-1.2. Steve pgpifLZCoYHHB.pgp Description: PGP signature
Re: [SOLVED] Need a little help with save-hook
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On Monday, May 25 at 08:43 AM, quoth Steve Revilak: I found a way to get the behavior I was looking for: move the save-hook into the individual folder hooks: Heh - I was just writing you a message saying precisely that. The reason is because the '=' is expanded at the time the send-hook is established, rather than at the time the send-hook is triggered. ~Kyle - -- I'm sick of following my dreams. I'm just going to ask them where they're going and hook up with them later. -- Mitch Hedberg -BEGIN PGP SIGNATURE- Comment: Thank you for using encryption! iQIVAwUBSht9bSuveozR/AWeAQg6zA//dakIu6k3E5GTu3GVYF8kQTHpJ0IIK6wt LEImHFtHw0HGj0EFXpEBiwOYi7Q+C1Vn/y697XVWntjnWWHnhjo5R/DOSfLr7v22 WBd8LuUwZEipPE+hhNtHJdwyaYyy1BBxd+p+uTiokGfkUf1jZTL0usWe0ObrCikv LJfgdFbayU0e8tqYFaQi4l4lhTVXTiNQ+RN8+6PBQPBUM72w14oK3/OtjhmNtAZl 32zGnxgwmkH9Y60q6r5r8XC8ui2BEedZiKrSv+WkuZCoL0BRa/CsetacxBLbe5Xi skHzhYHh56g3UqNvRgOIbBtNsH1F6BbaTc43u6/VwdWkKs2wl3F8PafUTYm3JcOf D3PM93u4UiVsC5N9ha+mJpLWybazlMPFQfvl/I0qccl3F0lLjL03slCDMCSjEg7t vx41DhPmR3Lz6KDLlnqT5JxcTLIgCqFZbHwWP5n8qIQcydu9AbH5bNVSAUId7HGQ shkfRKzCj+r/YK3wLg7hm2RcXjeavQ6bnOLTba1oojbHFXjRWaDXt/qYq/+eKUL+ touWvgjj5vVQ85Nk3Q4yj9PLluEPGWCpUuezB5zq+ItjGAEYKjWTEGiJJjyritjg 6Tjtq32QqmGMOUZeSPmh+NR9JG8Y24JpXS/+hcxRbmUlAd19rrcG6jzkMwJ4YRM1 YAeLNMmVvio= =QPXy -END PGP SIGNATURE-
Need a little help with save-hook
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've been using Mutt for a few weeks. I'm impressed with the amount of flexibility that Mutt offers, and for the most part, I've been successful in adapting Mutt to my personal tastes. But there's one thing that I haven't been able to get quite right, and I'm hoping one of you can offer some insight. I use Mutt with three different IMAP accounts. In general, I'd like Mutt to save messages in ~/mail/messages. BUT, when using one particular IMAP account (call it imaps://mail.example.com), I'd like the default save folder to be imaps://mail.example.com/messages instead. Put it another way, I'd the default save folder to be =messages, relative to the current value of $folder. I've tried to do this with a combination of folder and save hooks. My default folder-hook is folder-hook . 'set folder=~/mail; \ set record=~/mail/messages; \ set postponed=~/mail/postponed-msgs; \ set smtp_url= ... ; \ set ssl_starttls=yes; \ set from= ... ; \ set pgp_sign_as= ...;' (Above, ... isn't a literal string -- it just means that I've omitted the value, since the setting doesn't seem relevant to the discussion at hand.) The folder-hook for the IMAP account where I'd like to have the save folder on the IMAP server. folder-hook imaps://m...@mail.example.com \ 'set folder=imaps://m...@mail.example.com/; \ set record=imaps://m...@mail.example.com/messages; \ set smtp_url=smtp://m...@mail.example.com; \ set from= ...; \ set pgp_sign_as=...' Finally, I have one save hook: save-hook . =messages This _almost_ works. If I'm *not* reading mail at imaps://mail.example.com/, mutt offers the save folder: Save to mailbox ('?' for list): =messages which appends to ~/mail/messages. This is exactly what I'd like Mutt to do. When I read mail at imaps://mail.example.com/, Mutt offers the following: Save to mailbox ('?' for list): ~/mail/messages If I change the line to Save to mailbox: =messages Then mutt appends saved messages to imaps://mail.example.com/messages. Before giving the save command, I've verified that folder=imaps://mail.example.com/. When reading mail at imaps://mail.example.com, how can I get Mutt to offer =messages as the default save folder, instead of ~/mail/messages? I'm sure it's something simple, but I'm just not seeing it. I'm using Mutt 1.5.19, compiled from source, on Mac OS X 10.4.11. Thanks for any suggestions. Steve -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.11 (Darwin) iEYEARECAAYFAkoZtXgACgkQX7YJI4BuyDQAnQCfSWgUAlRd+9m6oYk9BWrMn3rE zO8An2Z1KJ6qYv58WbZJGS1C2c7u1Pdo =TkxJ -END PGP SIGNATURE-
Re: save-hook does not save in the right location?
Hi, * Jörg Sommer wrote: Corsair [EMAIL PROTECTED] wrote: So there's no way to do it (without a external mail filter) when mails from mailing lists and other mails are mixed in a folder? From /usr/share/doc/mutt/manual.txt.gz: 12. Using Multiple spool mailboxes Usage: mbox-hook [!]pattern mailbox This command is used to move read messages from a specified mailbox to a different mailbox automatically when you quit or change folders. pattern is a regular expression specifying the mailbox to treat as a ``spool'' mailbox and mailbox specifies where mail should be saved when read. Pattern in the usage-line is misleading, because it's a regex for the foldername and not a message pattern (like ~l). Furthermore, mbox-hook doesn't apply if all your mail is one folder. Rocco
Re: save-hook does not save in the right location?
Hallo Corsair, Corsair [EMAIL PROTECTED] wrote: On Thu, Jan 10, 2008 at 01:31:41PM +0100, Rocco Rutte wrote: If you want to move read mail to ~/read-mail and ~/read-lists, you can do something like this: folder-hook . 'set mbox=~/read-mail' folder-hook =lists 'set mbox=~/read-lists' The first makes sure that for every folder the $mbox setting gets reset. The second sets $mbox accordingly when you enter the =lists folder. So there's no way to do it (without a external mail filter) when mails from mailing lists and other mails are mixed in a folder? From /usr/share/doc/mutt/manual.txt.gz: 12. Using Multiple spool mailboxes Usage: mbox-hook [!]pattern mailbox This command is used to move read messages from a specified mailbox to a different mailbox automatically when you quit or change folders. pattern is a regular expression specifying the mailbox to treat as a ``spool'' mailbox and mailbox specifies where mail should be saved when read. Unlike some of the other hook commands, only the first matching pattern is used (it is not possible to save read mail in more than a single mailbox). I think, this does what you want. Bye, Jörg. -- Der Hase läuft schneller als der Fuchs, denn der Hase läuft um sein Leben.
save-hook does not save in the right location?
Hello list, I have two mailboxes: mbox and lists and a spool file /var/mail/corsair. I set mbox as the default save location in my .muttrc: mailboxes =mbox mailboxes =lists set mbox=~/Mail/mbox And I want to save all the mails from mailing lists to the box lists after read, so I have a save-hook setting: save-hook ~l =lists And of course, I do have subscribed some mailing lists in the .muttrc. But the save-hook above seems not to work. When I change mailbox from the spool or quit Mutt, all read mails just move to mbox. How should I setup Mutt so that mails from mailing lists automatically go to lists instead of the default mailbox? Thanks. -- There is no emotion; there is peace. There is no ignorance; there is knowledge. There is no passion; there is serenity. There is no death; there is the Force. pgpdndHEeBYe1.pgp Description: PGP signature
Re: save-hook does not save in the right location?
Hi, * Corsair wrote: And of course, I do have subscribed some mailing lists in the .muttrc. But the save-hook above seems not to work. When I change mailbox from the spool or quit Mutt, all read mails just move to mbox. How should I setup Mutt so that mails from mailing lists automatically go to lists instead of the default mailbox? Your mixing up two different concepts: 1) $mbox is an archive for read mail and 2) save-hook let's you tune what folder mutt suggests when you ask it to save a message (hit 's'). If you want to move read mail to ~/read-mail and ~/read-lists, you can do something like this: folder-hook . 'set mbox=~/read-mail' folder-hook =lists 'set mbox=~/read-lists' The first makes sure that for every folder the $mbox setting gets reset. The second sets $mbox accordingly when you enter the =lists folder. Rocco
Re: save-hook does not save in the right location?
On Thu, Jan 10, 2008 at 01:31:41PM +0100, Rocco Rutte wrote: Your mixing up two different concepts: 1) $mbox is an archive for read mail and 2) save-hook let's you tune what folder mutt suggests when you ask it to save a message (hit 's'). Sorry... It's just that one of my mailbox is named mbox, and I set it as $mbox. If you want to move read mail to ~/read-mail and ~/read-lists, you can do something like this: folder-hook . 'set mbox=~/read-mail' folder-hook =lists 'set mbox=~/read-lists' The first makes sure that for every folder the $mbox setting gets reset. The second sets $mbox accordingly when you enter the =lists folder. So there's no way to do it (without a external mail filter) when mails from mailing lists and other mails are mixed in a folder? -- There is no emotion; there is peace. There is no ignorance; there is knowledge. There is no passion; there is serenity. There is no death; there is the Force. pgpSjtnPQNVXx.pgp Description: PGP signature
Re: save-hook does not save in the right location?
Hi, * Corsair wrote: On Thu, Jan 10, 2008 at 01:31:41PM +0100, Rocco Rutte wrote: If you want to move read mail to ~/read-mail and ~/read-lists, you can do something like this: folder-hook . 'set mbox=~/read-mail' folder-hook =lists 'set mbox=~/read-lists' The first makes sure that for every folder the $mbox setting gets reset. The second sets $mbox accordingly when you enter the =lists folder. So there's no way to do it (without a external mail filter) when mails from mailing lists and other mails are mixed in a folder? If they're in one folder, there're two more options. 1) You use a macro to move messages or 2) use folder-hooks that move messages when you enter the folder. For 1) you'd need to hit a single key, 2) would be automatic but has the disadvantage that read messages are only moved the next time you enter that folder. They both would need to perform the same action: Tag all read list mail and save them to the archive for list mail, save all other read mail to the default location. I think the $mbox feature is only there because older mail(1) clients on unix do the same, though it's not really meant as an archive system. Rocco
Re: save-hook does not save in the right location?
On Thu, Jan 10, 2008 at 04:55:21PM +0100, Rocco Rutte wrote: If they're in one folder, there're two more options. 1) You use a macro to move messages or 2) use folder-hooks that move messages when you enter the folder. For 1) you'd need to hit a single key, 2) would be automatic but has the disadvantage that read messages are only moved the next time you enter that folder. Ok. I'll try them, and maybe I'll just use a mail filter to have multiple spools. Thanks a lot. -- There is no emotion; there is peace. There is no ignorance; there is knowledge. There is no passion; there is serenity. There is no death; there is the Force. pgp4YrZu9vlbt.pgp Description: PGP signature
fcc-save-hook and ignoring cc:
I prefer to use a combined fcc and save hook. These are automatically generated whenever I create a new contact. However, with the Fcc: part, when it sees a Cc address, this over-rules the To: address so the mail is saved in the folder matching the rule of the Cc: address. *Not* at all what I want. Using the ~t regex breaks the save-hook part as it always saves the mails I send in my own folder and not the recipients. What is the solution? Thanks Eric
Re: save-hook-list
* Gregor Zattler [EMAIL PROTECTED] [2002-08-16 17:42]: i would be perfectly satisfied if i could see a dump of hooks, so i can debug my configuration. That's all. I don't even think such a menu would be very useful: Hooks are for automated mail handling, so there is not much sense in setting, moving, editing them... except if you could save the hook-lists and load them on startup. so all it takes is a dump of the current list to a file. then you can look at it and rearrange it with your editor :unhook * and :source file from within. sounds fine. so, developers, how about a save-hook-list command? Sven
Re: save-hook - ~h vs ~C - patterns
* Adam Fields [EMAIL PROTECTED] [2002-06-05 19:25]: Actually, I've discovered that it is possible to set up a save-hook with a To: (or any header) match, using a pattern. Something like: save-hook ~h mutt-users@\\.mutt\\.org =mutt-users This works great! Combined with tagging threads, it makes it very fast to refile incoming messages. save-hook ~C [EMAIL PROTECTED] =mutt-users easier to read an understand - and maybe even faster limiting. Sven
Re: save-hook command problems in .muttrc
* munk [EMAIL PROTECTED] [2002-05-14 00.12 +0100]: Hi, Hello! I'm having trouble getting the 'save-hook' command to work properly in my .muttrc file. The current settings I have look as follows: save-hook mutt +mutt-users-list save-hook bugtraq +bugtraq-list Hmm. I'm not sure it works that way. Look for something specific in the mail (just like when writing a procmail recipe). I have: save-hook ~h owner-mutt-users +s.mutt-users save-hook (~f pal1|~f pal2) +s.pal1_and_2 The ~h tells mutt to look in the headers, and the ~f matches 'from'. Study the manual carefully to find more ways of doing this! HTH -- Martin Karlsson _ GPG/PGP public key: 0x9C924660 ASCII ribbon campaign ( ) -against HTML, vCards and X -proprietary attachments in e-mail / \ msg28083/pgp0.pgp Description: PGP signature
Re: save-hook command problems in .muttrc - pattern required
* Sven Guckes [EMAIL PROTECTED] [05/14/02 06:02]: * munk [EMAIL PROTECTED] [2002-05-13 23:14]: I'm having trouble getting the 'save-hook' command to work properly in my .muttrc file. The current settings I have look as follows: save-hook mutt +mutt-users-list save-hook bugtraq +bugtraq-list but whenever I press 's' to save a mail that includes 'mutt' or 'bugtraq' in the 'From' header field, the default 'save' folder selected is never 'mutt-users-list' or 'bugtraq-list' respectively. I can't work this out at all - does anyone else use the save-hook function with joy? make the first parameter a pattern: Yes. Otherwise, without explicitly specifying a pattern, it is be expanded according to the value of $default_hook. (~f %s !~P | (~P ~C %s) by default). -- Cedric
Re: save-hook command problems in .muttrc
On Tue, May 14, 2002 at 11:41:28AM +0200, Martin Karlsson wrote: Hmm. I'm not sure it works that way. Look for something specific in the mail (just like when writing a procmail recipe). I have: save-hook ~h owner-mutt-users +s.mutt-users save-hook (~f pal1|~f pal2) +s.pal1_and_2 The ~h tells mutt to look in the headers, and the ~f matches 'from'. Study the manual carefully to find more ways of doing this! Hey Martin, Thanks a lot for the reply - as you probably see from my reply ^^ in list I just about got it sussed out now and it works a treat with the ~t descriptor(?), searching for [mM]utt - thanx anyway! Jez :)) -- http://munkboxen.mine.nu - FreeBSD network http://www.freebsd.org
save-hook command problems in .muttrc
Hi, I'm having trouble getting the 'save-hook' command to work properly in my .muttrc file. The current settings I have look as follows: save-hook mutt +mutt-users-list save-hook bugtraq +bugtraq-list but whenever I press 's' to save a mail that includes 'mutt' or 'bugtraq' in the 'From' header field, the default 'save' folder selected is never 'mutt-users-list' or 'bugtraq-list' respectively. I can't work this out at all - does anyone else use the save-hook function with joy? Also I'm not sure of the difference between +file and =file - is there any??? Are = and + expanded to ~ in all cases??? Many thanks in advance, Jez -- http://munkboxen.mine.nu - FreeBSD network http://www.freebsd.org
Re: save-hook command problems in .muttrc - pattern required
* munk [EMAIL PROTECTED] [2002-05-13 23:14]: I'm having trouble getting the 'save-hook' command to work properly in my .muttrc file. The current settings I have look as follows: save-hook mutt +mutt-users-list save-hook bugtraq +bugtraq-list but whenever I press 's' to save a mail that includes 'mutt' or 'bugtraq' in the 'From' header field, the default 'save' folder selected is never 'mutt-users-list' or 'bugtraq-list' respectively. I can't work this out at all - does anyone else use the save-hook function with joy? make the first parameter a pattern: save-hook ~f mutt +mutt-users-list save-hook ~f bugtraq +bugtraq-list you might want to identify messages *to* mailing list by their distribution address, though: save-hook ~C address1 +mutt-users-list save-hook ~C address2 +bugtraq-list enjoy! Also I'm not sure of the difference between +file and =file - is there any??? yes - spelling. they are synonyms. however, +foo and =foo might not be synonyms to your shell... Are = and + expanded to ~ in all cases??? no - they are expanded to $folder. From: munk [EMAIL PROTECTED] and get a hair cut.. mink.. munk.. whatever. Sven
fcc-save-hook settings
Hi, all -- I have some hooks that set the fcc to a particular directory so that folks from one location (church or work or school or whatnot) are stored in their own directory. They look, for instance, like fcc-save-hook 'pattern|dave|pattern' =D.D/dir1/%_%O fcc-save-hook 'pattern|sue|pattern' =D.D/dir2/%_%O This is fine when I send to Dave or to Sue alone, but this breaks down when I send to Dave *and* Sue; Sue's hook takes effect as well and mutt tries to save my fcc in =D.D/dir2/dave (instead of in dir1). Other than addressing only to Dave and getting in to the message and then adding Sue later, is there any way to get around this? I really want to have the hook only effective for the first person listed, since that's where mutt should save the copy. TIA HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! msg24247/pgp0.pgp Description: PGP signature
fcc-save-hook
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi I've put this line in my rc file. fcc-save-hook . Outbox/%O and I'm getting an error when starting mutt, 'variable not found' and i can't find it in the manual. er, help? - -- Nick Wilson Tel:+45 3325 0688 Fax:+45 3325 0677 Web:www.explodingnet.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8PrnOHpvrrTa6L5oRAjO3AJ0d/J5kzqnLWna8goVcNPTtdOGAPACgjEKS KNnorhWYxL8z+aIBZEl/P/Y= =csk3 -END PGP SIGNATURE-
Re: fcc-save-hook
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 11-01-02 at 11:20 * Nick Wilson said Hi I've put this line in my rc file. fcc-save-hook . Outbox/%O and I'm getting an error when starting mutt, 'variable not found' and i can't find it in the manual. er, help? Alas it is true. I is not very clever. I was trying to 'set' it. Sorry folks :( - -- Nick Wilson Tel:+45 3325 0688 Fax:+45 3325 0677 Web:www.explodingnet.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8Pr/ZHpvrrTa6L5oRAvvxAJ4jzx9wtca56PxKu3b2l0kdlp97ewCgpb3D KK3LC14uG02lIeOM5iVa97A= =d6eq -END PGP SIGNATURE-
save-hook on Reply-To:
Hi, mutt-users! I got an e-mail from greetings.yahoo.com, and with this I noticed a strange behaviour. Don't know, if this is a bug^wflea or feature, but maybe it's interesting, though. The interesting header lines are: From: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] When saving (s) this mail, mutt's proposition is Save to mailbox ('?' for list): =foobar But I have a save-hook 'foobar@' =friends/foo_bar so I expected to save the mail to =friends/foo_bar, not to =foobar. Ok, the man page to save-hook says: filename will be used as the default filename if the message is From: an address matching regexp ..., and here it's the Reply-To: header line. But the default behaviour of s seems to have the Reply-To:-fallback, so why not the save-hook? -volker -- http://die-Moells.de/ * http://Stama90.de/ * http://ScriptDale.de/ For large values of one, one equals two, for small values of two. msg22314/pgp0.pgp Description: PGP signature
Re: This save-hook never works
* Charles Jie [EMAIL PROTECTED] [27-12-2001 05:32]: | I've tried to auto-move all messages To: or CC: to | [EMAIL PROTECTED] into a mailbox =mutt. But the following trial | failed: | | save-hook ~C mutt-users +mutt | | or | | save-hook ~Cmutt-users +mutt My muttrc says: save-hook '~C mutt.*@mutt\.org' =mutt I recall that this worked; don't use it anymore since I use procmail for sorting incoming messages. -- René Clerc - ([EMAIL PROTECTED]) During the Reagan-Mondale debates: Q: Do you feel that a person's age affects his ability to perform as president? Reagan: I refuse to make an issue out of my opponent's youth and inexperience. msg21912/pgp0.pgp Description: PGP signature
Re: This save-hook never works
Charlie -- ...and then Charles Jie said... % % Hi, Hello! % % I've tried to auto-move all messages To: or CC: to [EMAIL PROTECTED] into a mailbox =mutt. But the following trial failed: % % save-hook ~C mutt-users +mutt % % or % % save-hook ~Cmutt-users +mutt If you want to move messages from one mailbox to another and you refuse to use procmail, maildrop, or some other MDA to put them there in the first place (I don't know that that's the case, so here's the official Suggestion That You Use Those Instead, but let's move on to your question as stated), you need an mbox-hook. See the manual for more info. % % % Does ~C not work in save-hook? I didn't find enough info about save-hook. It's said (by default) save-hook check only To: and From: in different cases. I'm not sure ~C can change the rule or not. It does -- but it will save only the messages that you send. It doesn't move existing messages. % % expecting for help, % charlie HTH HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! msg21916/pgp0.pgp Description: PGP signature
Re: This save-hook never works
* Charles Jie [EMAIL PROTECTED] [27-12-2001 05:32]: | I've tried to auto-move all messages To: or CC: to ^ Aargh, I'm reading too fast! Use David's solution instead of mine (that is, try procmail first, mbox-hook afterwards!) Bye, -- René Clerc - ([EMAIL PROTECTED]) We were happily married for eight months. Unfortunately, we were married for four and a half years. -Nick Faldo msg21918/pgp0.pgp Description: PGP signature
Re: This save-hook never works
Rene -- ...and then Rene Clerc said... % % * Charles Jie [EMAIL PROTECTED] [27-12-2001 05:32]: % % | I've tried to auto-move all messages To: or CC: to % ^ % % Aargh, I'm reading too fast! Use David's solution instead of mine % (that is, try procmail first, mbox-hook afterwards!) Nyaah :-) % % Bye, % % -- % René Clerc - ([EMAIL PROTECTED]) % % We were happily married for eight months. Unfortunately, we were married % for four and a half years. % -Nick Faldo :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! msg21920/pgp0.pgp Description: PGP signature
This save-hook never works
Hi, I've tried to auto-move all messages To: or CC: to [EMAIL PROTECTED] into a mailbox =mutt. But the following trial failed: save-hook ~C mutt-users +mutt or save-hook ~Cmutt-users +mutt Does ~C not work in save-hook? I didn't find enough info about save-hook. It's said (by default) save-hook check only To: and From: in different cases. I'm not sure ~C can change the rule or not. expecting for help, charlie
fcc-save-hook
Hi, I couldn't find too much helpful stuff through google or the archives, so here goes... I'm trying to construct a fcc-save-hook thingamajig that will save all outgoing mail into a file, except for mail sent to certain lists etc. Right now I have: fcc-save-hook . +sent-mail/sent-mail-`date +%d-%b-%Y` ...which sends all my outgoing mail to ~/Mail/sent-mail/sent-mail-[day-month-year] Would it work if I added, for instance, these lines: fcc-save-hook '~C [EMAIL PROTECTED]' +sent-mail/sent-mail-hackers-`date +%d-%b-%Y` fcc-save-hook '~C [EMAIL PROTECTED]' +sent-mail/sent-mail-hackers-`date +%d-%b-%Y` fcc-save-hook '~C [EMAIL PROTECTED]' +sent-mail/sent-mail-current-`date +%d-%b-%Y` Basically I just want all mail going to certain lists / people saved in certain places, and everything else saved in some default place... Thanks. -- -Munish
Re: fcc-save-hook
Munish -- ...and then Munish Chopra said... % % Hi, Hello! % % I couldn't find too much helpful stuff through google or the archives, % so here goes... At least you looked first; thanks! :-) % % I'm trying to construct a fcc-save-hook thingamajig that will save all % outgoing mail into a file, except for mail sent to certain lists etc. % % Right now I have: % % fcc-save-hook . +sent-mail/sent-mail-`date +%d-%b-%Y` % % ...which sends all my outgoing mail to % ~/Mail/sent-mail/sent-mail-[day-month-year] Man, that must play hell with your sorting :-) Why not Y-M-D instead, I wonder? % % Would it work if I added, for instance, these lines: % % fcc-save-hook '~C [EMAIL PROTECTED]' % +sent-mail/sent-mail-hackers-`date +%d-%b-%Y` Looks fine to me. Why not just try it and see what you get? You don't even have to really send any email; just put the hooks in and then start to send some mail and check the Fcc: value at the compose menu and then abort the message and move on to the next test case (you, a friend, a possible regexp match like hackers@yourbox, and the lists themselves). HTH HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! msg21660/pgp0.pgp Description: PGP signature
Re: fcc-save-hook
On Mon, Dec 17, 2001 at 08:12:08AM -0500, David T-G wrote: % % fcc-save-hook . +sent-mail/sent-mail-`date +%d-%b-%Y` % % ...which sends all my outgoing mail to % ~/Mail/sent-mail/sent-mail-[day-month-year] Man, that must play hell with your sorting :-) Why not Y-M-D instead, I wonder? Umm...yeah. That was just plain stupid. Thanks ;) While I'm at it, is there some kind of hook for moving deleted mail around? I know, I didn't check this time...so pointers are welcome! -- -Munish
Re: fcc-save-hook
Munish -- ...and then Munish Chopra said... % % On Mon, Dec 17, 2001 at 08:12:08AM -0500, David T-G wrote: % % % % fcc-save-hook . +sent-mail/sent-mail-`date +%d-%b-%Y` % % % % ...which sends all my outgoing mail to % % ~/Mail/sent-mail/sent-mail-[day-month-year] % % Man, that must play hell with your sorting :-) Why not Y-M-D instead, % I wonder? % % Umm...yeah. That was just plain stupid. Thanks ;) No problem :-) I notice that sort of thing, whether I *should* or not... % % While I'm at it, is there some kind of hook for moving deleted mail % around? I know, I didn't check this time...so pointers are welcome! Um, how do you mean? Once it's deleted, it's gone, so there isn't much to move :-) Do you mean moving mail that's flagged for deletion but has not been purged? Cedric Duval has a trash-folder patch that provides recycle-bin-like recovery functionality that you might find interesting. If that's not it, please elucidate. % % -- % -Munish HTH HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! msg21662/pgp0.pgp Description: PGP signature
Re: fcc-save-hook
On Mon, Dec 17, 2001 at 08:26:06AM -0500, David T-G wrote: % % While I'm at it, is there some kind of hook for moving deleted mail % around? I know, I didn't check this time...so pointers are welcome! Um, how do you mean? Once it's deleted, it's gone, so there isn't much to move :-) Do you mean moving mail that's flagged for deletion but has not been purged? Cedric Duval has a trash-folder patch that provides recycle-bin-like recovery functionality that you might find interesting. If that's not it, please elucidate. No, actually I think that's exactly what I meant. I'll look for it. Thanks. -- -Munish
Re: fcc-save-hook
Munish -- ...and then Munish Chopra said... % % On Mon, Dec 17, 2001 at 08:26:06AM -0500, David T-G wrote: % % Cedric Duval has a trash-folder patch that provides recycle-bin-like % recovery functionality that you might find interesting. ... % % No, actually I think that's exactly what I meant. I'll look for it. His site is http://cedricduval.free.fr/mutt/ and you can also find it at http://mutt.justpickone.org/mutt-build-cocktail in the file listing. % Thanks. HTH! % % -- % -Munish :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! msg21668/pgp0.pgp Description: PGP signature
save-hook limitation
Hi all, I want to specify save-hook based on a particular value in the subject field say CSCdv12334. I want mutt to specify CSCdv12334 as the file name when I choose to save this mail. I tried the following, based on my little knowledge of extended regular expressions. In ERE \1 refers to the first regular expression matched. But the following line in my muttrc did not give me the expected results. save-hook ~s \(CSC..[0-9]+\) +open/\1 Could somebody help me with this. Thanks in advance, Prasath
Still can't get folder-hook, save-hook right...
Hi Everyone, I'm starting to get a hang of things, but a few things still elude me. I have gone through the archives and actually fixed a few problems.. so I really have been trying.. :) But I'm down to getting email sent from a folder to be saved to it's own folder.. but I can't get it to do it. I have a default save-hook . =sent, with a folder-hook latter on. Also, I can't get the REply-to field right for this folder either.. which is a real pain. My hooks etc follow: # Setup the rest as defaults. folder-hook .set signature=~/.signature folder-hook .unmy_hdr * folder-hook .my_hdr From: Peter Lavender [EMAIL PROTECTED] folder-hook .my_hdr Reply-To: [EMAIL PROTECTED] folder-hook .my_hdr X-Operating-System: Linux/`uname -r` (`uname -m`) folder-hook .my_hdr X-Uptime: \`uptime\` save-hook .=sent # Maxware config folder-hook maxware unmy_hdr * folder-hook maxware set sort=reverse-date-received #folder-hook maxware reply-to= folder-hook maxware my_hdr From: Peter Lavender [EMAIL PROTECTED] folder-hook maware my_hdr Reply-To: [EMAIL PROTECTED] folder-hook maxware my_hdr Organisation: MaXware Australia #send-hook maxware unmy_hdr X-Operating-System: Linux/`uname -r` (`uname -m`) #send-hook maxware unmy_hdr X-Uptime: \`uptime\` folder-hook maxware set signature=~/mail/maxware.sig folder-hook maxware 'unhook save-hook; save-hook ~A =maxware-sent' Your time and assistance are much appreciated. Regards, Pete. -- Due to a lack of imagination, this signature will remain under construction indefinately.
default_hook and fcc-save-hook incompatible?
msg.pgp
Re: Default save-hook
Hi Andrei! On Thu, 09 Aug 2001, Andrei Zmievski wrote: I have a few save-hooks set up to save my mailing list stuff into different folders. However, I'd like to set up a default save-hook that would save anything that is not caught by the other save-hooks into another directory according to the From: address. Example: if I have mail from [EMAIL PROTECTED] I want this default hook to save it to =people/foo, and if it's from [EMAIL PROTECTED], it should go into =people/jester. Is it possible to do this with mutt? have you tried: save-hook '~f [EMAIL PROTECTED]' =people/foo save-hook '~f [EMAIL PROTECTED]' =people/jester -- teodor
Re: Default save-hook
On Mon, 13 Aug 2001, [EMAIL PROTECTED] wrote: have you tried: save-hook '~f [EMAIL PROTECTED]' =people/foo save-hook '~f [EMAIL PROTECTED]' =people/jester Hi, Of course I can do that for each individual email address, but it would suck. I need to know if there's a way to do it for any email address that's not already caught by other save-hooks. -Andrei As I was going up the stair, I met a man who wasn't there. He wasn't there again today. I wish, I wish he'd stay away. -Hughes Mearns
Re: Default save-hook
Quoting Andrei Zmievski [EMAIL PROTECTED], who wrote: Hi, Of course I can do that for each individual email address, but it would suck. I need to know if there's a way to do it for any email address that's not already caught by other save-hooks. Did you look at save_name? I think it also interacts with reverse_alias. Sam -- Sam Roberts [EMAIL PROTECTED]
Re: Default save-hook
On Mon, 13 Aug 2001, Sam Roberts wrote: Of course I can do that for each individual email address, but it would suck. I need to know if there's a way to do it for any email address that's not already caught by other save-hooks. Did you look at save_name? I think it also interacts with reverse_alias. I did take a look at it. Actually even without save_name turned on, I'm very close to what I want. Right now if I have email from [EMAIL PROTECTED] and I hit 'save', it prompts me for where to save it to and the default location is =joeman. What I want it to be is =people/joeman.. -Andrei The human brain is a wonderful thing. It starts working the moment you are born, and never stops until you stand up to speak in public. -- Sir George Jessel
Re: Default save-hook
On 010813, at 09:47:00, Andrei Zmievski wrote [...] Right now if I have email from [EMAIL PROTECTED] and I hit 'save', it prompts me for where to save it to and the default location is =joeman. What I want it to be is =people/joeman.. Perhaps 'save-hook . =people/%u' or 'save-hook !~l =people/%u' will do what you want. -- David Ellement
Re: Default save-hook
On Mon, Aug 13, 2001 at 08:24:25AM -0700, David Ellement wrote: : On 010813, at 09:47:00, Andrei Zmievski wrote : : [...] Right now if I have email from : [EMAIL PROTECTED] and I hit 'save', it prompts me for where to save it to : and the default location is =joeman. What I want it to be is : =people/joeman.. : : Perhaps 'save-hook . =people/%u' or 'save-hook !~l =people/%u' will : do what you want. Is '%u' documented in the Mutt 1.2.5 docs as a valid save-hook sequence? -- Eugene Lee [EMAIL PROTECTED]
Re: Default save-hook
Eugene -- ...and then Eugene Lee said... % On Mon, Aug 13, 2001 at 08:24:25AM -0700, David Ellement wrote: % : On 010813, at 09:47:00, Andrei Zmievski wrote % : % : [...] Right now if I have email from % : [EMAIL PROTECTED] and I hit 'save', it prompts me for where to save it to % : and the default location is =joeman. What I want it to be is % : =people/joeman.. % : % : Perhaps 'save-hook . =people/%u' or 'save-hook !~l =people/%u' will % : do what you want. % % Is '%u' documented in the Mutt 1.2.5 docs as a valid save-hook sequence? Now that you know what it is and searching is trivial, you should look it up for yourself and see. It is. Well, it's documented in index_format as well as folder_format and pgp_entry_format, though it has different meanings in attach_format and status_format; I would figure that those (especially index_format, which has just about everything in it) would be good places to start when looking for such things. You might also look at %O -- which is also similarly documented. % % -- % Eugene Lee % [EMAIL PROTECTED] :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! PGP signature
Re: Default save-hook
On Mon, 13 Aug 2001, David Ellement wrote: [...] Right now if I have email from [EMAIL PROTECTED] and I hit 'save', it prompts me for where to save it to and the default location is =joeman. What I want it to be is =people/joeman.. Perhaps 'save-hook . =people/%u' or 'save-hook !~l =people/%u' will do what you want. It works but it disables all other save-hooks I have. For example: save-hook . =people/%u save-hook ~Lphp-dev +OpenSource/PHP If I have a message from [EMAIL PROTECTED] that he sent to php-dev list and I want to save it, shouldn't it be caught by the second save-hook? Because with this setup it wants to be saved to =people/richp. -Andrei Windows 2000 is certified not to crash more than once a day, so what is the bootup time, 24 hours? -- Sam Liddicott
Re: Default save-hook
On Mon, Aug 13, 2001 at 11:41:48AM -0400, David T-G wrote: : ...and then Eugene Lee said... : % : % Is '%u' documented in the Mutt 1.2.5 docs as a valid save-hook sequence? : : Now that you know what it is and searching is trivial, you should look : it up for yourself and see. : : It is. Well, it's documented in index_format as well as folder_format : and pgp_entry_format, though it has different meanings in attach_format : and status_format; I would figure that those (especially index_format, : which has just about everything in it) would be good places to start when : looking for such things. I don't see anything in the Mutt 1.2.5 docs that say, Here are the valid percent sequences that are recognized and expanded by save-hooks. If it's there, it's either written in a very non-intuitive manner or I'm going blind. :) If it's not there, maybe it's a Mutt 1.3 feature? -- Eugene Lee [EMAIL PROTECTED]
Re: Default save-hook
On 010813, at 10:50:53, Andrei Zmievski wrote Perhaps 'save-hook . =people/%u' or 'save-hook !~l =people/%u' will do what you want. It works but it disables all other save-hooks I have. For example: save-hook . =people/%u save-hook ~Lphp-dev +OpenSource/PHP Since mutt uses the first matching save-hook, a default save-hook needs to be appear last. -- David Ellement
Re: Default save-hook
On Mon, 13 Aug 2001, David Ellement wrote: Since mutt uses the first matching save-hook, a default save-hook needs to be appear last. Woohoo, it works! Thank you. -Andrei The galaxy is, in other words, an immensely, intrinsically, and inexhaustibly interesting place. -- Iain M. Banks
fcc-save-hook selection...
I use quite a few fcc-save-hooks (in mutt v1.2.5), and I've noticed something which makes them almost useless now. The Fcc: seems to be set according to the first sequential address match. This would be fine if mutt compared the fcc-save-hook to the To: field first, but it seems to consider the To: and Cc: fields equal. Which means, most of the time, my Fcc: is set according to one of the recipients in the Cc: field! I have to manually reset the Fcc: field most of the time. Does anyone have a patch or something to fix this behavior? i.e. Match on the To: field, and if if there's no match, then consider the Cc: field (and probably Bcc: after that). Thanks, js. -- Jean-Sebastien Morisset, Sr. UNIX Administrator [EMAIL PROTECTED] Personal Homepage http://jsmoriss.mvlan.net/; UNIX, Internet, Homebrewing, Cigars, PCS, PalmOS, CP2020 and other Fun Stuff... This is Linux Country. On a quiet night you can hear Windows NT reboot!
Default save-hook
I have a few save-hooks set up to save my mailing list stuff into different folders. However, I'd like to set up a default save-hook that would save anything that is not caught by the other save-hooks into another directory according to the From: address. Example: if I have mail from [EMAIL PROTECTED] I want this default hook to save it to =people/foo, and if it's from [EMAIL PROTECTED], it should go into =people/jester. Is it possible to do this with mutt? -Andrei The only true currency in this bankrupt world is what we share with each other when we're uncool. -- Lester Bangs, from the film 'Almost Famous'
Re: regexps in fcc-hook, save-hook
On 2001-06-26 at 16:59:35, Zane Crawford warbled: What I'm trying to do, is make it such that by default, if no other rule defines how something will be saved, that it offers USER (from [EMAIL PROTECTED]) as the folder name. Thanks! But this is the default behaviour anyway, isn't it? Backrefs would be nice, though. -- I've had a perfectly wonderful evening. But this wasn't it. - Groucho Marx I prefer encrypted mail (see headers for PGP key) Why encrypt? http://www.heureka.clara.net/sunrise/pgpwhy.htm PGP signature
Re: default save-hook
[I originally sent this on Wed, May 30, 2001 at 03:18:41PM -0700, but it apparently didn't make it. We've been having terrible network problems all day.] On Wed, May 30, 2001 at 08:51:59PM +0200, Jeroen Valcke wrote: All of a sudden my default save-hook doesn't work anymore. But I have the necessary line in my .muttrc folder-hook ! save-hook . +Archief What's wrong? With this line, folder-hook ! save-hook . +Archief you are adding a save-hook to mutt's list of save-hooks every time you enter the ! folder. Since mutt selects the first save-hook whose pattern matches, once you have a save-hook with a . pattern in the list, adding further save-hooks will have no effect. So my guess is that something defines a different default save-hook before your folder-hook takes effect. One solution would be a folder- hook like this folder-hook . unhook save-hook ahead of your other folder-hooks and save-hooks. HTH, Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | RF Communications PGU http://www.spocom.com/users/gjohnson/mutt/ | Spokane, Washington, USA
Re: Save Hook Problem
* On [010508 06:29] Dale Morris [EMAIL PROTECTED] wrote: [...]But I'm having a hard time getting mutt to put a copy of the message *I've sent* to the list in my =out mailbox. Here's what I have in my .muttrc thus far: save-hook '~C mutt-users' =support fcc-save-hook '~C mutt-users' =out [...] I don't have anything quite as complicated, using 1.2.5i, I save a copy of my messages to the list with: fcc-hook '~t mutt-users' =muttsent the fcc-save-hook is if you want the save-hook and the fcchook to be the same for a particular pattern, saves on typing. That might be your problem. hope that helps Lawrence -- Lawrence Mitchell | http://members.tripod.co.uk/EVSvienna/ [EMAIL PROTECTED] | All my friends and I are crazy. That's the only thing that keeps us sane.
Re: Save Hook Problem
Lawrence Mitchell [[EMAIL PROTECTED]] wrote: fcc-hook '~t mutt-users' =muttsent the fcc-save-hook is if you want the save-hook and the fcchook to be the same for a particular pattern, saves on typing. That might be your problem. hope that helps thanks, I'll give it try.
Save Hook Problem
Finally, after a long time with mutt, I've started using save-hooks. I'm trying to save list messages to a =support mailbox and I've got that. But I'm having a hard time getting mutt to put a copy of the message *I've sent* to the list in my =out mailbox. Here's what I have in my .muttrc thus far: save-hook '~C mutt-users' =support fcc-save-hook '~C mutt-users' =out save-hook ~l =%Osave-hook send-hook ~l 'push f^Uenter I'm using 1.3.15i version of mutt.
Save hook for multiple To: From: addressees/senders
Greetings, Is there an easy way to define a save hook for multiple people on either the To:/Cc: or From: list? I'd like to save all the mail from family members for example in one folder. Right now I'm doing the following save-hook '(~f brother|\ ~C brother|\ ~f sister1|\ ~C sister1|\ ~f sister2|\ ~C sister2)' +family but it seems rather inefficient especially for a long list of people. Can this be done with aliases? Rod -- Rod Pike rodneyp @ utanet.at
RE: debian-user save hook
see http://www.mutt.org/doc/manual/manual-4.html#ss4.2 Good stuff! HTH, George -Original Message- From: Dale Morris [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 01, 2001 11:17 PM To: [EMAIL PROTECTED] Subject: Re: debian-user save hook I do it like this in my muttrc, is there a better way, maybe one that works for all subscribed lists with a single command? subscribe mutt-users@ fcc-save-hook '~C mutt-users' =mutt-users What does '~C mean here? I want to save messages from from +debian-user mailbox to a +support mailbox subscribe debian@ fcc-save-hook '~C debian'=support ?? I'm confused. subscribe sawfish@ fcc-save-hook '~C sawfish'=sawfish Sam -- Sam Roberts [EMAIL PROTECTED]
Re: debian-user save hook
man muttrc ~C EXPR message is either to: or cc: EXPR So, messages with debian in To: or Cc: headers will go to =support mailbox. igor On Tue 01 May 2001, Dale Morris wrote: I do it like this in my muttrc, is there a better way, maybe one that works for all subscribed lists with a single command? subscribe mutt-users@ fcc-save-hook '~C mutt-users' =mutt-users What does '~C mean here? I want to save messages from from +debian-user mailbox to a +support mailbox subscribe debian@ fcc-save-hook '~C debian'=support ?? I'm confused. subscribe sawfish@ fcc-save-hook '~C sawfish'=sawfish Sam -- Sam Roberts [EMAIL PROTECTED]
debian-user save hook
I'm very pleased with mutt, it's a great program. Particularly the way it handles high volumes of mail. One question though: How do I set up a save hook for the debian-user list so that it will save selected messages to a +support mailbox? I tried the from [EMAIL PROTECTED] and that doesn't work.. Any suggestions? thanks
Re: debian-user save hook
Quoting Dale Morris [EMAIL PROTECTED], who wrote: I'm very pleased with mutt, it's a great program. Particularly the way it handles high volumes of mail. One question though: How do I set up a save hook for the debian-user list so that it will save selected messages to a +support mailbox? I tried the from [EMAIL PROTECTED] and that doesn't work.. Any suggestions? I do it like this in my muttrc, is there a better way, maybe one that works for all subscribed lists with a single command? subscribe mutt-users@ fcc-save-hook '~C mutt-users' =mutt-users subscribe sawfish@ fcc-save-hook '~C sawfish'=sawfish Sam -- Sam Roberts [EMAIL PROTECTED]
Re: debian-user save hook
I do it like this in my muttrc, is there a better way, maybe one that works for all subscribed lists with a single command? subscribe mutt-users@ fcc-save-hook '~C mutt-users' =mutt-users subscribe sawfish@ fcc-save-hook '~C sawfish'=sawfish In addition to the subscribe command, I use save-hook ~l =%O send-hook ~l 'push f^Uenter'
Re: Save-hook inside a folder-hook
On Sat, Mar 24, 2001 at 12:14:55AM -0800, Gary Johnson wrote: On Fri, Mar 23, 2001 at 05:56:41PM -0700, Duke Normandin wrote: I have the following that doesn't work: folder-hook "IN.mutt" 'save-hook * =mutt' When I'm reading "IN.mutt" and go to save a message, "IN.mutt" keeps coming up as the default for that folder. Any ideas? Tia.. I see a couple of problems here. The first is that '*' in a pattern means to match the preceding item zero or more times. If you want to match everything, use '.' or '~A'. Another is that since hooks accumulate, you are adding a save-hook to the list every time you enter a folder; and since mutt uses the first save-hook in its list whose pattern matches, a save-hook whose pattern matches everything will stop mutt from finding any subsequent save-hooks. So I think this might work, but I haven't tried it: folder-hook "IN.mutt" 'unhook save-hook; save-hook ~A =mutt' Seems so obvious that it ticks me off that I wasn't able to clue-in while reading the Mutt Manual ;,) After my post (above), I did find the stuff about '*' vs '.' while searching the Mutt list archives -- but never stumbled on 'unhook'. Thanks! BTW -- I appreciate the way you respond to e-mail, i.e. your text "follows" the quoted portions. So many people don't know, or don't care! -- -duke Calgary, Alberta, Canada
Save-hook inside a folder-hook
I have the following that doesn't work: folder-hook "IN.mutt" 'save-hook * =mutt' When I'm reading "IN.mutt" and go to save a message, "IN.mutt" keeps coming up as the default for that folder. Any ideas? Tia.. -- -duke Calgary, Alberta, Canada
Re: save-hook question
yes, i have considered prcomail and other such filtering, but i would like the mail to stay in my inbox, and when i have read it, i like to hit "s" "enter"...lazy and quick... On Fri, Jan 12, 2001 at 11:00:23PM -0500, John P. Verel wrote: On 01/12/01, 10:27:19PM -0500, Okan Demirmen - mutt wrote: newbie-type: some patience required, unless stupidity is too obvious... can a save-hook have a regex in it?...if so, i might be totally clueless... i am trying to save mail to folders, whose names are based on a mailing list...wihtout creating a save-hook for every single mailing list i get the matching portion ok, but can't seem to get the save folder part... anyone help??.. thanks, okan Have you looked at procmail to filter into folders? Much easier. -- John P. Verel Norwalk, CT
save-hook question
newbie-type: some patience required, unless stupidity is too obvious... can a save-hook have a regex in it?...if so, i might be totally clueless... i am trying to save mail to folders, whose names are based on a mailing list...wihtout creating a save-hook for every single mailing list i get the matching portion ok, but can't seem to get the save folder part... anyone help??.. thanks, okan
turning save-hook into fcc-save-hook
Awhile ago, someone posted an extremely helpful save-hook: save-hook . "+%(%Y%m)/%a" # Save mails to date-received/user@host I'd like to turn that into an fcc-save-hook, but fcc doesn't work right. I'm missing something obvious, but what? -- Lance Simmons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - To go straight to the deepest depth, I went for Hegel; what unclear thoughtless flow of words I was to find there! My unlucky star led me from Hegel to Schopenhauer ... Even in Kant there were many things that I could grasp so little that given his general acuity of mind I almost suspected that he was pulling the reader's leg or was even an imposter. -- Ludwig Boltzman
save-hook for not just the sender?
Alright, sorry if this is an FAQ; but I did not seem to find anything about this in either the manual or the mailing list archives. I'm using mutt-1.2.5i. save-hook works perfectly alright, when filtering by the sender's address; however, I want to filter by something more than that - either the mail's subject (for mailing lists which add a token to the message subject), or by some string found in the message header (for e.g. Majordomo-run lists which may be identified by owner-listname in the header). Is there a way to do something similar to save-hook, but use an expression similar to the one used in tagging? Something like "~h owner-freebsd-bugs" or "~s BUGTRAQ"? And yes, I know I can do this with procmail and mutt's multiple inboxes support; is there an easier way though? :) Thanks in advance for any pointers to the source, the manual, the mailing list archives, or anything else which goes to show the futility of me attempting mutt configuration before lunch :) G'luck, Peter -- This sentence contradicts itself - or rather - well, no, actually it doesn't!
RE: save-hook for not just the sender?
Is there a way to do something similar to save-hook, but use an expression similar to the one used in tagging? Something like "~h owner-freebsd-bugs" or "~s BUGTRAQ"? Yeah - it's called 'procmail'. -suresh
Re: save-hook for not just the sender?
Peter Pentchev [EMAIL PROTECTED] wrote on Thu, 26 Oct 2000: Is there a way to do something similar to save-hook, but use an expression similar to the one used in tagging? Something like "~h owner-freebsd-bugs" or "~s BUGTRAQ"? Did you actually try this? I think save-hook "~s BUGTRAQ" +bugtraq ought to work. Regards, Mikko -- // Mikko Hänninen, aka. Wizzu // [EMAIL PROTECTED] // http://www.iki.fi/wiz/ // The Corrs list maintainer // net.freak // DALnet IRC operator / // Interests: roleplaying, Linux, the Net, fantasy scifi, the Corrs / Who has the user's manual for Spaceship Earth -- please return it AT ONCE!
save-hook drama
I can't figure out for the life of me why this doesn't work save-hook ~s\\fm-news =freshmeat_list Mutt refuses to save in the mbox 'freshmeat_list' but instead only 'noreply' Message headers below... To: [EMAIL PROTECTED] From: freshmeat daemon [EMAIL PROTECTED] Date: Fri, 20 Oct 2000 23:59:01 -0400 (EDT) Subject: [fm-news] newsletter for Friday, October 20th Reply-To: [EMAIL PROTECTED] -- Darrin Mison -- Say something you'll be sorry for, I love receiving apologies. PGP signature
Re: save-hook drama
On Sat, Oct 21, 2000 at 03:00:09PM +1000, Darrin Mison wrote: I can't figure out for the life of me why this doesn't work save-hook ~s\\fm-news =freshmeat_list Mutt refuses to save in the mbox 'freshmeat_list' but instead only 'noreply' Message headers below... To: [EMAIL PROTECTED] From: freshmeat daemon [EMAIL PROTECTED] Date: Fri, 20 Oct 2000 23:59:01 -0400 (EDT) Subject: [fm-news] newsletter for Friday, October 20th Reply-To: [EMAIL PROTECTED] Hi, To me, that looks to be a malformed pattern for save-hook. Does this work better for you: save-hook '~s fm-news' =freshmeat_list The way you have it specified, I think it is going to look for a mail address containing "~s\fn-news", but I'm not sure about that. -Harold -- "Life sucks, deal with it!"
Re: save-hook drama
On Saturday, 21 October 2000 at 15:00, Darrin Mison wrote: I can't figure out for the life of me why this doesn't work save-hook ~s\\fm-news =freshmeat_list Mutt refuses to save in the mbox 'freshmeat_list' but instead only 'noreply' Message headers below... what are your other save-hooks? To: [EMAIL PROTECTED] From: freshmeat daemon [EMAIL PROTECTED] Date: Fri, 20 Oct 2000 23:59:01 -0400 (EDT) Subject: [fm-news] newsletter for Friday, October 20th Reply-To: [EMAIL PROTECTED] -- Darrin Mison -- Say something you'll be sorry for, I love receiving apologies. PGP signature
Re: save-hook drama
On Sat, Oct 21, 2000 at 03:00:09PM +1000, Darrin Mison wrote: I can't figure out for the life of me why this doesn't work save-hook ~s\\fm-news =freshmeat_list Subject: [fm-news] newsletter for Friday, October 20th Maybe because there is no '\fm-news' in the subject. Be careful with backslashing. Try: save-hook '~s fm-news' =freshmeat_list -- Tommi Komulainen [EMAIL PROTECTED] PGP signature
Re: save-hook drama
Darrin -- ...and then Darrin Mison said... % I can't figure out for the life of me why this doesn't work % % save-hook ~s\\fm-news =freshmeat_list What's with the \\ in your expression? It seems to me that that will match the literal expression \fm-news which doesn't seem to be in the headers you sent... What about something like save-hook ~s fm-news =freshmeat_list or (if you insist) save-hook ~s \[fm-news\] =freshmeat_list instead? :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.bigfoot.com/~davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! The "new millennium" starts at the beginning of 2001. There was no year 0. PGP signature
Re: save-hook drama
Darrin Mison muttered: I can't figure out for the life of me why this doesn't work save-hook ~s\\fm-news =freshmeat_list ^^ This would refer to a litaral '\' which is not in the header you quoted. Subject: [fm-news] newsletter for Friday, October 20th Try save-hook '~s fm-news' =freshmeat_list HTH, Michael -- This file will self-destruct in five minutes. PGP-fingerprint: DECA E9D2 EBDD 0FE0 0A65 40FA 5967 ACA1 0B57 7C13
Re: save-hook drama
Darrin Mison [EMAIL PROTECTED] wrote on Sat, 21 Oct 2000: I can't figure out for the life of me why this doesn't work save-hook ~s\\fm-news =freshmeat_list It's supposed to be: save-hook '~s fm-news' =freshmeat_list Or at least, that's how I'd write it. :-) Mikko -- // Mikko Hänninen, aka. Wizzu // [EMAIL PROTECTED] // http://www.iki.fi/wiz/ // The Corrs list maintainer // net.freak // DALnet IRC operator / // Interests: roleplaying, Linux, the Net, fantasy scifi, the Corrs / Conscience is what hurts when everything else feels good.
Re: save-hook drama
Interestingly enough all of these work. I don't remember where I got the syntax from. save-hook ~t\\SECURITYPORTAL =security_portal save-hook ~t\\science-text =tips save-hook ~t\\science-html =tips save-hook ~s\\H-GEN =humbug save-hook ~s\\H-CHAT =humbug save-hook ~s\\H-ANNOUNCE =humbug save-hook ~t\\mutt-users =mutt-users save-hook ~t\\lsb-discuss =lsb save-hook ~t\\proofreaders =gnu_proofreaders save-hook ~f\\latvian_goat_thrower =friends/andrew As Harold Oga[EMAIL PROTECTED] once said: Hi, To me, that looks to be a malformed pattern for save-hook. Does this work better for you: save-hook '~s fm-news' =freshmeat_list The way you have it specified, I think it is going to look for a mail address containing "~s\fn-news", but I'm not sure about that. -- Darrin Mison -- %DCL-MEM-BAD, bad memory VMS-F-PDGERS, pudding between the ears PGP signature
save-hook works, but...
Hi, I'm running mutt 1.2.5 and I have something really odd. I have two save hooks: save-hook sgi.com =work save-hook cray.com =work My intention is to have mail from those addresses default to my work mailbox. When I hit 's' I get the following at the bottom of the screen: Save to mailbox ('?' for list): =work This is what I'm expecting. However, when I hit return to actually save, the line clears and nothing happens -- as if I aborted the save. Yet when I hit ctrl-J instead of return, it accepts that I want to save it to my work mailbox. Am I trying to use this in an unexpected way? This seems really odd to me. Dean
Re: save-hook works, but...
Dean Luick [EMAIL PROTECTED] wrote on Thu, 14 Sep 2000: Save to mailbox ('?' for list): =work This is what I'm expecting. However, when I hit return to actually save, the line clears and nothing happens -- as if I aborted the save. Yet when I hit ctrl-J instead of return, it accepts that I want to save it to my work mailbox. Am I trying to use this in an unexpected way? This seems really odd to me. The problem is likely not at all related to your save-hooks. Does this happen even with other emails, when you press s to save them? Does entering text at other prompts work? My guess would be that there's something wrong with your keyboard definitions. The active keymap at that save-prompt is the editor.. Unfortunately there is no way in Mutt to view the editor keymap definitions. :-( Mikko -- // Mikko Hänninen, aka. Wizzu // [EMAIL PROTECTED] // http://www.iki.fi/wiz/ // The Corrs list maintainer // net.freak // DALnet IRC operator / // Interests: roleplaying, Linux, the Net, fantasy scifi, the Corrs / Zimmerman's Law of Complaints: Nobody notices when things go right.
save-hook
Hello, I've: save-hook . '' .. some more save-hooks here ... save-hook '~s .*\[incr\ Tcl\].*' +itcl how should the first line look like so that I don't get itcl as default hook ? -- Johannes
save-hook not working
I screwed something up - I've reworked a few things including adding $alternates for my email addresses, and now my save-hook's don't work. Now, I like my index_format because - if I sent it, it shows the address that I sent it to - if sent to me, it shows the address it was sent from but whatever address that resolves to, that address seems to be used with the save-hook regex. Here is a message sent to mutt-users that appears in my index: 15 sL Jul 18 David T-G[davidtg ] pgp_encrypt_self with 1.2.4 and g Here is a message that I sent to mutt-users that appears in my index: 17 F Jul 19 To mutt-users@mu [mutt-user] index_format %F and "sent" mailbo Here is my mutt-users save-hook: save-hook mutt-users =Mutt-users When I try to save a message that one of you sent to mutt-users, it tries to save the message under your "username", instead of to the Mutt-users folder where I want it to go. When I try to save a message that I sent to mutt-users, the save hook works and properly asks me if I want to save that message in =Mutt-users. What did I screw up? How do I get my save-hooks to work again? TIA. -- Hardy Merrill Mission Critical Linux, LLC http://www.missioncriticallinux.com
Re: save-hook not working
Hardy Merrill muttered: My muttrc has this format for the "index_format" set index_format="%3C%?M?+ ?%Z %[%b %d] %-16.16F [%-9.9O] %-33.33s (%4l)" I screwed something up - I've reworked a few things including adding $alternates for my email addresses, and now my save-hook's don't work. 15 sL Jul 18 David T-G[davidtg ] pgp_encrypt_self with 1.2.4 and g 17 F Jul 19 To mutt-users@mu [mutt-user] index_format %F and "sent" mailbo save-hook mutt-users =Mutt-users When I try to save a message that one of you sent to mutt-users, it tries to save the message under your "username", instead of to the Mutt-users folder where I want it to go. When I try to save a message that I sent to mutt-users, the save hook works and properly asks me if I want to save that message in =Mutt-users. Since David's message ain't 'To mutt-users' you problaby forgot to subscribe [EMAIL PROTECTED] It seems that mutt-users is not a known mailing list. HTH, Michael -- The road to hell is paved with NAND gates. -- J. Gooding PGP-fingerprint: DECA E9D2 EBDD 0FE0 0A65 40FA 5967 ACA1 0B57 7C13
Re: Help on save-hook please
On Fri, Jun 30, 2000 at 03:36:56PM +0300 or thereabouts, Mikko Hänninen wrote: Richard Curnow [EMAIL PROTECTED] wrote on Fri, 30 Jun 2000: Is mbox-hook what you're after? Yes, that's what I meant. I thought I *knew* there was a way to do it, just forgot what it was. Then got confused by the $mbox explanation which doesn't talk about mbox-hook at all.. Oops again? :-) Okay if you read my reply to your first reply I've already discovered, and using, the mbox-hook to save read messages. Thought I'd let you know.
Re: Help on save-hook please
Rino Mardo [EMAIL PROTECTED] wrote on Fri, 30 Jun 2000: Hmm, that could be the reason why I'm getting a repetition operand invalid. Yes. :-) * means "any number (0 or more) of the character just before", so using * alone doesn't make sense, as there is no character just before it. * works as a wildcard for "anything" in some cases in the Mutt parser, but those cases have been special-cased and they aren't usually regexps actually. But if you want automatic saving of read messages, what you're looking for is in fact: folder-hook . set record='+read.mutt' But this is assuming I am only subscribed mutt-users right? So all mails go to "read.mutt" because of that "." in folder-hook. Oops, what I meant is probably something like this: folder-hook . set record='+read' folder-hook =mutt set record='+read.mutt' Although the folder hook(s) would depend on what folder names you have. The idea is that the default stored folder is +read, and for the =mutt folder it's +read.mutt... Hope this example illustrates to you how to set it up, and it's what you'd like. The example I gave before was a bit wrong, as you indeed wouldn't want $record pointing to +read.mutt for *every* folder. :-) Mikko -- // Mikko Hänninen, aka. Wizzu // [EMAIL PROTECTED] // http://www.iki.fi/wiz/ // The Corrs list maintainer // net.freak // DALnet IRC operator / // Interests: roleplaying, Linux, the Net, fantasy scifi, the Corrs / An unbreakable toy is good for breaking other toys.
Re: Help on save-hook please
Mikko Hänninen [EMAIL PROTECTED] wrote on Fri, 30 Jun 2000: Oops, what I meant is probably something like this: folder-hook . set record='+read' Another oops. I wonder how come nobody else caught this yet and corrected me? :-) Anyway, I shouldn't be talking about $record, I mean $mbox of course. eg. folder-hook . set mbox='+read' $record is your default saved outgoing messages (Fcc) folder, $mbox is the folder where read messages go. I never change $record and I don't use $mbox myself, that's my excuse for confusing the two. :-) Reading the documentation on $move and $mbox, it turns out that this feature is only enabled for the spool mailbox, so apparently you can't use it to auto-save read messages for other incoming mail folders??? Although I'm not sure what would be the result if you changed $spoolfile in each folder-hook... It's easy enough to test whether the documentation is right, I haven't got the time *right now* though. Mikko -- // Mikko Hänninen, aka. Wizzu // [EMAIL PROTECTED] // http://www.iki.fi/wiz/ // The Corrs list maintainer // net.freak // DALnet IRC operator / // Interests: roleplaying, Linux, the Net, fantasy scifi, the Corrs / "Caffeine is an important part of a balanced food diet."