Re: Sending all mail in IMAP folder from command line

2020-11-22 Thread Cameron Simpson
On 21Nov2020 23:42, Kurt Hackenberg wrote: >On 2020-11-21 21:31, Cameron Simpson wrote: >> The draft file is expected to contain just an RFC822 email: >> headers and a body. Although it is not an mbox file, if an mbox "From >> " line is present, it will be silently discarded. > >Good.

Re: Sending all mail in IMAP folder from command line

2020-11-21 Thread Kurt Hackenberg
On 2020-11-21 21:31, Cameron Simpson wrote: This then? The draft file is expected to contain just an RFC822 email: headers and a body. Although it is not an mbox file, if an mbox "From " line is present, it will be silently discarded. Good. I'll figure out how to do a *roff n

Re: Sending all mail in IMAP folder from command line

2020-11-21 Thread Cameron Simpson
On 21Nov2020 16:37, Kurt Hackenberg wrote: >On 2020-11-21 00:10, Cameron Simpson wrote: >>How about: >> >>The draft file is expected to contain just an RFC822 email: >>headers and a body. Although it is not an mbox file, if an mbox "From >>" pseudo-header is present, it will be silentl

Re: Sending all mail in IMAP folder from command line

2020-11-21 Thread raf
On Sat, Nov 21, 2020 at 04:10:24PM +1100, Cameron Simpson wrote: > On 21Nov2020 13:07, raf wrote: > >On Sat, Nov 21, 2020 at 10:32:03AM +1100, Cameron Simpson > >wrote: > >> New ticket for amending the manual entry here: > >> https://gitlab.com/muttmua/mutt/-/issues/302 > >> Comments on w

Re: Sending all mail in IMAP folder from command line

2020-11-21 Thread Kurt Hackenberg
On 2020-11-21 00:10, Cameron Simpson wrote: How about something like this: The draft file is expected to contain just the email. It is not an mbox file. However, if an mbox From_ header is present, it will be accepted. Hmm. Pretty wordy. But not bad. How about: The draft file is ex

Re: Sending all mail in IMAP folder from command line

2020-11-20 Thread Cameron Simpson
On 21Nov2020 13:07, raf wrote: >On Sat, Nov 21, 2020 at 10:32:03AM +1100, Cameron Simpson >wrote: >> New ticket for amending the manual entry here: >> https://gitlab.com/muttmua/mutt/-/issues/302 >> Comments on wording/clarity welcome. > >In general, I usually think saying "ignored" is >ambi

Re: Sending all mail in IMAP folder from command line

2020-11-20 Thread raf
On Sat, Nov 21, 2020 at 10:32:03AM +1100, Cameron Simpson wrote: > On 19Nov2020 14:14, raf wrote: > >Just a thought: if it needs to have a From_ mbox > >message header (or if it needs to not have that), it > >might be worth mentioning. Even if the mbox message > >header is optional, it might be

Re: Sending all mail in IMAP folder from command line

2020-11-20 Thread Cameron Simpson
On 19Nov2020 14:14, raf wrote: >Just a thought: if it needs to have a From_ mbox >message header (or if it needs to not have that), it >might be worth mentioning. Even if the mbox message >header is optional, it might be worth mentioning that >it's optional. And I think there are several variation

Re: Sending all mail in IMAP folder from command line

2020-11-19 Thread Kurt Hackenberg
On 2020-11-19 04:29, Cameron Simpson wrote: ‐H draft Specify a draft file which contains header and body to use to send a message. ... Just a thought: if it needs to have a From_ mbox message header (or if it needs to not have that)... I'm pretty sure no From_ is

Re: Sending all mail in IMAP folder from command line

2020-11-19 Thread Cameron Simpson
On 19Nov2020 14:14, raf wrote: >On Thu, Nov 19, 2020 at 10:40:43AM +1100, Cameron Simpson >wrote: >> The man page says: >> >>‐H draft Specify a draft file which contains header and body >> to use to send a message. >> >> Aside from saying that the message includes head

Re: Sending all mail in IMAP folder from command line

2020-11-18 Thread raf
On Thu, Nov 19, 2020 at 10:40:43AM +1100, Cameron Simpson wrote: > On 18Nov2020 12:08, Olli Savolainen wrote: > >> You could for this: > >> - save all the messages to a local filesystem maildir folder > >> - write a short shell loop to run mutt -H for each message file in the > >> maildir > > >

Re: Sending all mail in IMAP folder from command line

2020-11-18 Thread Cameron Simpson
On 18Nov2020 12:08, Olli Savolainen wrote: >> You could for this: >> - save all the messages to a local filesystem maildir folder >> - write a short shell loop to run mutt -H for each message file in the >> maildir > >Thanks! This is what I was looking for. Couldn’t find any documentation >on wha

Re: Sending all mail in IMAP folder from command line

2020-11-18 Thread Olli Savolainen
On Sun, Nov 15, 2020 at 23:19, Cameron Simpson wrote: > On 15Nov2020 09:56, Olli Savolainen wrote: >>I have draft messages appearing in an imap folder. I would like to >>write a script that reads a message (or all messages) from that folder >>and sends it as it is, then moving the message to ima

Re: Sending all mail in IMAP folder from command line

2020-11-15 Thread Gregory Heytings
I have draft messages appearing in an imap folder. I would like to write a script that reads a message (or all messages) from that folder and sends it as it is, then moving the message to imap Sent folder. It seems something like mutt -H would do the job, just can’t figure out how to get i

Re: Sending all mail in IMAP folder from command line

2020-11-15 Thread raf
On Mon, Nov 16, 2020 at 08:19:21AM +1100, Cameron Simpson wrote: > On 15Nov2020 09:56, Olli Savolainen wrote: > >I have draft messages appearing in an imap folder. I would like to > >write a script that reads a message (or all messages) from that folder > >and sends it as it is, then moving t

Re: Sending all mail in IMAP folder from command line

2020-11-15 Thread Cameron Simpson
On 15Nov2020 09:56, Olli Savolainen wrote: >I have draft messages appearing in an imap folder. I would like to >write a script that reads a message (or all messages) from that folder >and sends it as it is, then moving the message to imap Sent folder. > >It seems something like mutt -H would do

Re: Sending all mail in IMAP folder from command line

2020-11-15 Thread Olli Savolainen
>> >> I have draft messages appearing in an imap folder. I would like to write >> a script that reads a message (or all messages) from that folder and >> sends it as it is, then moving the message to imap Sent folder. >> >> It seems something like mutt -H would do the job, just can’t figure out >>

Sending all mail in IMAP folder from command line

2020-11-15 Thread Olli Savolainen
Hi, I have draft messages appearing in an imap folder. I would like to write a script that reads a message (or all messages) from that folder and sends it as it is, then moving the message to imap Sent folder. It seems something like mutt -H would do the job, just can’t figure out how to get i