Make MBox

2011-03-01 Thread James Vasile
On Tue, 01 Mar 2011 14:06:28 -0800, Jameson Rollins  wrote:
> On Tue, 01 Mar 2011 15:54:32 -0500, James Vasile  
> wrote:
> > Sometimes I want to send a colleague a bunch of emails (for example, all
> > the emails I've tagged todo or all the emails from an awesome
> > contributor.  Although notmuch usually speaks the language of maildirs,
> > I find mboxes most convenient for attaching to emails.  Their tools can
> > usually handle it well.
> > 
> > I've put a bit of elisp and python up:
> > https://github.com/jvasile/notmuch2mbox
> 
> Hi, James.  Are you aware of the --format=mbox output option for notmuch
> show?  I think it already supports just this exact use case.  See
> "notmuch help show" for more info.

Nope, completely unaware.  This is what happens when I stop reading this
list for a while.  I go do silly things like reimplement features.  I
wonder how easy it is to remove a repo from github...

Thanks for the kind update, Jameson.

Best regards,
James


Make MBox

2011-03-01 Thread James Vasile
Sometimes I want to send a colleague a bunch of emails (for example, all
the emails I've tagged todo or all the emails from an awesome
contributor.  Although notmuch usually speaks the language of maildirs,
I find mboxes most convenient for attaching to emails.  Their tools can
usually handle it well.

I've put a bit of elisp and python up:
https://github.com/jvasile/notmuch2mbox

The python's help screen:

> Usage: 
> notmuch2mbox.py [options] [search terms]
>
> This program uses notmuch to search for the search terms, then outputs
> any found emails in mbox format.
> 
> 
> Options:
>   -h, --helpshow this help message and exit
>   -n NOTMUCH, --notmuch=NOTMUCH
> Path to notmuch binary.
>   -o OUTFILE, --outfile=OUTFILE
> Write mbox to specified path instead of stdout

The python script does a search and spits out an mbox containing
anything it finds in that search.  The emacs function performs that task
on the current search, saving the result to a file, which you can attach
to an email, open in mutt or whatever.  The elisp is in the starting
comments to the python.

I hope this is useful to somebody.  It does the trick for me in working
with mbox-dependent colleagues (e.g. mutt users).  I prefer mutt's
threaded view to notmuch's conversation view, so I've used it to browse
emails too.

Regards,
James



Make MBox

2011-03-01 Thread Jameson Rollins
On Tue, 01 Mar 2011 15:54:32 -0500, James Vasile  
wrote:
> Sometimes I want to send a colleague a bunch of emails (for example, all
> the emails I've tagged todo or all the emails from an awesome
> contributor.  Although notmuch usually speaks the language of maildirs,
> I find mboxes most convenient for attaching to emails.  Their tools can
> usually handle it well.
> 
> I've put a bit of elisp and python up:
> https://github.com/jvasile/notmuch2mbox

Hi, James.  Are you aware of the --format=mbox output option for notmuch
show?  I think it already supports just this exact use case.  See
"notmuch help show" for more info.

jamie.
-- next part --
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: 



Re: Make MBox

2011-03-01 Thread Jameson Rollins
On Tue, 01 Mar 2011 15:54:32 -0500, James Vasile ja...@hackervisions.org 
wrote:
 Sometimes I want to send a colleague a bunch of emails (for example, all
 the emails I've tagged todo or all the emails from an awesome
 contributor.  Although notmuch usually speaks the language of maildirs,
 I find mboxes most convenient for attaching to emails.  Their tools can
 usually handle it well.
 
 I've put a bit of elisp and python up:
 https://github.com/jvasile/notmuch2mbox

Hi, James.  Are you aware of the --format=mbox output option for notmuch
show?  I think it already supports just this exact use case.  See
notmuch help show for more info.

jamie.


pgp3CuwAA3Yck.pgp
Description: PGP signature
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


Re: Make MBox

2011-03-01 Thread James Vasile
On Tue, 01 Mar 2011 14:06:28 -0800, Jameson Rollins 
jroll...@finestructure.net wrote:
 On Tue, 01 Mar 2011 15:54:32 -0500, James Vasile ja...@hackervisions.org 
 wrote:
  Sometimes I want to send a colleague a bunch of emails (for example, all
  the emails I've tagged todo or all the emails from an awesome
  contributor.  Although notmuch usually speaks the language of maildirs,
  I find mboxes most convenient for attaching to emails.  Their tools can
  usually handle it well.
  
  I've put a bit of elisp and python up:
  https://github.com/jvasile/notmuch2mbox
 
 Hi, James.  Are you aware of the --format=mbox output option for notmuch
 show?  I think it already supports just this exact use case.  See
 notmuch help show for more info.

Nope, completely unaware.  This is what happens when I stop reading this
list for a while.  I go do silly things like reimplement features.  I
wonder how easy it is to remove a repo from github...

Thanks for the kind update, Jameson.

Best regards,
James
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch