Editing multiple messages with bash
Hi, I stumbled upon editlabel [1] for editing labels (actually the X-Label header) with mutt. It sets the editor variable to a bash script, calls edit and then sets the variable back to vim. Unfortunately, this only works on a single message. I'd like to tag N messages and then send all of them to a bash script for editing the X-Label header. Does anyone have any idea if that is possible? [1] http://blitiri.com.ar/p/other/mutt-labels/ -- Jostein
Re: Send-hook overriding reply-hook even though reply-hook is specified last
On Mon, Mar 26, 2012 at 05:06:45PM +0200, Jostein Gogstad wrote: Jostein Gogstad wrote, on Fri, Mar 09, 2012 at 04:46:22PM +0100: send-hook . 'my_hdr From: Incorrect from incorr...@example.com' reply-hook . 'my_hdr From: Correct from corr...@example.com' The send hook always kicks in whenever I reply to a mail. If I drop the send-hook, everything works fine. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=565236 http://dev.mutt.org/trac/ticket/3427 So, I figured from [1] that send-hooks are in fact applied after reply-hooks. See above links. My problem still persist though. If anyone have a solution to the following scenario I'd be overwhelmed: 1) Fetchmail gathers mail from gmail and corporate mail and puts in $spoolfile. 2) I want to use my corporate e-mail address whenever I reply to mail sent to m...@mycompany.com, and whenever I send mail to some...@mycompany.com. 3) I want to my gmail address whenever the situation in 2) is not the case. Why not employ filtering rules in your mda, to filter the messages into different folders. I only use one email address, so I'm not to sure about using 2 or more but I think you might need to look at mutt profiles. [1] http://durak.org/sean/pubs/software/mutt/configuration.html#send-hook -- Religion is excellent stuff for keeping common people quiet. -- Napoleon Bonaparte
Re: Send-hook overriding reply-hook even though reply-hook is specified last
On Tue, Apr 03, 2012 at 01:58:31AM +1200, Chris Bannister wrote: On Mon, Mar 26, 2012 at 05:06:45PM +0200, Jostein Gogstad wrote: Jostein Gogstad wrote, on Fri, Mar 09, 2012 at 04:46:22PM +0100: send-hook . 'my_hdr From: Incorrect from incorr...@example.com' reply-hook . 'my_hdr From: Correct from corr...@example.com' The send hook always kicks in whenever I reply to a mail. If I drop the send-hook, everything works fine. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=565236 http://dev.mutt.org/trac/ticket/3427 So, I figured from [1] that send-hooks are in fact applied after reply-hooks. See above links. OOps, after *actually* reading the bug reports it seems it is unrelated to your problem, although, it might shed some light on your problem. Also have you remembered about default hooks? -- Religion is excellent stuff for keeping common people quiet. -- Napoleon Bonaparte
Re: Messages from Mutt received by gmail but nothing else
On Sun, Apr 01, 2012 at 04:23:39PM -0700, w...@willschrimshaw.net wrote: While trying out mutt over the past couple of days I've noticed that messages sent from Mutt are received by gmail but nothing else, as far as I can tell. I can send an email to a gmail account, so messages are getting off my computer. If I send an email to a microsoft owa email service, or to the mutt users list from mutt, for example, the email never makes it. I've had a look at mail.log, which doesn't make loads of sense to me, being new to mutt, but I can see that something is being `blocked using urbl.hostedmail.com'. The rbl in urbl probably refers to a Realtime Blackhole List. It's a way for email hosts (among others) to check addresses for properties they don't like such as known spammer [sensible] or dynamic address from a consumer-grade ISP [stupid and prejudiced, IMNSHO]. At home I've had to set up exim (the MTA I run) with a special router to deal with other's mail hubs that don't want to talk to dirty rotten consumer dynamic IPs: # This router routes addresses of paranoid ISPs that assume all dialup users # are doing something illegitimate. paranoids: driver = manualroute route_data = ${lookup{$domain}partial-lsearch{/etc/exim/paranoids}} transport = remote_smtp It uses my ISP's mail hub to hide my unclean IP address from finicky MTAs but lets me send directly to others, so that at least sometimes I have useful logs to show whether a message went through. The simple solution is often to just use your ISP's MTA as a smarthost for all outgoing mail. I'm picky, so there are times when I don't get to use simple solutions. -- Mark H. Wood, Lead System Programmer mw...@iupui.edu Asking whether markets are efficient is like asking whether people are smart. pgpao2AObIXaI.pgp Description: PGP signature
regexp and pattern limit
Hi, I'm trying to write a regexp in order to capture some words to put them in color. I have a line like this in my .muttrc: color body red default \etch\|((L|l)enny)|((S|s)queeze)|((S|s)arge)|((P|p)otato) I want to catch only etch, but not fetch nor fetchera (or whatever combination). So I tried the \word\ syntax without success. I also tried the Perl way \bword\b which fails too. I'm no regex guru, so could someone help me please? Thanks in advance, Steve
Re: Messages from Mutt received by gmail but nothing else
Thanks very much for the detailed response Mark, its good to know a little more about how this stuff works. Sending this from Mutt as a test after having set up smtp via my isp. All the best, Will. On Mon, Apr 02, 2012 at 10:32:10AM -0400, Mark H. Wood wrote: On Sun, Apr 01, 2012 at 04:23:39PM -0700, w...@willschrimshaw.net wrote: While trying out mutt over the past couple of days I've noticed that messages sent from Mutt are received by gmail but nothing else, as far as I can tell. I can send an email to a gmail account, so messages are getting off my computer. If I send an email to a microsoft owa email service, or to the mutt users list from mutt, for example, the email never makes it. I've had a look at mail.log, which doesn't make loads of sense to me, being new to mutt, but I can see that something is being `blocked using urbl.hostedmail.com'. The rbl in urbl probably refers to a Realtime Blackhole List. It's a way for email hosts (among others) to check addresses for properties they don't like such as known spammer [sensible] or dynamic address from a consumer-grade ISP [stupid and prejudiced, IMNSHO]. At home I've had to set up exim (the MTA I run) with a special router to deal with other's mail hubs that don't want to talk to dirty rotten consumer dynamic IPs: # This router routes addresses of paranoid ISPs that assume all dialup users # are doing something illegitimate. paranoids: driver = manualroute route_data = ${lookup{$domain}partial-lsearch{/etc/exim/paranoids}} transport = remote_smtp It uses my ISP's mail hub to hide my unclean IP address from finicky MTAs but lets me send directly to others, so that at least sometimes I have useful logs to show whether a message went through. The simple solution is often to just use your ISP's MTA as a smarthost for all outgoing mail. I'm picky, so there are times when I don't get to use simple solutions. -- Mark H. Wood, Lead System Programmer mw...@iupui.edu Asking whether markets are efficient is like asking whether people are smart.
Re: regexp and pattern limit
On 2012-04-02, steve wrote: Hi, I'm trying to write a regexp in order to capture some words to put them in color. I have a line like this in my .muttrc: color body red default \etch\|((L|l)enny)|((S|s)queeze)|((S|s)arge)|((P|p)otato) I want to catch only etch, but not fetch nor fetchera (or whatever combination). So I tried the \word\ syntax without success. I also tried the Perl way \bword\b which fails too. I'm no regex guru, so could someone help me please? Take a look at the mutt manual, in the Regular Expression section. There it says that the beginning and end of a word are matched with '\\' and '\\', respectively. Quoting in mutt has always confused me. Try \\etch\\ alone first. If that doesn't work, try adding backslashes until it does. Then expand your expression from there. HTH, Gary
Re: regexp and pattern limit
steve schrieb am 02.04.2012 um 22:01 (+0200): I'm trying to write a regexp in order to capture some words to put them in color. I have a line like this in my .muttrc: color body red default \etch\|((L|l)enny)|((S|s)queeze)|((S|s)arge)|((P|p)otato) I want to catch only etch, but not fetch nor fetchera (or whatever combination). So I tried the \word\ syntax without success. I also tried the Perl way \bword\b which fails too. So you want word boundaries. I found out double backslashes work fine: color body red default \\etch While hacking away at the regex in the conf file and testing in mutt reloading the conf, it's easy to get fooled by the cumulative effect of all regexes tried along the road … so it's important to make tabula rasa for your combination by doing: :uncolor body red default * Michael
Re: regexp and pattern limit
On 02Apr2012 16:16, Gary Johnson garyj...@spocom.com wrote: | On 2012-04-02, steve wrote: | I'm trying to write a regexp in order to capture some words to put them | in color. I have a line like this in my .muttrc: | | color body red default \etch\|((L|l)enny)|((S|s)queeze)|((S|s)arge)|((P|p)otato) [...] | Take a look at the mutt manual, in the Regular Expression section. | There it says that the beginning and end of a word are matched with | '\\' and '\\', respectively. | | Quoting in mutt has always confused me. Try \\etch\\ alone | first. If that doesn't work, try adding backslashes until it does. | Then expand your expression from there. You need double backslashes because two things are happening. Firstly, the regexp wants \ and \ for word boundary markers because that is needed to make and into special markers instead of literal characters. Figure out the regexp raw like this first. Thus: \etch\ Secondly, you're putting that in a quoted string. Single slosh (\) is used in quoted strings to quote stuff (eg \ for a literal double quote), you need to write \\ for a literal slosh. And you want a literal slosh. Thus: \\etch\\ Cheers, -- Cameron Simpson c...@zip.com.au DoD#743 http://www.cskk.ezoshosting.com/cs/ No man should escape our universities without knowing how little he knows. - J. Robert Oppenheimer
Re: Editing multiple messages with bash
On 02Apr2012 11:00, Jostein Gogstad jostein.gogs...@gmail.com wrote: | I stumbled upon editlabel [1] for editing labels (actually the X-Label header) | with mutt. It sets the editor variable to a bash script, calls edit and then | sets the variable back to vim. | | Unfortunately, this only works on a single message. I'd like to tag N messages | and then send all of them to a bash script for editing the X-Label header. Does tag-prefixedit work? Or is it a disaster? -- Cameron Simpson c...@zip.com.au DoD#743 http://www.cskk.ezoshosting.com/cs/ Footnotes that extend to a second page are an abject failure of design. - Bringhurst, _The Elements of Typographic Style_
Re: SSL Failed: I/O error
I figured this out and thought I'd close it out in case someone else runs into the same issue. Mutt/openssl does not check the default certification path (on my arch system it is /etc/ssl/certs) for trusted CA's. As soon as I put the server certificates in /etc/ssl/certs.pem the connection went through with no problems. As far as I can tell there is no way to tell mutt to tell openssl to check the /etc/ssl/certs path for server certificates. Openssl itself will not check this path by default. Gnutls does not have this problem as there is a ssl_usesystemcertificates option which does not work with openssl, but gnutls has other issues. I can run openssl s_client -connect [host]:[port] and I get an error. If I run openssl s_client -connect [host]:[port] -CApath [path to certs] everything goes fine. Thunderbird did not have this issue. The first time I connected to this server it asked if I wanted to accept the certificate. Is this something mutt should be doing? Should it provide a way to specify a path to openssl for the trusted system certificates? Steve On 03/27/12 12:30, step...@thecotts.com wrote: I'm having an issue connecting to one of my IMAP accounts via mutt. The only error received is SSL Failed: I/O error I am able to connect to other IMAP servers with the same settings but not this one. I am never prompted for a user name or password, just receive the SSL error. I have also tried to verify the settings with the following command and get a successful connection: openssl s_client -host imap.us.army.mil -port 993 -verify -debug -no_ssl2 -no_tls1_2 -no_tls1_1 -no_tls1 I tried unsetting all of the ssl options except for sslv3 in mutt with no success. I've been troubleshooting by running Mutt with the following options: mutt -n -F ~/.mutt/temp-muttrc contents of temp-muttrc: set from=[my email address] set realname=[my name] set spoolfile=imaps://imap.us.army.mil:993 set folder=imaps://imap.us.army.mil:993/ set certificate_file=~/.mutt/certificates Steve
Re: Editing multiple messages with bash
I made an enhanced version of editlabel available at http://sourceforge.net/projects/editxlabel/ It handles tag-prefix but it still edits messages one at a time. However, I added a history mechanism so that adding the same labels to multiple files is relatively easy. Regards, Luis On Tue, Apr 03, 2012 at 10:33:52AM +1000, Cameron Simpson wrote: On 02Apr2012 11:00, Jostein Gogstad jostein.gogs...@gmail.com wrote: | I stumbled upon editlabel [1] for editing labels (actually the X-Label header) | with mutt. It sets the editor variable to a bash script, calls edit and then | sets the variable back to vim. | | Unfortunately, this only works on a single message. I'd like to tag N messages | and then send all of them to a bash script for editing the X-Label header. Does tag-prefixedit work? Or is it a disaster? -- Cameron Simpson c...@zip.com.au DoD#743 http://www.cskk.ezoshosting.com/cs/ Footnotes that extend to a second page are an abject failure of design. - Bringhurst, _The Elements of Typographic Style_ -- o W. Luis Mochán, | tel:(52)(777)329-1734 /(*) Instituto de Ciencias Físicas, UNAM | fax:(52)(777)317-5388 `/ /\ Apdo. Postal 48-3, 62251 | (*)/\/ \ Cuernavaca, Morelos, México | moc...@fis.unam.mx /\_/\__/ O ascii ribbon campaign - stop html mail - www.asciiribbon.org
[SOLVED] Re: regexp and pattern limit
Dear mutt users, Thanks for all of your replies. \\(e|E)tch\\ does exactly was I was looking for. Have a nice day, Steve