Re: Forwarding emails to kindle

2012-04-17 Thread SK
On Tue, Apr 17, 2012 at 3:58 PM, David Champion wrote: > Offhand, the most straightforward way I can think of to do this > without including headers is to use a command designed to filter those > appropriately.  Roughly, I'd look at using a macro that pipes to such a > command and then feeds it to

Re: mutt and stdin

2012-04-17 Thread Grant Edwards
On 2012-04-17, Luis Mochan wrote: > On Tue, Apr 17, 2012 at 01:10:43PM -0300, Andrei Mikhailov wrote: >> Thank you ! >> I think I now understand, more or less, why it does not work as expected. >> Perhaps my question is more about Linux, than about Mutt. What I really >> want to achieve is the fol

Re: mutt and stdin

2012-04-17 Thread David Champion
* On 17 Apr 2012, Derek Martin wrote: > On Tue, Apr 17, 2012 at 11:36:04AM -0500, David Champion wrote: > > TTY=$(tty); echo mymaildir | xargs -I{} sh -c "mutt -f '{}' <$TTY" > > Nice! I wasn't familiar with that usage of xargs... It even appears to be fairly portable. BSD xargs also has -o, w

Re: mutt and stdin

2012-04-17 Thread Derek Martin
On Tue, Apr 17, 2012 at 11:36:04AM -0500, David Champion wrote: > TTY=$(tty); echo mymaildir | xargs -I{} sh -c "mutt -f '{}' <$TTY" Nice! I wasn't familiar with that usage of xargs... -- Derek D. Martinhttp://www.pizzashack.org/ GPG Key ID: 0xDFBEAD02 -=-=-=-=- This message is posted fro

Re: mutt and stdin

2012-04-17 Thread Andrei Mikhailov
Thank you, this solved my problem. I knew it was a Linux question. > TTY=$(tty); echo mymaildir | xargs -I{} sh -c "mutt -f '{}' <$TTY" > > -- > David Champion • d...@uchicago.edu • IT Services • University of Chicago

Re: mutt and stdin

2012-04-17 Thread Brian Cuttler
I'd thought he could put the data into a file and then invoke mutt, something like. mutt -s $subject_string $delivery_to_string < message_file At least this works for me when using mailx, but that is a very different utility than mutt. On Tue, Apr 17, 2012 at 11:24:10AM -0500, Luis Mochan w

Re: mutt and stdin

2012-04-17 Thread David Champion
* On 17 Apr 2012, Derek Martin wrote: > On Tue, Apr 17, 2012 at 11:46:15AM -0300, Andrei Mikhailov wrote: > > I would expect that this command: > > > > echo mymaildir | xargs mutt -f > > > > be equivalent to: > > > > mutt -f mymaildir > > > > But instead, mutt complains about ``no recipie

Re: mutt and stdin

2012-04-17 Thread Gary Johnson
On 2012-04-17, Andrei Mikhailov wrote: > Thank you ! > I think I now understand, more or less, why it does not work as expected. > Perhaps my question is more about Linux, than about Mutt. What I really > want to achieve is the following: > > echo "mydata" | myscript.sh > > where myscript.sh is

Re: mutt and stdin

2012-04-17 Thread Luis Mochan
On Tue, Apr 17, 2012 at 01:10:43PM -0300, Andrei Mikhailov wrote: > Thank you ! > I think I now understand, more or less, why it does not work as expected. > Perhaps my question is more about Linux, than about Mutt. What I really > want to achieve is the following: > > echo "mydata" | myscript.s

Re: mutt and stdin

2012-04-17 Thread Andrei Mikhailov
Thank you ! I think I now understand, more or less, why it does not work as expected. Perhaps my question is more about Linux, than about Mutt. What I really want to achieve is the following: echo "mydata" | myscript.sh where myscript.sh is the following: #!/bin/bash some-program-which-rea

Re: mutt and stdin

2012-04-17 Thread Derek Martin
On Tue, Apr 17, 2012 at 11:46:15AM -0300, Andrei Mikhailov wrote: > I would expect that this command: > > echo mymaildir | xargs mutt -f > > be equivalent to: > > mutt -f mymaildir > > But instead, mutt complains about ``no recipient specified''. > Please help me to figure this out! The p

mutt and stdin

2012-04-17 Thread Andrei Mikhailov
Dear Mutt Users, I am not sure if this is a bug of mutt, or my poor knowledge of Linux. I would expect that this command: echo mymaildir | xargs mutt -f be equivalent to: mutt -f mymaildir But instead, mutt complains about ``no recipient specified''. Please help me to figure this out! An

Re: Forwarding emails to kindle

2012-04-17 Thread SK
> For articles that appear in web pages I suggest using a service like > Instapaper. It will save them for you and automatically send you an > email to your u...@free.kindle.com address every morning with the most > recent 20 articles. It works a treat. Already have a good workflow for articles an

Re: Forwarding emails to kindle

2012-04-17 Thread David Champion
Offhand, the most straightforward way I can think of to do this without including headers is to use a command designed to filter those appropriately. Roughly, I'd look at using a macro that pipes to such a command and then feeds it to another mutt instance to send to Amazon. Something like: macro

Re: Forwarding emails to kindle

2012-04-17 Thread Leo Vegoda
Hi, On Tue, Apr 17, 2012 at 1:46 AM, SK wrote: [...] > Need: I would like to read articles / long emails distributed in > mailing lists via kindle > > step 1: browse though emails in mutt in laptop > step 2: forward some interesting emails to x...@free.kindle.com address > step 3: download the

Re: Forwarding emails to kindle

2012-04-17 Thread SK
>> > In case you haven't already tried this, you can manually change the mime >> > type of the attachment from the compose menu using (bound to >> > ^T by default), and set it to "text/plain" >> >> That does not work for two reasons: >> >> - amazon does not recognise the forwarded attachment as "a

Re: Forwarding emails to kindle

2012-04-17 Thread Dennis Guhl
On Tue, Apr 17, 2012 at 02:29:26PM +0200, SK wrote: > Toby Cubitt wrote: [..] > > In case you haven't already tried this, you can manually change the mime > > type of the attachment from the compose menu using (bound to > > ^T by default), and set it to "text/plain" > > That does not work for t

Re: Forwarding emails to kindle

2012-04-17 Thread SK
>> I am having issue with step 2 because every email I forward to >> Amazon/kindle comes back with the error: >> >> --error msg-- >> Your message to x...@free.kindle.com, sent at xxx GMT did not include >> any attached documents or image files. >> >> The Kindle Personal Document Service can convert

Re: Forwarding emails to kindle

2012-04-17 Thread Toby Cubitt
On Tue, Apr 17, 2012 at 10:46:59AM +0200, SK wrote: > I am having issue with step 2 because every email I forward to > Amazon/kindle comes back with the error: > > --error msg-- > Your message to x...@free.kindle.com, sent at xxx GMT did not include > any attached documents or image files. > > Th

Forwarding emails to kindle

2012-04-17 Thread SK
Hi all, I am trying to get a workflow setup as follows: Need: I would like to read articles / long emails distributed in mailing lists via kindle step 1: browse though emails in mutt in laptop step 2: forward some interesting emails to x...@free.kindle.com address step 3: download the emails as