open email from external link
Hello. Sometimes I need functionallity of openning conrete email in mutt. Can I do it from command line or even send some command to existing mutt process to force it open email for reading. I need this functinality to make some sort of process: 1). get link to email from mutt 2). save it in text file or fs 3). be able to open this email in mutt Is it possible or is there some workaround for such a functionallity? Thanks in advance. -- Best regards Alexander V Vershilov pgpXhVX3WrO5C.pgp Description: PGP signature
Re: Hashcash
On Sun, Mar 27, 2011 at 03:10:19PM -0600, Aaron Toponce wrote: > [snip] > > # converting a list to a file-type object for parsing rfc822 headers > original = sys.stdin.readlines() > email = StringIO.StringIO(''.join(original)) > message = rfc822.Message(email) > > # ... snip ... > > # reprint the original mail, as well as the status of the hashcash check > for line in original: > if len(line) == 1 and len(token_status) > 0: > print > for status in token_status: > print status > token_status = [] > else: > print line, > > Thanks again. Hi, I'm not entirely sure what you're trying to do. But $display_filter should just read the message from stdin and pass it to stdout. From what I can see that's what your program does so it should be fine. To test it just run it in a shell: python verify_hashcash.py < path/to/mbox/file/with/one/mail The following script is the simplest $display_filter doing nothing: #!/bin/sh cat If it works in the shell, it should work fine as $display_filter, if not, please tell us. Regards, Simon -- + privacy is necessary + using gnupg http://gnupg.org + public key id: 0x92FEFDB7E44C32F9 pgpcrLFbpJmCu.pgp Description: PGP signature
Re: mh format questions
On 20110414_210654, Paul E Condon wrote: > I have been using fetchmail and procmail to get my mail from my ISP > and distribute to several mbox folders using mutt as MUA. > I want to switch to using MH instead of mbox folder format. I have > made the changes to procmailrc and some of the changes to muttrc. > The mail seems to be arriving in the appropriate MH directories, but > there is no indication that new mail has arrived, no indication the > particular emails have not been seen, and email that I mark for > delection do not actually get deleted. > > I think this because there is no creation or updating of .mh_sequences > I have not found any instructions for setting up some .mh_sequences > handling. For the updating of unseen: , I cannot figure out if this > should be done by procmail or by mutt. For deletion of emails, it > surely should be handled by mutt ... but HOW? Is this possible? > Pointers to a HOWTO will be much appreciated. Responding to my own post with a correction: In fact, deleting emails does work this morning. Last evening's result is now not repeatable. But ... still no N marking new/unread emails. And a new discoverey: When composing an email, after closing the emacs window, at the point where typing 'y' would send the email, the 'q' does nothing. The screen remains unchanged. No offer of postponement. Nothing. It does respond to 'e', whicn is how I am able the offer this additional information. Suggestions? -- Paul E Condon pecon...@mesanetworks.net
Re: open email from external link
* Alexander V Vershilov on Friday, April 15, 2011 at 15:12:48 + > Sometimes I need functionallity of openning conrete email in > mutt. Can I do it from command line or even send some command to > existing mutt process to force it open email for reading. > > I need this functinality to make some sort of process: > 1). get link to email from mutt Could you elaborate? What kind of link? Example? > 2). save it in text file or fs > 3). be able to open this email in mutt > > Is it possible or is there some workaround for such a functionallity? I don't understand exactly what you're after, sorry. c -- Was heißt hier Dogma, ich bin Underdogma! [ What the hell do you mean dogma, I am underdogma. ] free movies --->>> http://www.blacktrash.org/underdogma http://itunes.apple.com/podcast/underdogma-movies/id363423596
Re: open email from external link
Hi, it sounds to be a job for muttjump;I came across this tool by using taskwarrior. > muttjump is a script by Johannes Weissl for jumping to a specific mail in > mutt via macro. This can used together with taskopen to open a mutt message > from a task. Perhaps you can use the script or parts of it for your purpose. Andreas * Christian Ebert wrote on 15.04.2011 at 17:00: > * Alexander V Vershilov on Friday, April 15, 2011 at 15:12:48 + > > Sometimes I need functionallity of openning conrete email in > > mutt. Can I do it from command line or even send some command to > > existing mutt process to force it open email for reading. > > > > I need this functinality to make some sort of process: > > 1). get link to email from mutt > > Could you elaborate? What kind of link? Example? > > > 2). save it in text file or fs > > 3). be able to open this email in mutt > > > > Is it possible or is there some workaround for such a functionallity? > > I don't understand exactly what you're after, sorry. > > c > -- > Was heißt hier Dogma, ich bin Underdogma! > [ What the hell do you mean dogma, I am underdogma. ] > free movies --->>> http://www.blacktrash.org/underdogma > http://itunes.apple.com/podcast/underdogma-movies/id363423596
mh format
I'm interested in using mh format for processing and storage of my emails on my debian wheezy computer. That computer has been my main desktop machine and has been running mutt, procmail, fetchmail (for incoming) and exim4 (for outgoing). Procmail can deliver emails to a mh-type folder and mutt can display and minipulate emails that are stored in mh-type folders. So, I thought it might be a drop- in replacement of mbox-type folders. But I am running into problems. The first, most important, problem is that I seem to have lost the ability to send emails from that computer. So, this email is coming from an old iMac running OSx 10.4. The next question: Is this kind of switch form entirely mbox to entirely mh possible? or possible, but difficult and messy, or impossible. And what are the reasons? The reason for my interest in mh is that it stores each email in a separate file which will make writing scripts to build indices of contents (I think). (On the iMac, Apple has introduced its own proprietary storage format that uses separate files in order to enable it 'spot light' product to do searches of emails.) On the Wheezy machine, I am receiving emails and processing through procmail and delivering them to a half a dozen topically related folders to be read by Mutt. But Mutt is not discovering that there is new mail available, and is not indicating that individual emails are new when I display the contents in indexer. I don't understand which program, procmail or mutt, should be responsible for creating an 'unseen:' sequence. I have looked for, but have not found a HOWTO for this kind of integration. Finding such would be a great help to me in learning enough about my problem to be able to frame more intelligent questions. TIA, Paul
Re: mh format
On Fri, Apr 15, 2011 at 09:28:17AM -0700, Paul E Condon wrote: > I'm interested in using mh format for processing and storage of my > emails on my debian wheezy computer. That computer has been my main > desktop machine and has been running mutt, procmail, fetchmail (for > incoming) and exim4 (for outgoing). > > Procmail can deliver emails to a mh-type folder and mutt can display > and minipulate emails that are stored in mh-type folders. So, I thought > it might be a drop- in replacement of mbox-type folders. But I am > running into problems. [...] > The reason for my interest in mh is that it stores each email in a > separate file which will make writing scripts to build indices of > contents (I think). Maybe you answered this already and I missed it, but is there any reason why you're choosing the mh format over maildir? Maildir is essentially a more modern successor to mh, and like mh is a file-per-message format. Whilst the advantages of the maildir format over mh probably aren't that important in your setup, my impression is that maildir is more widely used and better supported than mh these days, so you might run into less problems with it. (For what it's worth, mutt, procmail, and various home-grown scripts all work flawlessly for me with maildir. I've never used the mh format.) HTH, Toby -- Dr T. S. Cubitt Mathematics and Quantum Information group Department of Mathematics Complutense University Madrid, Spain email: ts...@cantab.net web: www.dr-qubit.org
Re: mh format questions
* On Thu, Apr 14, 2011 09:06PM -0600 Paul E Condon (pecon...@mesanetworks.net) muttered: > I want to switch to using MH instead of mbox folder format. > there is no indication that new mail has arrived, no indication the > particular emails have not been seen > > I think this because there is no creation or updating of .mh_sequences That is most likely true. I think google^w$searchmashine can help you how to setup some cron jobs updating .mh_sequences. May I ask why mh and not maildir, though? MH doesn't seem to be the sensible choice switching to a "one file per message" format nowadays. HTH, Michael -- BOFH excuse #15: temporary routing anomaly PGP-Key-ID: 0xDC1A44DD Jabber: init[0]@amessage.de
Re: mh format questions
* On 14 Apr 2011, Paul E Condon wrote: > I have been using fetchmail and procmail to get my mail from my ISP > and distribute to several mbox folders using mutt as MUA. > I want to switch to using MH instead of mbox folder format. I have Not to answer your question, but as Michael Tatge alluded, I would use Maildir instead of MH unless you have a specific need to interact with MH-compatible software. -- David Champion • d...@uchicago.edu • IT Services • University of Chicago
Re: mh format questions
On Fri, Apr 15, 2011 at 02:11:30PM -0500, David Champion wrote: * On 14 Apr 2011, Paul E Condon wrote: I have been using fetchmail and procmail to get my mail from my ISP and distribute to several mbox folders using mutt as MUA. I want to switch to using MH instead of mbox folder format. I have Not to answer your question, but as Michael Tatge alluded, I would use Maildir instead of MH unless you have a specific need to interact with MH-compatible software. I have actually been migrating from Maildir to MH for backup efficiency. I have procmail sort email into folders, and put a (sometimes modified) copy in my inbox where I can read and delete it, secure in the knowledge that I kept the original. That means that I don't regularly read any mail folder other than my inbox. If I use Maildir mail folders, that means that all my mail gets backed up in /path/to/folder/new. Occasionally I will open one of those folders in mutt, moving all the mail to /path/to/folder/cur. The next incremental backup then "deletes" the copy in /new from the backup and backs up the "new" copy in /cur. Beyond that, flags are stored in the file name, so changing flags causes another backup delete/add. With MH, on the other hand, message 13524 is always message 13524, regardless of whether I've seen it or not, or what the message flags are. The flags are in .mh_sequences which is tiny if I care about saving those flags, and easy to exclude from backup if I don't. -- Ed Blackman signature.txt Description: Digital signature
Re: Scoring threads
On Thu, Apr 14, 2011 at 12:00:14PM +0200, Alexandre wrote: Suppose you want to score all threads with this form: A>B>A>B without any specifications about the name of authors. Is it possible ? I'm not aware of any way to do this generically. me
Re: mh format questions
On 20110415_141130, David Champion wrote: > * On 14 Apr 2011, Paul E Condon wrote: > > I have been using fetchmail and procmail to get my mail from my ISP > > and distribute to several mbox folders using mutt as MUA. > > I want to switch to using MH instead of mbox folder format. I have > > Not to answer your question, but as Michael Tatge alluded, I would use > Maildir instead of MH unless you have a specific need to interact with > MH-compatible software. Thanks to both of you. I think I will have to do a more serious evaluation of maildir. And a lot more thinking about what I am really trying to do. Now I have lots of things I have to study. I've been unhappy with my email system for a long time. Just a few days ago, I had occasion to try to use Thunderbird on an old iMac. From that reintroduction to a 'main stream' MUA, I came to the conclusion that, fur me, Mutt will have to be a central component of my solution. But beyond that, not much is decided. -- Paul E Condon pecon...@mesanetworks.net
Re: mh format
On 20110415_184254, Toby Cubitt wrote: > On Fri, Apr 15, 2011 at 09:28:17AM -0700, Paul E Condon wrote: > > I'm interested in using mh format for processing and storage of my > > emails on my debian wheezy computer. That computer has been my main > > desktop machine and has been running mutt, procmail, fetchmail (for > > incoming) and exim4 (for outgoing). > > > > Procmail can deliver emails to a mh-type folder and mutt can display > > and minipulate emails that are stored in mh-type folders. So, I thought > > it might be a drop- in replacement of mbox-type folders. But I am > > running into problems. > [...] > > The reason for my interest in mh is that it stores each email in a > > separate file which will make writing scripts to build indices of > > contents (I think). > > Maybe you answered this already and I missed it, but is there any reason > why you're choosing the mh format over maildir? > > Maildir is essentially a more modern successor to mh, and like mh is a > file-per-message format. Whilst the advantages of the maildir format over > mh probably aren't that important in your setup, my impression is that > maildir is more widely used and better supported than mh these days, so > you might run into less problems with it. (For what it's worth, mutt, > procmail, and various home-grown scripts all work flawlessly for me with > maildir. I've never used the mh format.) > > > HTH, It certainly does help. And I'm sorry I didn't notice you response sooner. Now its three out of three for Maildir over MH, a question that I did not ask, but probably should have. Thanks to you, too. > > Toby > -- > Dr T. S. Cubitt > Mathematics and Quantum Information group > Department of Mathematics > Complutense University > Madrid, Spain > > email: ts...@cantab.net > web: www.dr-qubit.org > -- Paul E Condon pecon...@mesanetworks.net