Mail times/date in local time zone
Dear Mutt Users, Often, I wish to know the time at which someone wrote me an e-mail converted to the local time zone. Since most of my contacts live in another time zone, (and some use the time zone + even though that isn't where they live), I have to do some mental calculations which I'd like to avoid sometimes. Currently, my workaround for this is to make Mutt unignore a header called X-Date, and add a procmail recipe like this: :0 f: * ^Date: *\/[^ ].* | formail -a "X-Date: `date +\"%a, %d %b %Y %H:%M:%S %z\" -d \"$MATCH\"`" Naturally, this works only for e-mail delivered via procmail and not if I use Mutt as an IMAP agent. I can live with this solution, but I was wondering if you could come up with a better solution than this. Thanks. Kumar -- Kumar Appaiah
Re: Mail times/date in local time zone
Dear Ed, On Fri, Mar 30, 2012 at 05:23:38PM -0400, Ed Blackman wrote: > On Fri, Mar 30, 2012 at 02:27:47PM -0500, Kumar Appaiah wrote: > >Often, I wish to know the time at which someone wrote me an e-mail > >converted to the local time zone. Since most of my contacts live in > >another time zone, (and some use the time zone + even though that > >isn't where they live), I have to do some mental calculations which > >I'd like to avoid sometimes. > > > >Currently, my workaround for this is to make Mutt unignore a header > >called X-Date, and add a procmail recipe like this: > > Your procmail recipe adds the date at the time the message is > received. Perhaps using "%(fmt)" in your index_format instead of > the default "%{fmt}" would help you get the desired time format in > the index. I don't think so. For your message, my recipe: :0 f: * ^Date: *\/[^ ].* | formail -a "X-Date: `date +\"%a, %d %b %Y %H:%M:%S %z\" -d\"$MATCH\"`" gives me this: Date: Fri, 30 Mar 2012 17:23:38 -0400 X-Date: Fri, 30 Mar 2012 16:23:38 -0500 The reason is because $MATCH parses the Date: header in the e-mail, and passes it to the date command. In other words: # date +"%a, %d %b %Y %H:%M:%S %z" -d"Fri, 30 Mar 2012 17:23:38 -0400" Fri, 30 Mar 2012 16:23:38 -0500 It appears that that is the time you composed the e-mail? > man muttrc and search for index_format to learn the difference > between the two. If you don't have an index_format set, the default > is > "%4C %Z %{%b %d} %-15.15L (%?l?%4l&%4c?) %s". Experiment with > "%4C %Z %(%b %d) %-15.15L (%?l?%4l&%4c?) %s" instead. > > I don't think there's a way to change it in the pager. That's sad. Thanks for the suggestions, but I'll stick to the X-Date, since the pager is what I am interested in. I will fiddle around with the index format, though. Thanks. Kumar -- Kumar Appaiah
Re: Mail times/date in local time zone
Dear Gary, On Sat, Mar 31, 2012 at 10:26:17AM -0700, Gary Johnson wrote: > On 2012-03-30, Kumar Appaiah wrote: > > Dear Mutt Users, > > > > Often, I wish to know the time at which someone wrote me an e-mail > > converted to the local time zone. Since most of my contacts live in > > another time zone, (and some use the time zone + even though that > > isn't where they live), I have to do some mental calculations which > > I'd like to avoid sometimes. > > This is what I use. It puts the local time at which a message was > sent in the status line at the bottom of the pager. > > set pager_format="%4C %Z %[!%b %e at %I:%M %p] %.20n %s%* -- (%P)" An adapted version of this works fine. Thanks. Kumar -- Kumar Appaiah
Re: Save copy to server's Sent folder while using pure CL mutt
On Thu, Feb 20, 2014 at 04:24:13PM +, 李仁林 wrote: > I manage to send email and save a copy using Mutt with its own UI. > > mutt -s topic receiver > This will bring up mutt's interface to edit and send mail. It will > first upload to imap server, and send the email through smtp server. > There is a Fcc field in the header with "=Sent". > > But When I use pure command line to send mail, say: > > mutt -s topic receiver < foo > The mail is successfully sent, but no copy in my server's sent folder. > I check the debug log, the mail is not uploaded to imap server at all, > just sent through smtp server. > > I have tried to use my_hdr, but Fcc is not supported to be set. > > fcc-hook is also tried, not use The only way to do this would be to set your Fcc as the server's sent folder, such as imaps://us...@imap.example.com/SENT, AFAIK. Personally, I use offlineimap to periodically sync my local mails with the server. Kumar -- Kumar Appaiah
Re: Mutt - Neomutt and Debian Stretch
On Sat, Jul 01, 2017 at 08:41:48AM -0700, Ian Zimmerman wrote: > On 2017-07-01 08:17, Antonio Radici wrote: > > > The only reason for the upstream switch was the code indenting > > changes, which would have make the neomutt patch bigger than the mutt > > source code, if we could get these in the main mutt source code that > > can help any proposal to restructure the patch tree; just to clarify: > > I'm not saying that this is a *prerequisite* for any proposal but this > > is the main reason for the upstream code switch. > > > > Do you feel that it is possible to come up to an agreement when it > > comes to the same indentation? clang-format should take care of that > > pretty much automatically. > > So, why can you not have a pre-configure step in debian/rules to run > clang-format and apply neomutt's indentation conventions to mutt's code? > I don't think you need upstream mutt's cooperation with that. Good idea, but the patch is applied before the debian/rules commands are executed. The method you suggest would change the code while debian/rules runs, which is after the patches have been applied. Kumar -- Kumar Appaiah
Re: muttprint
On Sun, Apr 08, 2018 at 06:06:57PM +1000, Brian Salter-Duke wrote: > The muttprint I have been using for many years is about 10 years old and no > longer works after I upgraded perl to version 5.26.0. Is there a more recent > version that might work with recent perl or is there an alternative written > maybe in python? Currently, on Debian, my muttprint seems to work with Perl 5.26.1. Can you tell me what the problem you are facing might be? Thanks. Kumar -- Kumar Appaiah
Re: muttprint
On Sun, Apr 08, 2018 at 02:04:09PM +0200, Jens John wrote: > On Sun, Apr 08, 2018 at 01:51:36PM +0530, Kumar Appaiah wrote: > > Currently, on Debian, my muttprint seems to work with Perl > > 5.26.1. Can you tell me what the problem you are facing might be? > > Debian's version is heavily patched. OP may want to try the most recent > Debian version after applying all patches (there are a dozen or so in > debian/patches). I think the Debian and Ubuntu packages are identical (I found out that the OP uses Ubuntu). And the patched version does seem to use $*, though I don't know if that is the main cause. Kumar -- Kumar Appaiah
Messages tagged as Old ("O")
Dear Mutt Users, My Mutt is 1.5.13. I have no issues with it, except that all of my incoming mail (to my mboxes) are flagged as "O" instead of "N". And when I read them, they are marked as read and it's all right. But why are they marked with an "O" instead of an "N"? How do I find out? Thanks! Kumar -- Kumar Appaiah, 462, Jamuna Hostel, Indian Institute of Technology Madras, Chennai - 600 036
Re: Messages tagged as Old ("O")
On Sun, Jul 01, 2007 at 12:56:11PM +0530, Kumar Appaiah wrote: > Dear Mutt Users, > > My Mutt is 1.5.13. I have no issues with it, except that all of my > incoming mail (to my mboxes) are flagged as "O" instead of "N". And > when I read them, they are marked as read and it's all right. But why > are they marked with an "O" instead of an "N"? How do I find out? Sorry, I realized that I had nomark_old set. Hence the problem. Sorry again! Kumar -- Kumar Appaiah, 462, Jamuna Hostel, Indian Institute of Technology Madras, Chennai - 600 036
Re: Messages tagged as Old ("O")
On Sun, Jul 01, 2007 at 01:12:29PM +0530, Kumar Appaiah wrote: > Sorry, I realized that I had nomark_old set. Hence the problem. But that wasn't the issue. All my incoming mails (delivered by procmail to my mboxes) are marked "O". What else could the reason be? Thanks. Kumar -- Kumar Appaiah, 462, Jamuna Hostel, Indian Institute of Technology Madras, Chennai - 600 036
Re: Messages tagged as Old ("O")
On Sun, Jul 01, 2007 at 08:22:10AM -0400, Patrick Shanahan wrote: > You do not give enough information, but a guess: You are running a > mail notification program. I think you're right. I'll try to find out which program it is that reads my mboxes. Thanks. Kumar -- Kumar Appaiah, 462, Jamuna Hostel, Indian Institute of Technology Madras, Chennai - 600 036
Backspace problems in XTerm
Dear Mutt users, Even after hours of Googling, I am unable to get this to work. So, here's the deal: 1. Everything's fine, except that in the pager, if I press backspace, it says key not bound. If I press Ctrl+H, it works as expected. 2. All other applications work fine; emacs -nw, vim etc. 3. So, in Mutt, I wish to bind my previous-line to Ctrl+H in the pager. However, when I add bind \008 to previous-line, it still doesn't work. When doing a "?", the binding displays as "^H" all right, but below, it says again, and my binding has no effect. Can you suggest an effective workaround? Using XTerm's "Backarrow Key" fixes this, but it breaks all other apps, like emacs -nw, break. Thanks! Kumar -- Kumar Appaiah, 458, Jamuna Hostel, Indian Institute of Technology Madras, Chennai - 600 036
Re: Backspace problems in XTerm
On Thu, Sep 06, 2007 at 11:08:20AM -0600, Kyle Wheeler wrote: > >Can you suggest an effective workaround? Using XTerm's "Backarrow Key" > >fixes this, but it breaks all other apps, like emacs -nw, break. > > The obvious workaround is to bind whatever your backspace key IS > emitting. E.g. this: > > bind pager ^? previous-line > > (note that you have to enter that in your muttrc by making sure the ^? > is not the two-letter sequence carrot-questionmark, but is the > single-character sequence that your delete key is emitting.) Many thanks for the detailed response, and yes, your suggestion handles my problem perfectly! :-) Is there a way of directly entering ^? in an editor? Right now, I did echo > outfile, and copy pasted the contents of outfile from emacs into my muttrc. Is there a better way? Thanks again! Kumar -- Kumar Appaiah, 458, Jamuna Hostel, Indian Institute of Technology Madras, Chennai - 600 036 signature.asc Description: Digital signature
Re: Backspace problems in XTerm
On Thu, Sep 06, 2007 at 12:36:23PM -0500, Kyle Wheeler wrote: > Of course! In most decent editors (including vim, which is the *most* > decent editor ;) ), you can do the same thing. In insert mode, type > ! OK, so in GNU Emacs, you can do Ctrl+q Ctrl+?, i.e. C-q C-?. Here is is: :-) Kumar -- Kumar Appaiah, 458, Jamuna Hostel, Indian Institute of Technology Madras, Chennai - 600 036 signature.asc Description: Digital signature
Re: mutt configuration: problem with getting mail
Dear Arvind, On Tue, Sep 11, 2007 at 10:54:33PM +0530, Arvind Marathe wrote: > Another problem: when i again open my account in webmail, all of the latest of > the 582 mails which were unread are shown as 'read' after i had tried to > receive > them in mutt. But as i said, i can't find them in my mutt inbox. I think getmail marks messages as read once you receive them. In fact, it may so have happened that of your 582 messages, only 417 were new (unread), but getmail's claim to have delivered everything beats me. Kumar -- Kumar Appaiah, 458, Jamuna Hostel, Indian Institute of Technology Madras, Chennai - 600 036
Re: Mutt to access emails from pst?
On Mon, Oct 08, 2007 at 02:19:33PM +0530, Dilip M wrote: > I don't have access to linux box on office. We use windows and outlook > (or webmail) to access office emails... One simple thing I can think of is Mutt for Windows, using Cygwin and otherwise. This might help, but seems way outdated: http://unixmail-w32.sourceforge.net/ > 1. Can I access my outlook pst file from mutt windows client? Don't think so. But you may wish to Google "convert outlook pst mbox" to get some alternatives to convert the mail. > 2. Since I could access my office email, using webmail client, can I > have some interface in firefox, which is mutt alike... I think a better means would be to use cygwin and somehow get getmail or fetchmail to POP/IMAP your mail, though I speak without knowing the situation in your office. HTH. Kumar -- Kumar Appaiah, 458, Jamuna Hostel, Indian Institute of Technology Madras, Chennai - 600 036
Re: Mutt to access emails from pst?
On Mon, Oct 08, 2007 at 02:34:25PM +0530, Kumar Appaiah wrote: [snip] And sorry for Cc'ing the list. I pressed `g' instead of `L' by mistake. :-( Kumar -- Kumar Appaiah, 458, Jamuna Hostel, Indian Institute of Technology Madras, Chennai - 600 036
Re: mail directory
On Sun, Nov 04, 2007 at 10:33:26AM +1100, hce wrote: > Hi, > > I want to deliver the mail to my local directory by specifiy the > MAILDIR=$HOME/Email/Mailbox/Inbox in .procmailrc, and calling > "procmail -d Inbox" in .fetchmailrc. But, the procmail aleays deliver > the mail to /var/mail. What was I missing ...? Try this: MAILDIR=$HOME/Email/Mailbox :0: Inbox And call just procmail. But, as said, this is a Mutt list, but I couldn't resist suggesting. Kumar -- Kumar Appaiah, 458, Jamuna Hostel, Indian Institute of Technology Madras, Chennai - 600 036
Re: mail directory
On Sat, Nov 03, 2007 at 09:55:24PM -0400, Patrick Shanahan wrote: > > And call just procmail. But, as said, this is a Mutt list, but I > > couldn't resist suggesting. > > good for you, but it still will not work. > > MAILDIR is a variable (*usually* set to where you store your mail, not >where mail is delivered) > procmail delivers to $DEFAULT, not $MAILDIR Right. I overlooked this point. Thanks for pointing this out. Kumar -- Kumar Appaiah, 458, Jamuna Hostel, Indian Institute of Technology Madras, Chennai - 600 036
Re: creating an alias of a group email?
On Thu, Sep 11, 2008 at 04:14:26PM -0700, [EMAIL PROTECTED] wrote: > Sometimes I receive an email that is sent to a group of people. I want > to alias all such addresses in the To: list. What is the easiest way to > do it. Sorry, I don't know this one. > Another question is, sometimes I don't want to make an alias but > nonetheless want to send an email to all the people in the To: list > (like group reply) but would like to modify the subject and make sure > this email goes without any in-reply-to header. Is this possible in > mutt? For this, if you have the edit_headers option set, then your mail editor will display the full message to you with the headers. The easiest way to achieve your goal would be to scrap the In-Reply-To header. You can, of course, edit the subject. HTH. Kumar -- Kumar Appaiah
Re: New mail not found - what to check?
On Fri, Dec 19, 2008 at 6:15 AM, Chris G wrote: > For some reason mutt isn't seeing new mail arriving. It is arriving > OK and the flags (i.e. the 'N' against new messages) are OK but I'm > not being notified in the status line and I'm not able to 'c' to > mailboxes where new mail has arrived. > > I'm using mbox format (which I know is more likely to have this issue) > but I want to stay with mbox if I possibly can. I had the same problem, and I concluded that it was some issue with the server marking the mail as old. So, I manually recreated the Status header using formail, as I pass all my mail through procmail. I know this is not a valid solution, but this worked around the issue for me. HTH. Kumar -- Kumar Appaiah
Re: save raw messages
On Sat, Jan 24, 2009 at 06:41:06AM -0800, Dave Feustel wrote: > Is there a way to get mutt to save messages with no formatting applied? > I am getting html messages which, once formatted by mutt, no longer > display correctly. If the messages are multipart, usually, you can get away with typing `v' and saving the HTML part alone. Please correct me if I have misunderstood the question. Kumar -- Kumar Appaiah
Re: save raw messages
On Sat, Jan 24, 2009 at 08:58:53AM -0800, Dave Feustel wrote: > > If the messages are multipart, usually, you can get away with typing > > `v' and saving the HTML part alone. > > > > Please correct me if I have misunderstood the question. > > Amazing!!! You have cut the Gordian knot I have been wrestling with for > several months. Thanks!!! Glad to know I was of help. :-) Kumar -- Kumar Appaiah
Re: ask for pwd
On Mon, Mar 2, 2009 at 2:10 PM, Kyle Wheeler wrote: > On Monday, March 2 at 11:54 AM, quoth Ravi Uday: >>how to make mutt ask for pwd each time you send email ? >>maybe once every 10 mails or based on a timer > > Ask for a pwd? Mutt can't even *change* its pwd (without a patch). > > Why would you want mutt to do that? What are you trying to accomplish? Using my context sensitive parsing of SMSpeak[1], I presume he means password. Kumar [1]: http://e-mail.is-not-s.ms/ -- Kumar
Attachment problems
Dear Mutt users, I am facing a strange issue with Mutt 1.5.20. The earlier practice to attach files from the command line would be: mutt -a file1 -a file2 -a file3 myfri...@somewhere -s "Documents you required" However, in Mutt 1.5.20, it appears that even the e-mail address above is treated as a file to attach (and is not found, and results in an error). Is this expected behaviour (since a quick glance at the changelog did not reveal it), or have I missed something? Thanks! Kumar -- Kumar
Re: Attachment problems
On Wed, Jun 17, 2009 at 10:10 AM, Patrick Shanahan wrote: > > I am facing a strange issue with Mutt 1.5.20. The earlier practice to > > attach files from the command line would be: > > > > mutt -a file1 -a file2 -a file3 myfri...@somewhere -s "Documents you > > required" > > > > However, in Mutt 1.5.20, it appears that even the e-mail address above > > is treated as a file to attach (and is not found, and results in an > > error). Is this expected behaviour (since a quick glance at the > > changelog did not reveal it), or have I missed something? > > > > Close, but... > > The address should be the *last* set of parameters on the > command-line. Try it again. I still maintain that there is an issue, since this also doesn't work: mutt -a file1 -a file2 -a file3 myfri...@somewhere i.e. it still looks for a file with the same name as the e-mail address. Thanks. Kumar -- Kumar
Re: Attachment problems
On Wed, Jun 17, 2009 at 10:31 AM, Kyle Wheeler wrote: > On Wednesday, June 17 at 09:28 AM, quoth Kyle Wheeler: > >According to the mutt man page, the usage pattern line you're looking > >for is this one: > > > > mutt [-nx] [-e cmd] [-F file] [-H file] [-i file] [-s subj] > > [-b addr] [-c addr] [-a file [...] --] addr [...] > > > >Essentially, there can be two lists at the end (one of files to attach > >and the other of addresses, and they must be separated by a > >double-hyphen. In other words, your command should be rewritten: > > > > mutt -s "Documents you required" -a file1 file2 file3 -- > > myfri...@somewhere > > > >Make sense? > > If you're wondering "why on earth would they do that?!?" here's the > answer: > > mutt -s "Documents you required" -a file* -- myfri...@somewhere > > The change allows you to use shell wildcards to match multiple > filenames. I now see the change. I've often wanted this behaviour (which seems more intuitive), but got used to the former... and my resistance to change got the better of me; the sudden change put me off for a while. Thanks for the clarification, and I'll read the man page more carefully. :-) Kumar -- Kumar
Re: Terminal for mutt (Poll)
On Wed, Oct 07, 2009 at 09:01:12PM -0500, Cooper T53 wrote: > Which terminal do you prefer for mutt? > - a/e/x/wterm > - rxvt > - rxvt-unicode > - mrxvt > - gnome terminal > - xfce terminal (haven't tried tã²is one) > - konsole > - other? > > And why? > > And while I am at it, dark background or light background? xterm, since it's fast, slick, and no-nonsense (for me. May not hold for others). And, I always prefer a dark background since I believe it's easier on my eyes. Kumar -- Kumar Appaiah
Re: Bounce message from a different from address.
On Tue, Feb 23, 2010 at 09:34:51AM +0900, Horacio Sanson wrote: > I send a long email to a mailing list but after sending it I realized I > send the email using the wrong from: address. Of course the message got > bounced > back because that address is not registered in the mailing list. > > Now this should be easy to do but I have not found a simple way to > resend the message with a different from: address. The message is stored > in my Sent folder but using the bounce function on it asks me to input a > new destination (to:) address but what I want is to change the from: > address and resend the message intact as it is. > > How to achieve this feat? On my Mutt, e is bound to "resend-message". You can use that to edit and "resend" the message. HTH. Kumar -- Your idol is shattered in the dust to prove that God's dust is greater than your idol. - Rabindranath Tagore (Stray Birds, 1916) signature.asc Description: Digital signature