Re: [Mutt] pretty-print mutt emails

2021-11-22 Thread Globe Trotter via Mutt-users
> On Monday, November 22, 2021, 08:44:58 AM CST, Mihai Lazarescu 
>  wrote: 

>> I wonder if I can get a dialog that gives me a choice of 1 or 2 pages 
>> printing. Perhaps I have two scripts for that?

> With zathura apparently not, but with evince (and possibly other viewers) yes.

Actually, good point, I can get this to work through the print option, and that 
is what i have now decided to do.

Thanks!


Re: [Mutt] pretty-print mutt emails

2021-11-22 Thread Globe Trotter via Mutt-users
Thanks!


> On Monday, November 22, 2021, 08:19:52 AM CST, Mihai Lazarescu 
>  wrote: 

> I use without problems muttprint 0.73 in Fedora from within a wrapper script, 
> which removes spamassassin markings, converts to PDF using ps2pdf, and 
> finally opens it with xdg-open for checking and printing using the regular 
> dialog.

> Mihai

This works when used with this script that I found on stackoverlow (I think). I 
have not tried the other scripts but presumably they work too. 


!/bin/bash

read tmpdir < <(mktemp -d /tmp/print_preview-$USER-)
cd $tmpdir || exit 1

trap "cd && rm -fR $tmpdir;exit" 0 1 2 3 6 9 15

cat >file.eml
muttprint -P A4 -p TO_FILE:file.ps  1 )) &&
    muttprint -2 -P A4 -p TO_FILE:file.ps 

Re: pretty-print mutt emails

2021-11-22 Thread Globe Trotter via Mutt-users
> On Monday, November 22, 2021, 02:35:24 AM CST, Jean Louis  
> wrote: 


> I use muttprint without problems. Find it attached, as maybe I have changed 
> something in the script, you canmake the diff.

>Then I have this settings in ~/.mutt/defaults which I load from ~/.mutt/muttrc

> set print_command="/home/data1/protected/bin/muttprint_print.sh"

> And the script `muttprint_print.sh' is attached as well.


Thanks, so I set all this, and get:



/home/gt/bin/muttprint_print: /home/gt/bin/muttprint: /usr/bin/perl^M: bad 
interpreter: No such file or directory
Error: /undefinedfilename in (/tmp/muttprint/2021-11-22-07:42:10-Monday.ps)
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--   
--nostringval--   false   1   %stopped_push
Dictionary stack:
   --dict:764/1123(ro)(G)--   --dict:0/20(G)--   --dict:75/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
GPL Ghostscript 9.55.0: Unrecoverable error, exit code 1
Press any key to continue...

Thanks again!
GT


Re: pretty-print mutt emails

2021-11-22 Thread Globe Trotter via Mutt-users
> On Monday, November 22, 2021, 02:53:17 AM CST, Anders Damsgaard 
>  wrote: 

> I use the following sh(1) script to format the message as troff andconvert to 
> pdf: https://adamsgaard.dk/tmp/muttprint-groff.sh

>It's a bit ugly in places, but it works for me.  This is an example: 

https://adamsgaard.dk/tmp/muttprint-example.pdf

> I bind it in my muttrc with the following:

>    set print_command="$HOME/.config/mutt/muttprint-groff.sh"

This gives me the following errors:

infile = /home/gt/tmp/mutt_SnvEqj
tmpfile = /home/gt/tmp/mutt_KAdWKA
outfile = /home/gt/tmp/mutt_f8z8fN.pdf
formatting /home/gt/tmp/mutt_SnvEqj to groff format in /home/gt/tmp/mutt_KAdWKA
running groff /home/gt/tmp/mutt_KAdWKA /home/gt/tmp/mutt_f8z8fN.pdf
troff: fatal error: can't find macro file s
Press any key to continue...

I don't quite get what the problem is.

Thanks again!


pretty-print mutt emails

2021-11-21 Thread Globe Trotter via Mutt-users
What is the recommended way to pretty-print mutt emails? I found a sourceforge 
perl script called muttprint but that was last updated in 2008, and I was 
wondering what folks here recommended?

Thanks!


Re: how to add domain name to email address (that is different from hostname)

2021-10-16 Thread Globe Trotter via Mutt-users
> Have you tried setting hostname=yahoo.com in your .muttrc?  I haven't tried 
> it, but it seems like that would work.

Thank you very much!

set hostname='yahoo.com' 

does exactly what I want (at this point, my needs are not more sophisticated) 
:-)


-- 
> My e-mail uses a whitelist and tags (AKA "plus addressing").  If you're not 
> on the whitelist, your mail will bounce unless you use a tag 
> (unicorn+@sdf.org).  If that should happen, please go to 
> https://unicorn.sdf.org/HowToEmailMe.  If I've recently sentyou e-mail, 
> you're on a temporary whitelist.


I will try this. Thank you again!


Re: how to add domain name to email address (that is different from hostname)

2021-10-15 Thread Globe Trotter via Mutt-users



On Friday, October 15, 2021, 11:32:38 PM CDT, Jean Louis  
wrote: 





> * Globe Trotter via Mutt-users  [2021-10-16 03:18]:

>> Hi, 
> 
>> I am wondering how it is possible automagically add a given domain name to 
>> an email address that is not in my address book.
> 
>> Specifically, if I type joe and joe is in my addressbook (or is not a 
>> complete email address) as my recipient, I get:
> 
> joe@hostname
>> 
>> what I want to happen is for joe to automagically expand to j...@yahoo.com 
>> (say).



> You use "a" to add aliases, just try and you may figure it out.

Thank you!

Sorry if I did not follow your answer, but my question is not about adding or 
using aliases, I know how to do that, but how to automagically add a proper 
domain name to some userid while sending email.


As I mentioned if I type joe in the To: prompt, it expands to joe@localhost. I 
want this to expand to a detailed j...@yahoo.com (where that @yahoo.com is 
added by default since i do not have joe as an alias in my address book.). 

Does this clarify?


how to add domain name to email address (that is different from hostname)

2021-10-15 Thread Globe Trotter via Mutt-users
Hi, 

I am wondering how it is possible automagically add a given domain name to an 
email address that is not in my address book.

Specifically, if I type joe and joe is in my addressbook (or is not a complete 
email address) as my recipient, I get:

joe@hostname

what I want to happen is for joe to automagically expand to j...@yahoo.com 
(say).


This should be possible, but how do I do this?

TIA!


Re: question/suggestion

2021-10-07 Thread Globe Trotter via Mutt-users
So, in my opinion, communication is most effective if the recipient easily 
comprehends what is conveyed to him/her. I suspect most recipients of our 
e-mails do not know much about mutt except that you likely get it from a place 
other than a breeder.

So, [mutt-users@mutt.org: Email Subject] makes a lot of sense if the recipient 
has a clue what the first part means. Most of my recipients get a forward using 
mutt likely only from me. So, the original email address' import (which I think 
is a great idea) is lost. 

Hence I was suggesting putting in:

FW Frm mutt-users@mutt.org: Email Subject

Yes, it takes a few more characters but brings the benefit of greater clarity. 

Another option is to drop the [ ] and instead put in a >> at the very 
beginning. Might address the concern on adding characters. So, 

So, [mutt-users@mutt.org: Email Subject]

could become:

>>mutt-users@mutt.org: Email Subject

In the header, would be clearer?

Would this be a better default?

Thanks again!


question/suggestion

2021-10-07 Thread Globe Trotter via Mutt-users
When I foward my mutt-composed email, I have something like the following, 
which I believe is the default behaviour:

[mutt-users@mutt.org: Email subject]

which I think is very nice because it gives the recipient an idea of whether 
the originator of this email is someone s/he should even bother reading from.

However, most e-mailers are not mutt, so most people probably have no idea what 
this means. 

May I suggest the following default that clarifies better what is going on, or 
something like that, in the subject line?

[FW: from mutt-users@mutt.org: Email subject]

Thoughts?

Thanks a bunch!

GT.



Re: using mutt with postfix and localhost:25

2021-09-12 Thread Globe Trotter via Mutt-users
 On Sunday, September 12, 2021, 09:55:56 AM CDT, Jean Louis  
wrote: 





* Globe Trotter via Mutt-users  [2021-09-12 17:47]:
> Thank you for this. OK, so you are correct in that doing nothing
> works on my office machine but not when I connect to it remotely to
> deliver my mail using ssh -L etc and am using that server to deliver
> my email. 

Good that you explained your method of the connection.

And did you verify that you can reach localhost at port 25 with
certainty?

You can verify it by using `telnet':

$ telnet localhost 25

and if there is banner then you have SMTP server forwarded to local

host.


Ports under 1024 can be forwarded only as `root' as they are
considered privileged. 

If you cannot reach the port 25 on localhost try forwarding it to port
1025 and then dispatch to that port.




-- 
Jean


So, I do not know if I can do this, but I can send email by specifically 
including the smtp with port 25. I dont really need it for anything else. It is 
quite likely that I am not understanding the import of your question.

All I do is:

sudo  ssh -L 25:mailhub:25 username@your_server

And then, configuring 'localhost' as my smtp server on port 25 gets my mail 
sent directly forward through the SSH link.

Thanks!



Re: using mutt with postfix and localhost:25

2021-09-12 Thread Globe Trotter via Mutt-users
Thank you for this. OK, so you are correct in that doing nothing works on my 
office machine but not when I connect to it remotely to deliver my mail using 
ssh -L etc and am using that server to deliver my email. 

I am not able to find any notification as to what goes wrong beyond the fact 
that the mail does not get delivered. 

Hope this explains.

Thanks!






On Saturday, September 11, 2021, 07:48:52 PM CDT, raf  wrote: 





On Sat, Sep 11, 2021 at 08:23:04AM -0700, Michael Slouber 
 wrote:

> On 09/11/21 01:24PM, Globe Trotter via Mutt-users wrote:
> > Thanks very much!  I am unable to send mail using postfix. However,
> > the same setting makes it work for sylpheed when I simply specify
> > localhost:25 in the SMTP server so I think that the postfix is set
> > up all right, perhaps.

If postfix is configured correctly, and mail submitted
via localhost:25 does get delivered, then the default
value for mutt's sendmail parameter should also work.

What do you mean when you say you are unable to send
mail using postfix? Sending mail using postfix means
using a mail user agent like mutt which by default
submits mail for delivery by invoking postfix's
sendmail-compatible /usr/sbin/sendmail program to
submit mail to postfix's mail queue, after which
postfix will deliver it.

What acually goes wrong when you try to send email from
mutt with the default setting for the sendmail
parameter?

> This setting in Muttrc works for me:
> 
> set smtp_url = "smtp://localhost:25"

This is intended for using a remote smarthost to send
mail through. It shouldn't be necessary for localhost.
It works, but it's probably slightly slower because it
has to perform the SMTP dialogue.

If postfix can deliver mail submitted by mutt this way,
it should also be able to deliver mail submitted by
mutt the default way.


cheers,
raf



Re: using mutt with postfix and localhost:25

2021-09-11 Thread Globe Trotter via Mutt-users
And that does it, thank you!! On to the next task now.






On Saturday, September 11, 2021, 10:30:47 AM CDT, Michael Slouber via 
Mutt-users  wrote: 





On 09/11/21 01:24PM, Globe Trotter via Mutt-users wrote:

> Thanks very much!  I am unable to send mail using postfix. However, the same 
> setting makes it work for sylpheed when I simply specify localhost:25 in the 
> SMTP server so I think that the postfix is set up all right, perhaps.
> 
> Is there a way to explicitly put localhost with port 25 in the send mail?
> 
> Btw, I have not actually managed to set up two accounts with mutt, that is my 
> next target after resolving this.
> 
> Thanks!
> 
> 
> 
> 
> 
> 
> On Saturday, September 11, 2021, 02:24:52 AM CDT, raf  wrote: 
> 
> 
> 
> 
> 
> On Sat, Sep 11, 2021 at 05:31:13AM +, Globe Trotter via Mutt-users 
>  wrote:
> 
> 
> > Hi,
> > 
> > I have an account where I need to send email through localhost
> > (with port 25). I am using postfix currently, but I do not know
> > much. Anyway, on sylpheed, I used to say: localhost:25 as the SMTP
> > server and life was good. So, my question is how do I set it up for
> > this account to use SMTP server localhost:25? (The other accounts are
> > personal and will use gmx, etc, SMTP settings). I have been using
> > postfix because my work email uses postfix as given by my sysadmin (I
> > think that it changes the relayhost name) and perhps the same can be
> > done with something like msmtp but i do not know.
> > 
> > Thanks!
> 
> 
> The typical way to submit mail locally is via
> /usr/sbin/sendmail. That's the default in mutt (and
> probably all other MUAs). The explicit default is:
> 
>   set sendmail="/usr/sbin/sendmail -oem -oi"
> 
> You shouldn't have to do anything to make this happen.
> It's the default.
> 
> Technically, postfix's sendmail binary doesn't use SMTP
> (it runs postdrop to add the message to postfix's mail
> queue) but that shouldn't matter. It's functionally
> equivalent to using SMTP on localhost:25, so you
> shouldn't need to care.
> 
> But, if you really have a reason to avoid the default,
> more efficient, already working thing, and make
> absolutely sure that you are directly connecting to
> localhost:25, you should search for a different
> sendmail-compatible program that does SMTP to
> localhost:25, install it, and then set mutt's sendmail
> variable to refer to that:
> 
>   In ~/.muttrc:
>   set sendmail="/path/to/other/sendmail -oem -oi"
> 
> But it sounds very much as though you really don't need
> to do this. It sounds like you just need the local mail
> server to deliver mail sent from mutt, and if you have
> postfix installed locally and configured OK, that will
> just happen.
> 
> cheers,
> raf

> 

This setting in Muttrc works for me:

set smtp_url = "smtp://localhost:25"







Re: using mutt with postfix and localhost:25

2021-09-11 Thread Globe Trotter via Mutt-users
Thanks very much!  I am unable to send mail using postfix. However, the same 
setting makes it work for sylpheed when I simply specify localhost:25 in the 
SMTP server so I think that the postfix is set up all right, perhaps.

Is there a way to explicitly put localhost with port 25 in the send mail?

Btw, I have not actually managed to set up two accounts with mutt, that is my 
next target after resolving this.

Thanks!






On Saturday, September 11, 2021, 02:24:52 AM CDT, raf  wrote: 





On Sat, Sep 11, 2021 at 05:31:13AM +, Globe Trotter via Mutt-users 
 wrote:


> Hi,
> 
> I have an account where I need to send email through localhost
> (with port 25). I am using postfix currently, but I do not know
> much. Anyway, on sylpheed, I used to say: localhost:25 as the SMTP
> server and life was good. So, my question is how do I set it up for
> this account to use SMTP server localhost:25? (The other accounts are
> personal and will use gmx, etc, SMTP settings). I have been using
> postfix because my work email uses postfix as given by my sysadmin (I
> think that it changes the relayhost name) and perhps the same can be
> done with something like msmtp but i do not know.
> 
> Thanks!


The typical way to submit mail locally is via
/usr/sbin/sendmail. That's the default in mutt (and
probably all other MUAs). The explicit default is:

  set sendmail="/usr/sbin/sendmail -oem -oi"

You shouldn't have to do anything to make this happen.
It's the default.

Technically, postfix's sendmail binary doesn't use SMTP
(it runs postdrop to add the message to postfix's mail
queue) but that shouldn't matter. It's functionally
equivalent to using SMTP on localhost:25, so you
shouldn't need to care.

But, if you really have a reason to avoid the default,
more efficient, already working thing, and make
absolutely sure that you are directly connecting to
localhost:25, you should search for a different
sendmail-compatible program that does SMTP to
localhost:25, install it, and then set mutt's sendmail
variable to refer to that:

  In ~/.muttrc:
  set sendmail="/path/to/other/sendmail -oem -oi"

But it sounds very much as though you really don't need
to do this. It sounds like you just need the local mail
server to deliver mail sent from mutt, and if you have
postfix installed locally and configured OK, that will
just happen.

cheers,
raf



using mutt with postfix and localhost:25

2021-09-10 Thread Globe Trotter via Mutt-users
Hi,

I have an account where I need to send email through localhost (with port 25). 
I am using postfix currently, but I do not know much. Anyway, on sylpheed, I 
used to say: localhost:25 as the SMTP server and life was good. So, my question 
is how do I set it up for this account to use SMTP server localhost:25? (The 
other accounts are personal and will use gmx, etc, SMTP settings). I have been 
using postfix because my work email uses postfix as given by my sysadmin (I 
think that it changes the relayhost name) and perhps the same can be done with 
something like msmtp but i do not know.

Thanks!


Re: displaying html links inside mutt

2021-09-10 Thread Globe Trotter via Mutt-users
# On Friday, September 10, 2021, 01:06:13 PM CDT, Jon LaBadie 
 wrote: 





On Fri, Sep 10, 2021 at 05:22:18PM +, Globe Trotter via Mutt-users wrote:

>
> As an aside, is it possible to forward html messages (that only arrive as 
> text/html)
> as attachments? Forwarding incorporates them as text and does not carry 
> forward the hidden link.

>

# Not for that purpose, but I sometimes "bounce" (bound to "B" in my mutt) 
messages to a new recipient.  The entire message is resent as if it were 
originally addressed to the new recipient.  The headers will still show that 
the message passed through your system, but the new recipient may not even 
realize it was first addressed to you.

# To my knowledge, you can't add any comments to the bounced message.

-- 

Thanks, Jon! I had not known bounce before mutt and I do use it when I do not 
have to add any comments. But other than that, can I send (forward) the 
original email as an attachment?


Re: displaying html links inside mutt

2021-09-10 Thread Globe Trotter via Mutt-users
Thank you for this, too. So, the problem appears to me to show up whenever 
there is no text/plain but only text/html  then i get on the screen:

[-- Autoview using w3m -I 'utf-8' -T text/html -dump --]

   []
   Review your proof
   STA4_EV_STA4416..

...
and down below, I have:

[]

but none of this have an actual link associated with them. However, if I save 
the html and use w3m on it, I do see the link. So, the problem is that somehow, 
perhaps in my call to w3m using mutt, I lose the link. 

I suspect that these sorts of emails that I have a problem with are from 
automated setups. I also have issues with surveymonkey and other things like 
that.

As an aside, is it possible to forward html messages (that only arrive as 
text/html) as attachments? Forwarding incorporates them as text and does not 
carry forward the hidden link.

Many thanks!







On Friday, September 10, 2021, 11:55:12 AM CDT, Ofer Inbar  
wrote: 





A related problem you may be experiencing is that a lot of automated
email, and a lot of mailing list authoring software (used by lists
you may subscribe to) generate faulty multipart emails.  Often, they
automatically create a plain text version from the HTML content that
the sender created, but fail to include inline URLs.  For example,
if the sender of the message wrote some text with a link, it may be
translated to "some text" in the html version
of the message, and just as "some text" in the plain text version.
So, if you have mutt configured to show you the plain text version
of multipart messages, the URLs may not be in there at all.  If you
use mutt's "v" comment from the index, you can look at the text/plain
and text/html versions of the email and see if that's the problem.
  -- Cos


Re: displaying html links inside mutt

2021-09-10 Thread Globe Trotter via Mutt-users








# On Friday, September 10, 2021, 06:45:24 AM CDT, Jean Louis  
wrote: 





* Jean Louis  [2021-09-10 09:56]:
> > I can open the html in an external browser and there I find the
> > link, but I would like an in-mutt solution (I don't really like
> > going to the browser to read my email if I can help it). This is
> > becoming quite a big concern for me.

# My solution is not really what you want like to open links in mutt directly 
but solution with `elinks' does stay in the console mode until you wish to open 
the link in external graphical browser.

#Another solution inside of virtual terminal is from:
https://lukas.zapletalovi.com/2013/07/hidden-gems-of-xterm.html

#Open URL

#Best feature ever. I waited for years for this one. There is a new
#event called exec-formatted which allows you to execute arbitrary
#commands. If you make a PRIMARY selection before that, you can open
#URLs in browser easily. Do this:

#XTerm*translations: #override Shift : exec-formatted("xdg-open '%t'", 
PRIMARY)  select-start() select-end()

#in ~/.Xdefaults
# and the XTerm solution may not be so functional.



Thank you for this, I like xterm but for the fact that it does not have tabs, 
however, I was not able to get the above to work. I don't quite understand what 
it means to have a PRIMARY selection in the context of the links. All I would 
like is to see the existence and the URL of the link, and to forward it when 
needed. 



#Also to mention is `urlscan':

#Description    : Mutt and terminal url selector
#URL            : https://github.com/firecat53/urlscan


I see, thank you for this. I note that it is available for my distribution, but 
this also requires an active press of \cb on my part. I want to notice when 
there is a link, hidden or otherwise (this last is not a problem). Any 
suggestions on that?



#And then there are other terminal emulators that will recognize URL and 
underline it for you.





-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/


Re: displaying html links inside mutt

2021-09-10 Thread Globe Trotter via Mutt-users


Jean,

Thanks for this, too! 

I see, so I have the default set to w3m and I use: 

text/html; w3m -I %{charset} -T text/html -dump; copiousoutput; print = 
select-browser %s; nametemplate=%s.html

where select-browser is a perl script, perhaps from some members of this group.

So, I like w3m quite a bit but it appears that it may not show these hidden 
links, at least in the way I have been using it. 

I will try with the other options mentioned in this e-mail and the other ones.

Thank you very much again.







# On Friday, September 10, 2021, 01:55:42 AM CDT, Jean Louis  
wrote: 





* Globe Trotter via Mutt-users  [2021-09-10 07:30]:

> Hello,
> 
> I am still new to mutt (having moved from sylpheed) and finding my way. 
> Great, but one of the major issues that I have been having is that sometimes 
> I get some e-mail which is written in html but which has no indication of any 
> links, but has some links that are embedded/hidden. So, there are two things 
> I would like to say here. In the first case, I get an email and says, for 
> instance: "Edit here." But there is no indication that there is a link, much 
> less what the link is. So, in many cases, I am finding myself just not even 
> realizing these actions on emails (not in the above case, because it 
> specifically says that there is an action required on my part, but sometimes, 
> the text is ambiguous). I can open the html in an external browser and there 
> I find the link, but I would like an in-mutt solution (I don't really like 
> going to the browser to read my email if I can help it). This is becoming 
> quite a big concern for me.
> 
> To be sure, there are some cases where I get the links displayed,
> but this is not always, and I am trying to find out how to make it
> such that it is displayed always.


I know a solution that works well:

1) Make HTML attachments to be open with `elinks' browser; this is
  good enough to open links in console mode; but then follow to open
  up links with external browser;

  In ~/.mailcap I have following:
  
  text/html;  elinks -force-html '%s';

2) Go into setup in `elinks' with `o' to options, "Document" then "URI
  Passing" and then press `a' to add new option, you may name it like
  "External" press `e' on that option and enter your favorite
  browser, I have something like "iceweasel %c" -- which means if I
  wish to open the link with external browser, I would use option
  under menu "Link" -> "Pass link URI to external command";

3) To make it respond quickly on the key, go to "Setup" -> "Keybinding
  manager" -> "Main mapping" -> "Pass link URI to external command"
  and press ENTER, choose your keybinding, I have ";" for example;

4) When you wish to view HTML attachment, then you press enter in
  attachment menu and `elinks' browser will open. You can read the
  HTML document and browse with `elinks' the Internet. If you wish to
  open the link in external browser, you press the key binding, in
  this example it was ";"



-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/


Re: displaying html links inside mutt

2021-09-10 Thread Globe Trotter via Mutt-users
# On Friday, September 10, 2021, 12:07:22 AM CDT, Jon LaBadie 
 wrote: 




> On Fri, Sep 10, 2021 at 04:29:03AM +0000, Globe Trotter via Mutt-users wrote:

>Hello,
>
>I am still new to mutt (having moved from sylpheed) and finding my way. Great, 
>but one of the major issues that I have been having is that sometimes I get 
>some e-mail which is written in html but which has no indication of any links, 
>but has some links that are embedded/hidden. So, there are two things I would 
>like to say here. In the first case, I get an email and says, for instance: 
>"Edit here." But there is no indication that there is a link, much less what 
>the link is. So, in many cases, I am finding myself just not even realizing 
>these actions on emails (not in the above case, because it specifically says 
>that there is an action required on my part, but sometimes, the text is 
>ambiguous). I can open the html in an external browser and there I find the 
>link, but I would like an in-mutt solution (I don't really like going to the 
>browser to read my email if I can help it). This is becoming quite a big 
>concern for me.
>
>To be sure, there are some cases where I get the links displayed, but this is 
>not always, and I am trying to find out how to make it such that it is 
>displayed always.
>
>Thank you very much for your suggestions!
>Best wishes

>>> End of included message <<<

# I use the following macro (attached to my F5 key) to read the message using 
lynx.  The think I particularly like is lynx puts in a citationnumber (eg [13]) 
wherever there is a link.  Then it prints the entirelist of citations at the 
end of the message.  I can click on theappropriate citation to follow the link 
in my browser.

# macro index,attach  /html"|/usr/bin/lynx -stdin 
-dump 2> /dev/null | less \n"q 'read html message'

# -- 
# Jon H. LaBadie                





I confirm that this solution works. I wonder if it would be worth it for me to 
make it the default and what that would entail (since everyone seems to be only 
sending email in HTML nowadays). 

Btw, I have a different related issue. When I forward this email with the 
hidden links, the links do not get forwarded. How do I ensure that this happens?

So, when I forwarded using mutt the article that generated the request above, 
only the "Edit Article" text got sent, but not the hidden link with it.


Thanks very much!


displaying html links inside mutt

2021-09-09 Thread Globe Trotter via Mutt-users
Hello,

I am still new to mutt (having moved from sylpheed) and finding my way. Great, 
but one of the major issues that I have been having is that sometimes I get 
some e-mail which is written in html but which has no indication of any links, 
but has some links that are embedded/hidden. So, there are two things I would 
like to say here. In the first case, I get an email and says, for instance: 
"Edit here." But there is no indication that there is a link, much less what 
the link is. So, in many cases, I am finding myself just not even realizing 
these actions on emails (not in the above case, because it specifically says 
that there is an action required on my part, but sometimes, the text is 
ambiguous). I can open the html in an external browser and there I find the 
link, but I would like an in-mutt solution (I don't really like going to the 
browser to read my email if I can help it). This is becoming quite a big 
concern for me.

To be sure, there are some cases where I get the links displayed, but this is 
not always, and I am trying to find out how to make it such that it is 
displayed always.

Thank you very much for your suggestions!
Best wishes


Re: remove restriction on line length in mutt compose

2021-02-14 Thread Globe Trotter via Mutt-users
> On Sunday, February 14, 2021, 6:34:28 AM CST, Remco Rijnders 
>  wrote: 

> Also, search http://www.mutt.org/doc/manual/ for 'wrap' and see if any of the 
> mentioned settings might explain what you are seeing.

Thanks, I think that I have tracked the source of my problem. Fedora 33 (my 
favorite distribution, which however, has not updated mutt for aeons) had an 
update for vim recently, and it is possible that this brought in changes. 
Removing vim which I do not use "solves" this issue, however, I have found that 
the new vim has different colors for e-mail addresses/links etc in the editor 
which I like so I will have to see if I can make vi display different colors 
for links, e-mail addresses, indentations, etc while typing the e-mail in vi 
mode.



Re: remove restriction on line length in mutt compose

2021-02-13 Thread Globe Trotter via Mutt-users








On Saturday, February 13, 2021, 9:58:59 PM CST, Paul Gilmartin 
 wrote: 





On 2021-02-13, at 18:37:20, Globe Trotter wrote:

> 
> I appear to have hit some key while using compose in mutt, and the result is 
> that I end on a new line after a certain length of characters in a new line. 
> What controls this? It is not a vi issue because the editor does no wrap 
> after even a very long, as used to be the case until earlier today.

>  
Perhaps obeying RFC 821:
            text line

              The maximum total length of a text line including the
               is 1000 characters (but not counting the leading
              dot duplicated for transparency).

-- gil



Sorry, no, the linebreak happens at like 80. Can i forcibly set it at 1000, say?


remove restriction on line length in mutt compose

2021-02-13 Thread Globe Trotter via Mutt-users
Hi,

I appear to have hit some key while using compose in mutt, and the result is 
that I end on a new line after a certain length of characters in a new line. 
What controls this? It is not a vi issue because the editor does no wrap after 
even a very long, as used to be the case until earlier today.

Thanks in advance!


Re: display images inline in xterm (while using mutt)

2020-12-05 Thread Globe Trotter via Mutt-users
Thanks very much! I know copr, I am not sure that that site is supported 
though, not having been updated since Fedora 28 (so for over two years). I will 
see if I can contact the packager.

Thanks again!



On Saturday, December 5, 2020, 7:48:17 AM CST, David Champion  
wrote: 





I don't use Fedora or w3m, and can't speak to what problem you're encountering 
with it or whether you'd have the same issue with my script and w3m. If you get 
it to work, I'd be interested in seeing how.

img2sixel is available on fedora, but I'm not sure from which package and I 
don't understand fedora's packaging options. It's not part of w3m for sure. You 
could check here though: 
https://github.com/saitoha/libsixel#using-package-managers. There's something 
there about a "dnf copr" command. 

On Fri, Dec 4, 2020, 21:15 Globe Trotter via Mutt-users  
wrote:
> Thank you for this, and my apologies for top-posting. I have w3m installed 
> but it does not have img2sixel in it (I use Fedora). Could I use w3m (on 
> something else) instead in the code that you have provided?
> 
> Thanks!
> 
> 
> 
> 
> 
> 
> 
> On Friday, December 4, 2020, 3:51:03 PM CST, David Champion  
> wrote: 
> 
> 
> 
> 
> 
> * On 03 Dec 2020, Globe Trotter via Mutt-users wrote: 
>> Hi,
>> 
>> If I use w3m -o ext_image_viewer=0 test.png, I can get the file test.png 
>> inside xterm.
>> 
>> I wanted to do the same on my mutt window (inside xterm). How do I do this?
>> 
>> I tried putting:
>> 
>> image/*;w3m -o ext_imageviewer=0 %s; copious output
>> 
>> However this does not work and gives me the options of w3m in the mutt 
>> window. How can I use this?
>> 
>> TIA!
> 
> This is not an answer to your exact question, but here's how I view
> images in mutt. Note that by default it prompts me for inline or
> external viewing, but I can insert -i or -e in the mailcap entry to
> always use one or the other.  The part that's most related to your
> question is that I use img2sixel for the rendering. img2sixel comes with
> libsixel.  IIRC w3m uses libsixel internally, so img2sixel is a quicker
> path to success using the same underlying tooling if your input is
> definitely an image.
> 
> Sixel is a technique developed by DEC to embed color bitmapped image
> data in a VT320/VT400 device control string (DCS) stream of six-bit
> character data. It's probably the most widely supported technique today
> for inline images in terminal emulators, although some terminals such as
> iTerm support their own bitmap streaming formats as well.
> 
> Unfortunately I haven't found any such technique that works well over
> tmux or screen.  There's a thread about this topic on the tmux github
> issues page, concluding that it's not worth the developers' time to
> support.
> 
> 
> .mailcap:
> image/*; mutt-view-image %s
> 
> 
> .muttrc:
> macro index,pager \Cv 
> 'image/' 'View image 
> attachment'
> 
> 
> mutt-view-image:
> #!/bin/sh
> 
> case "$1" in
>     -i) mode=inline; shift;;
>     -e) mode=external; shift;;
>     *)  : ;;
> esac
> 
> if [ "$mode" = "" ]; then
>     normal=$(stty -g)
>     printf "Do you want to view (i)nline or (e)xternal? "
>     trap "stty $normal" 1 2 3 15
>     stty raw -echo
> 
>     c=$(dd if=/dev/stdin bs=1 count=1 2>/dev/null)
>     stty $normal
>     echo
> 
>     pause=false
>     case "$c" in
>         i*) mode=inline;;
>         e*) mode=external;;
>     esac
> fi
> 
> if [ "$mode" = "inline" ]; then
>     view="img2sixel %s 2>/dev/null"
>     pause=true
> 
> elif [ "$mode" = "external" ]; then
>     view="xopen %s; sleep 10"
> fi
> 
> xopen () {
>     set -x
>     # External open
>     d=$(dirname "$1")
>     f=$(basename "$1")
>     fn="$d/async_$f"
>     ln "$1" "$fn"
>     at now + 5 minutes < rm "$fn" >/dev/null 2>&1
> EOF
>     # This opens on Linux or MacOS
>     (xdg-open "$fn" || open "$fn") 2>/dev/null
> }
> 
> cmd=$(printf "$view" "$1")
> eval $cmd
> if $pause; then
>     restore=$(stty -g)
>     trap "stty $restore" 1 2 3 15
>     echo
>     echo "Press any key to continue..."
>     stty raw -echo
>     dd if=/dev/stdin bs=1 count=1 of=/dev/null
>     stty $restore
> 
> fi
> 
> 
> exit
> 
> -- 
> David Champion • d...@c13.us
> 


Re: display images inline in xterm (while using mutt)

2020-12-04 Thread Globe Trotter via Mutt-users
Thank you for this, and my apologies for top-posting. I have w3m installed but 
it does not have img2sixel in it (I use Fedora). Could I use w3m (on something 
else) instead in the code that you have provided?

Thanks!







On Friday, December 4, 2020, 3:51:03 PM CST, David Champion  
wrote: 





* On 03 Dec 2020, Globe Trotter via Mutt-users wrote: 
> Hi,
> 
> If I use w3m -o ext_image_viewer=0 test.png, I can get the file test.png 
> inside xterm.
> 
> I wanted to do the same on my mutt window (inside xterm). How do I do this?
> 
> I tried putting:
> 
> image/*;w3m -o ext_imageviewer=0 %s; copious output
> 
> However this does not work and gives me the options of w3m in the mutt 
> window. How can I use this?
> 
> TIA!

This is not an answer to your exact question, but here's how I view
images in mutt. Note that by default it prompts me for inline or
external viewing, but I can insert -i or -e in the mailcap entry to
always use one or the other.  The part that's most related to your
question is that I use img2sixel for the rendering. img2sixel comes with
libsixel.  IIRC w3m uses libsixel internally, so img2sixel is a quicker
path to success using the same underlying tooling if your input is
definitely an image.

Sixel is a technique developed by DEC to embed color bitmapped image
data in a VT320/VT400 device control string (DCS) stream of six-bit
character data. It's probably the most widely supported technique today
for inline images in terminal emulators, although some terminals such as
iTerm support their own bitmap streaming formats as well.

Unfortunately I haven't found any such technique that works well over
tmux or screen.  There's a thread about this topic on the tmux github
issues page, concluding that it's not worth the developers' time to
support.


.mailcap:
image/*; mutt-view-image %s


.muttrc:
macro index,pager \Cv 
'image/' 'View image 
attachment'


mutt-view-image:
#!/bin/sh

case "$1" in
    -i) mode=inline; shift;;
    -e) mode=external; shift;;
    *)  : ;;
esac

if [ "$mode" = "" ]; then
    normal=$(stty -g)
    printf "Do you want to view (i)nline or (e)xternal? "
    trap "stty $normal" 1 2 3 15
    stty raw -echo

    c=$(dd if=/dev/stdin bs=1 count=1 2>/dev/null)
    stty $normal
    echo

    pause=false
    case "$c" in
        i*) mode=inline;;
        e*) mode=external;;
    esac
fi

if [ "$mode" = "inline" ]; then
    view="img2sixel %s 2>/dev/null"
    pause=true

elif [ "$mode" = "external" ]; then
    view="xopen %s; sleep 10"
fi

xopen () {
    set -x
    # External open
    d=$(dirname "$1")
    f=$(basename "$1")
    fn="$d/async_$f"
    ln "$1" "$fn"
    at now + 5 minutes </dev/null 2>&1
EOF
    # This opens on Linux or MacOS
    (xdg-open "$fn" || open "$fn") 2>/dev/null
}

cmd=$(printf "$view" "$1")
eval $cmd
if $pause; then
    restore=$(stty -g)
    trap "stty $restore" 1 2 3 15
    echo
    echo "Press any key to continue..."
    stty raw -echo
    dd if=/dev/stdin bs=1 count=1 of=/dev/null
    stty $restore

fi


exit

-- 
David Champion • d...@c13.us


Re: display images inline in xterm (while using mutt)

2020-12-04 Thread Globe Trotter via Mutt-users
Hi, 

Thanks again!

On Friday, December 4, 2020, 11:57:52 AM CST, Patrick Shanahan 
 wrote: 





* mutt users list  [12-04-20 12:45]:

> Hi,
> 
> Thanks again!
> 
> 
> On Friday, December 4, 2020, 11:13:03 AM CST, Patrick Shanahan 
>  wrote:  * mutt users list  [12-04-20 
> 11:44]:> 
> > Hi,
> > 
> > Thanks very much!
> > 
> > > On Friday, December 4, 2020, 10:24:44 AM CST, Patrick Shanahan 
> > >  wrote:  * mutt users list  
> > > [12-04-20 11:07]:
> > > 
> > > Hi,
> > > 
> > > Thanks! 
> > > 
> > >  > On Friday, December 4, 2020, 9:56:23 AM CST, Dave Woodfall 
> > > wrote: 
> > > 
> > > >>  On 04/12/20 05:30, Mutt Users  put forth the 
> > > >>proposition:
> > > >> Hi,
> > > >> If I use w3m -o ext_image_viewer=0 test.png, I can get the file 
> > > >> test.png inside xterm. I wanted to do the same on my mutt window 
> > > >> (inside xterm). How do I do this?
> > > >> I tried putting:
> > > >> image/*;w3m -o ext_imageviewer=0 %s; copious output
> > > >> However this does not work and gives me the options of w3m in the mutt 
> > > >> window. How can I use this?
> > 
> > snipped
> > 
> > > I didn't have it installed, but test installed and get same result. 
> > > removed it and following works w/o it, but w3m must be configured to 
> > > display graphical.  I will have to look to see where, don't remember, too 
> > > old, been too long.
> > 
> > > for me:  w3m display.jpg will display image display.jpg
> > 
> > > ok found it
> > >     Display embedded graphics
> > >     $ w3m -o auto_image=TRUE http://w3m.sourceforge.net
> > 
> > >      ~/.w3m/config
> > >      user defined configuration file; overrides /etc/w3m/config
> >                                           
> > 
> > My apologies, I do not understand. Where do I put this? In my mailcap? 
> > FWIW, I tried:
> > 
> > $ w3m -o auto_image=TRUE test.png
> > 
> > and that opens gpicview for me. 
> > 
> > I copied over the system config /etc/w3m/config to /.w3m/config
> > 
> > and added 
> > ext_image_viewer=0
> > 
> > and then I get the inline images. However, how to do this inside mutt does 
> > not seem to work.
> > 
> > I have the following in my .mailcap:
> > 
> > auto_view image/*
> > image/*;w3m %s; copiousoutput
> > 
> > But what i get is a bunch of text for the image file that I am trying to 
> > display.
> > 
> > Thanks in advance again!
> 
> 
> 
> > I have:
> 
> > text/html; w3m -dump -v -F -T text/html %s; nametemplate=%s.html; 
> > needsterminal
> 
> 
> And what do you do for inline display of images? Btw, I have to say that w3m 
> works pretty well on most of the stuff sent  by html. I wonder if I could 
> make it the default display for e-mails that come in html.


> I don't use w3m, that is not w3m's intended usage use something to display 
> images, such as:
  image/jpg;/usr/bin/display --auto-orient %s

But this does not display inline, inside the terminal. I was trying to get that 
to work. Sorry.





-- 
(paka)Patrick Shanahan      Plainfield, Indiana, USA          @ptilopteri
http://en.opensuse.org   openSUSE Community Member    facebook/ptilopteri
Photos: http://wahoo.no-ip.org/piwigo            paka @ IRCnet freenode


Re: display images inline in xterm (while using mutt)

2020-12-04 Thread Globe Trotter via Mutt-users
Hi,

Thanks again!


On Friday, December 4, 2020, 11:13:03 AM CST, Patrick Shanahan 
 wrote:  * mutt users list  [12-04-20 
11:44]:> 
> Hi,
> 
> Thanks very much!
> 
> > On Friday, December 4, 2020, 10:24:44 AM CST, Patrick Shanahan 
> >  wrote:  * mutt users list  
> > [12-04-20 11:07]:
> > 
> > Hi,
> > 
> > Thanks! 
> > 
> >  > On Friday, December 4, 2020, 9:56:23 AM CST, Dave Woodfall 
> > wrote: 
> > 
> > >>  On 04/12/20 05:30, Mutt Users  put forth the 
> > >>proposition:
> > >> Hi,
> > >> If I use w3m -o ext_image_viewer=0 test.png, I can get the file test.png 
> > >> inside xterm. I wanted to do the same on my mutt window (inside xterm). 
> > >> How do I do this?
> > >> I tried putting:
> > >> image/*;w3m -o ext_imageviewer=0 %s; copious output
> > >> However this does not work and gives me the options of w3m in the mutt 
> > >> window. How can I use this?
> 
> snipped
> 
> > I didn't have it installed, but test installed and get same result. removed 
> > it and following works w/o it, but w3m must be configured to display 
> > graphical.  I will have to look to see where, don't remember, too old, been 
> > too long.
> 
> > for me:  w3m display.jpg will display image display.jpg
> 
> > ok found it
> >     Display embedded graphics
> >     $ w3m -o auto_image=TRUE http://w3m.sourceforge.net
> 
> >      ~/.w3m/config
> >      user defined configuration file; overrides /etc/w3m/config
>                                           
> 
> My apologies, I do not understand. Where do I put this? In my mailcap? FWIW, 
> I tried:
> 
> $ w3m -o auto_image=TRUE test.png
> 
> and that opens gpicview for me. 
> 
> I copied over the system config /etc/w3m/config to /.w3m/config
> 
> and added 
> ext_image_viewer=0
> 
> and then I get the inline images. However, how to do this inside mutt does 
> not seem to work.
> 
> I have the following in my .mailcap:
> 
> auto_view image/*
> image/*;w3m %s; copiousoutput
> 
> But what i get is a bunch of text for the image file that I am trying to 
> display.
> 
> Thanks in advance again!



> I have:

> text/html; w3m -dump -v -F -T text/html %s; nametemplate=%s.html; 
> needsterminal


And what do you do for inline display of images? Btw, I have to say that w3m 
works pretty well on most of the stuff sent  by html. I wonder if I could make 
it the default display for e-mails that come in html.

TIA!


Re: display images inline in xterm (while using mutt)

2020-12-04 Thread Globe Trotter via Mutt-users


Hi,

Thanks very much!

> On Friday, December 4, 2020, 10:24:44 AM CST, Patrick Shanahan 
>  wrote:  * mutt users list  [12-04-20 
> 11:07]:
> 
> Hi,
> 
> Thanks! 
> 
>  > On Friday, December 4, 2020, 9:56:23 AM CST, Dave Woodfall  
>wrote: 
> 
> >>  On 04/12/20 05:30, Mutt Users  put forth the 
> >>proposition:
> >> Hi,
> >> If I use w3m -o ext_image_viewer=0 test.png, I can get the file test.png 
> >> inside xterm. I wanted to do the same on my mutt window (inside xterm). 
> >> How do I do this?
> >> I tried putting:
> >> image/*;w3m -o ext_imageviewer=0 %s; copious output
> >> However this does not work and gives me the options of w3m in the mutt 
> >> window. How can I use this?

snipped

> I didn't have it installed, but test installed and get same result. removed 
> it and following works w/o it, but w3m must be configured to display 
> graphical.  I will have to look to see where, don't remember, too old, been 
> too long.

> for me:  w3m display.jpg will display image display.jpg

> ok found it
>     Display embedded graphics
>     $ w3m -o auto_image=TRUE http://w3m.sourceforge.net

>      ~/.w3m/config
>      user defined configuration file; overrides /etc/w3m/config
                                          

My apologies, I do not understand. Where do I put this? In my mailcap? FWIW, I 
tried:

$ w3m -o auto_image=TRUE test.png

and that opens gpicview for me. 

I copied over the system config /etc/w3m/config to /.w3m/config

and added 
ext_image_viewer=0

and then I get the inline images. However, how to do this inside mutt does not 
seem to work.

I have the following in my .mailcap:

auto_view image/*
image/*;w3m %s; copiousoutput

But what i get is a bunch of text for the image file that I am trying to 
display.

Thanks in advance again!



Re: display images inline in xterm (while using mutt)

2020-12-04 Thread Globe Trotter via Mutt-users


Hi,

Thanks! 

 > On Friday, December 4, 2020, 9:56:23 AM CST, Dave Woodfall  
 > wrote: 

>>  On 04/12/20 05:30, Mutt Users  put forth the 
>>proposition:
>> Hi,
>> If I use w3m -o ext_image_viewer=0 test.png, I can get the file test.png 
>> inside xterm. I wanted to do the same on my mutt window (inside xterm). How 
>> do I do this?
>> I tried putting:
>> image/*;w3m -o ext_imageviewer=0 %s; copious output
>> However this does not work and gives me the options of w3m in the mutt 
>> window. How can I use this?

>I don't have a solution offhand, but I'd like to let you know thatw3m's image 
>viewer can be invoked directly without going via w3m
first.

> It is installed in your distro's libexec directory, which in mine (slackware) 
> is:

>/usr/libexec/w3m/w3mimgdisplay

>Doing a `locate w3mimgdisplay' should find it.

Interesting and thanks! Mine is also at the same location:

$ locate w3mimgdisplay
/usr/libexec/w3m/w3mimgdisplay

However 

$ /usr/libexec/w3m/w3mimgdisplay test.png

appears to do nothing. The prompt just comes back. 

TIAA!


--
Dave

Love is a snowmobile racing across the tundra and then suddenly it flips over,
pinning you underneath.  At night, the ice weasels come.
    --Friedrich Nietzsche


Re: display images inline in xterm (while using mutt)

2020-12-04 Thread Globe Trotter via Mutt-users
Hi,

Thanks!


> On Friday, December 4, 2020, 2:36:14 AM CST, Zenithal  
> wrote: 

>> If I use w3m -o ext_image_viewer=0 test.png, I can get the file test.png 
>> inside xterm.In my setup I do not have `ext_image_viewer` option so I can 
>> not verify

>> image/*;w3m -o ext_imageviewer=0 %s; copious output

> should be `copiousoutput`, not `copious output`, I think.

Yes, this at least claims to work, but you are right (later), it does not 
render in mutt.

>> However this does not work

>Well can you invoke `w3m` in attachment menu?

>You may add `auto_view image/*` in your muttrc to get `w3m` invoked 
>automatically.

>> and gives me the options of w3m in the mutt window

>It is strange that with `copious output` your mailcap still works. In my test 
>when I use `copious output`, `w3m` is not invoked nor given as a option.

>BTW, does `w3m` inline image view appear in the form of ascii? Or It just 
>shows an image inside terminal. If it is the latter, I suppose
there would be problem rendering for mutt as `copiousoutput` can notexactly 
describe the situation, and it may mess up your email layout.

I can see what you are saying. However, is there a way to get this to work 
inside the mutt terminal?

Many thanks in advance!



-- 
GPG Fingerprint: 1127F188280AE3123619332987E17EEF9B18B6C9


display images inline in xterm (while using mutt)

2020-12-03 Thread Globe Trotter via Mutt-users
Hi,

If I use w3m -o ext_image_viewer=0 test.png, I can get the file test.png inside 
xterm.

I wanted to do the same on my mutt window (inside xterm). How do I do this?

I tried putting:

image/*;w3m -o ext_imageviewer=0 %s; copious output

However this does not work and gives me the options of w3m in the mutt window. 
How can I use this?

TIA!


Re: error in displaying pdf

2020-12-03 Thread Globe Trotter via Mutt-users
Yes, this group is amazing! I should have asked earlier.






On Thursday, December 3, 2020, 7:56:33 AM CST, José María Mateos 
 wrote: 





On Thu, Dec 03, 2020 at 03:30:47AM +, Globe Trotter via Mutt-users wrote:

>Thank you very much! This works.


Thanks very much from me too. This has been bothering me for a while but 
never thought there could be a very simple solution :-)

Cheers,

-- 
José María (Chema) Mateos || https://rinzewind.org


Re: error in displaying pdf

2020-12-02 Thread Globe Trotter via Mutt-users
Thank you very much! This works.




On Wednesday, December 2, 2020, 11:44:24 AM CST, Zenithal  
wrote: 





> '=?utf-8?Q?efficient=5Fkkmeans.pdf?='


This is RFC2047-encoded MIME parameters.

You may add

set rfc2047_parameters = yes

in your muttrc.

-- 
GPG Fingerprint: 1127F188280AE3123619332987E17EEF9B18B6C9


error in displaying pdf

2020-12-02 Thread Globe Trotter via Mutt-users
Hi,

I have a strange issue in that my pdf attachments (or at least some of them) 
are getting their names converted to something like: 
'=?utf-8?Q?efficient=5Fkkmeans.pdf?=' in mutt. 

I don't think that this happened before. As a result, this is not being 
identified as a pdf and my mailcap file is unable to open it. 

Here is my mailcap entry:

application/x-pdf; mutt_bgrun "${PDFVIEWER:-zathura}" %s; 
test=test -n "$DISPLAY"; nametemplate=%s.pdf; description="PDF Document"
application/x-pdf; pdftotext -htmlmeta %s - | w3m -dump -T 
text/html; nametemplate=%s.pdf; copiousoutput

I am not sure if there are other file types which also have this issue but I 
was wondering how to I get around this? It may well be a consequence of the 
mailer that my correspondents are using but it certainly gets identified 
correctly in other (perhaps less exact) mailers.

TIA!


Re: toggle thread

2020-11-12 Thread Globe Trotter via Mutt-users








On Thursday, November 12, 2020, 8:29:28 AM CST, Jon LaBadie  
wrote: 





On Thu, Nov 12, 2020 at 01:16:52PM +, Globe Trotter via Mutt-users wrote:
> > On Wednesday, November 11, 2020, 11:13:49 AM CST, Ian Zimmerman 
> >  wrote: 
> 
> 
> 
> > On 2020-11-09 18:08, Jon LaBadie wrote:
> 
> > > > I use Alt-Shift-v and I think that is the default binding. HTH
> 
> >> On mine that seems to collapse/uncollapse all threads.  Same as V.
> >> Toggling one thread on mine is v.
> >> 
> >> Neither switches between threaded and unthreaded.
> 
> >And right you are. I should have thought a few seconds longer before
> replying,
> 
> 
> Sorry but I am not understanding. What does it mean it collapses/uncollapses 
> all threads but neither switches between threaded and unthreaded? What is the 
> difference?
> 

In unthreaded, all messages are ordered by some factor other than topic.
Likely by date.

In threaded, all messages from one topic are together.  If collapsed,
only the first message of the topic thread shows in the index.


Jon

-- 


I see, thank you for the clarification! That is a bummer, so I guess we can not 
toggle between threaded and unthreaded on mutt then?



Re: toggle thread

2020-11-12 Thread Globe Trotter via Mutt-users
> On Wednesday, November 11, 2020, 11:13:49 AM CST, Ian Zimmerman 
>  wrote: 



> On 2020-11-09 18:08, Jon LaBadie wrote:

> > > I use Alt-Shift-v and I think that is the default binding. HTH

>> On mine that seems to collapse/uncollapse all threads.  Same as V.
>> Toggling one thread on mine is v.
>> 
>> Neither switches between threaded and unthreaded.

>And right you are. I should have thought a few seconds longer before
replying,


Sorry but I am not understanding. What does it mean it collapses/uncollapses 
all threads but neither switches between threaded and unthreaded? What is the 
difference?

Thanks!


is there no difference between \CN and \Cn for use in the sidebar?

2020-11-10 Thread Globe Trotter via Mutt-users
HI,

I have the following set up in my .muttrc:

# Move the highlight to the previous mailbox
bind index,pager \Cp sidebar-prev
# Move the highlight to the next mailbox
bind index,pager \Cn sidebar-next
# Open the highlighted mailbox
bind index,pager \Co sidebar-open
# Move the highlight to the previous page
bind index,pager \CU sidebar-page-up
# Move the highlight to the next page
bind index,pager \CD sidebar-page-down
# Move the highlight to the previous mailbox containing new, or flagged, mail.
bind index,pager \CP sidebar-prev-new
# Move the highlight to the next mailbox containing new, or flagged, mail.
bind index,pager \CN sidebar-next-new
# Toggle the visibility of the Sidebar.
bind index,pager \CV sidebar-toggle-visible

So, when I use \Cn, I seem to end on to the next mailbox containing new or 
flagged mail and not the next mailbox. By, \Cn, I mean Ctrl+n (lower case n).
Same when i use \CN. 

Is my specification incorrect?

Many thanks!


Re: toggle thread

2020-11-09 Thread Globe Trotter via Mutt-users



> On Monday, November 9, 2020, 10:48:31 AM CST, Ian Zimmerman 
>  wrote: 





> On 2020-11-09 16:40, Globe Trotter via Mutt-users wrote:


> > I am looking around for some keystroke setting that will make it is 
> > possible to toggle between threaded and unthreaded views of the  message 
> > list. Is this possible?

>I use Alt-Shift-v and I think that is the default binding. HTH


Thanks, very much, interesting (not easily intuited) sequence. But now I know.

Thanks again!


toggle thread

2020-11-09 Thread Globe Trotter via Mutt-users
Hi,

I am looking around for some keystroke setting that will make it is possible to 
toggle between threaded and unthreaded views of the message list. Is this 
possible?

Many thanks!


Re: is it possible to go to the folders via the sidebar?

2020-10-28 Thread Globe Trotter via Mutt-users



Sorry, I had a few questions:

On Thursday, October 29, 2020, 12:21:52 AM CDT, Cameron Simpson 
 wrote: 

>  Might I suggest you put this shell command in a distinct shell script so 
>that your muttrc has this:


    mailboxes `mutt-mailboxes`

What are mutt-mailboxes? Is it a keyword?Or is this a shell-script?

> You can also improve the find:

    find "$HOME/Maildir"/* -type d \( \( -name tmp -o -name new -o -name cur \) 
-prune \) -o -exec ismaildir {} ';' -print

>so where does this go?


> Also, being a shell script makes it easier to clean up the paths too:

    #!/bin/sh
    cd "$HOME/Maildir"
    find * -type d \( \( -name tmp -o -name new -o -name cur \) -prune \) -o 
-exec ismaildir {} ';' -print

> No stripping, just cd to the top directory and print relative paths.

> "ismaildir" is a script of my own:

>    https://hg.sr.ht/~cameron-simpson/css/browse/bin/ismaildir?rev=tip

> but it is very simple - it just checks for directoriness and the presence if 
> the 3 required subdirectories.


Thanks for the ismaildir link!

Best regards!


Re: is it possible to go to the folders via the sidebar?

2020-10-28 Thread Globe Trotter via Mutt-users
My apologies for answering my own question, but I have found the bug: there is 
an extraneous \" and it should be the following:

mailboxes `find ~/Maildir/* -type d | grep -v "tmp\|new\|cur" | sed 
's|~/Maildir/|=\"|g' | sed 's|$||g' | tr '\n' ' '`

It works now, and the problems have also been resolved.

Thanks again!





On Wednesday, October 28, 2020, 9:07:15 PM CDT, Globe Trotter via Mutt-users 
 wrote: 





Thanks, I will top-post here, because I feel that there is something wrong with 
my setup and before answering your questions I have to get this right.

So, I set folders using 

set mbox_type=Maildir
set spoolfile="~/Maildir/inbox"
set folder = "~/Maildir/"
mailboxes `find ~/Maildir/* -type d | grep -v "tmp\|new\|cur" | sed 
's|~/Maildir/|=\"|g' | sed 's|$|\"|g' | tr '\n' ' '`

and the find gives me the correct list with complete pathnames.

find ~/Maildir/* -type d | grep -v "tmp\|new\|cur" | sed 's|~/Maildir/|=\"|g' | 
sed 's|$|\"|g' | tr '\n' ' '

However, when I list the folders on the sidebar, I get the following:


backup /home/gt/Maildir/aster  
bills /home/gt/Maildir/classes
classes/evaluations /home/gt/Maildir/committee

and so on. So, as you can see, the sidebar is in pairs. I have folders 
/home/gt/Maildir/backup as well as /home/gt/Maildir/bills and 
/home/gt/Maildir/bills and /home/gt/Maildir/classes/evaluations/

What is causing this? Here is my .muttrc.



set mbox_type=Maildir
set spoolfile="~/Maildir/inbox"
set folder = "~/Maildir/"
mailboxes `find ~/Maildir/* -type d | grep -v "tmp\|new\|cur" | sed 
's|~/Maildir/|=\"|g' | sed 's|$|\"|g' | tr '\n' ' '`

set sidebar_visible = yes
set sidebar_width = 50
set sidebar_short_path = no
set sidebar_delim_chars = '/.'
set sidebar_folder_indent = no
set sidebar_indent_string = '  '
set sidebar_new_mail_only = no
set sidebar_divider_char = '|'
set sidebar_next_new_wrap = no
set mail_check_stats
set sidebar_sort_method = 'unsorted'

# --
# FUNCTIONS – shown with an example mapping
# --
# Move the highlight to the previous mailbox
bind index,pager \Cp sidebar-prev
# Move the highlight to the next mailbox
bind index,pager \Cn sidebar-next
# Open the highlighted mailbox
bind index,pager \Co sidebar-open
# Move the highlight to the previous page
# This is useful if you have a LOT of mailboxes.
bind index,pager \CU sidebar-page-up
# Move the highlight to the next page
# This is useful if you have a LOT of mailboxes.
bind index,pager \CD sidebar-page-down
# Move the highlight to the previous mailbox containing new, or flagged,
# mail.
bind index,pager \CP sidebar-prev-new
# Move the highlight to the next mailbox containing new, or flagged, mail.
bind index,pager \CN sidebar-next-new
# Toggle the visibility of the Sidebar.
bind index,pager \CV sidebar-toggle-visible




Thanks in advance!


On Wednesday, October 28, 2020, 6:47:27 PM CDT, Cameron Simpson 
 wrote: 





On 26Oct2020 23:09, Globe Trotter via Mutt-users  wrote:
>On Monday, October 26, 2020, 5:19:58 PM CDT, Cameron Simpson  
>wrote:
>>On 25Oct2020 23:43, Globe Trotter via Mutt-users  
>>wrote:
>>>> I highlight on the folder user1 and I get: /home/gt/user1  is not a 
>>>> mailbox.
>>>Hmm, me too.
>> I withdraw this - I had a nonexistent name in my mailboxes list. With
>> that fixed, the sidebar behaves correctly for me.
>> More investigation needed. Does it fail for all your mailboxes, or 
>> just specific ones?
>
>I am not sure: here is my setting, and I can not get the cursor to go 
>to the sidebar at all anymore. Is there some setting I am missing?

The cursor does not go to the sidebar. It is kind of like a control 
separately manipulated. So you need some key bindings to operate it. On 
my machine the sidebar hightlights the current folder (whose index is 
shown) and separately highlights a "selected" folder, which you move 
around before using  to switch to the selected new folder.

My settings are presently just this:

    [~/rc/mutt(hg:default)]fleet2*> g sidebar *
    macros:77:macro index J 
    macros:78:macro index K 
    macros:79:macro index O 
    settings:112:set sidebar_divider_char=" | "
    settings:113:set sidebar_folder_indent=yes
    settings:114:set sidebar_indent_string="→"
    settings:115:set sidebar_short_path=yes
    settings:116:set sidebar_sort_method=alpha
    settings:117:set sidebar_visible=yes

Looking at your settings:

># Should the mailbox paths b

Re: is it possible to go to the folders via the sidebar?

2020-10-28 Thread Globe Trotter via Mutt-users
Thanks, I will top-post here, because I feel that there is something wrong with 
my setup and before answering your questions I have to get this right.

So, I set folders using 

set mbox_type=Maildir
set spoolfile="~/Maildir/inbox"
set folder = "~/Maildir/"
mailboxes `find ~/Maildir/* -type d | grep -v "tmp\|new\|cur" | sed 
's|~/Maildir/|=\"|g' | sed 's|$|\"|g' | tr '\n' ' '`

and the find gives me the correct list with complete pathnames.

find ~/Maildir/* -type d | grep -v "tmp\|new\|cur" | sed 's|~/Maildir/|=\"|g' | 
sed 's|$|\"|g' | tr '\n' ' '

However, when I list the folders on the sidebar, I get the following:


backup /home/gt/Maildir/aster  
bills /home/gt/Maildir/classes
classes/evaluations /home/gt/Maildir/committee

and so on. So, as you can see, the sidebar is in pairs. I have folders 
/home/gt/Maildir/backup as well as /home/gt/Maildir/bills and 
/home/gt/Maildir/bills and /home/gt/Maildir/classes/evaluations/

What is causing this? Here is my .muttrc.



set mbox_type=Maildir
set spoolfile="~/Maildir/inbox"
set folder = "~/Maildir/"
mailboxes `find ~/Maildir/* -type d | grep -v "tmp\|new\|cur" | sed 
's|~/Maildir/|=\"|g' | sed 's|$|\"|g' | tr '\n' ' '`

set sidebar_visible = yes
set sidebar_width = 50
set sidebar_short_path = no
set sidebar_delim_chars = '/.'
set sidebar_folder_indent = no
set sidebar_indent_string = '  '
set sidebar_new_mail_only = no
set sidebar_divider_char = '|'
set sidebar_next_new_wrap = no
set mail_check_stats
set sidebar_sort_method = 'unsorted'

# --
# FUNCTIONS – shown with an example mapping
# --
# Move the highlight to the previous mailbox
bind index,pager \Cp sidebar-prev
# Move the highlight to the next mailbox
bind index,pager \Cn sidebar-next
# Open the highlighted mailbox
bind index,pager \Co sidebar-open
# Move the highlight to the previous page
# This is useful if you have a LOT of mailboxes.
bind index,pager \CU sidebar-page-up
# Move the highlight to the next page
# This is useful if you have a LOT of mailboxes.
bind index,pager \CD sidebar-page-down
# Move the highlight to the previous mailbox containing new, or flagged,
# mail.
bind index,pager \CP sidebar-prev-new
# Move the highlight to the next mailbox containing new, or flagged, mail.
bind index,pager \CN sidebar-next-new
# Toggle the visibility of the Sidebar.
bind index,pager \CV sidebar-toggle-visible




Thanks in advance!


On Wednesday, October 28, 2020, 6:47:27 PM CDT, Cameron Simpson 
 wrote: 





On 26Oct2020 23:09, Globe Trotter via Mutt-users  wrote:
>On Monday, October 26, 2020, 5:19:58 PM CDT, Cameron Simpson  
>wrote:
>>On 25Oct2020 23:43, Globe Trotter via Mutt-users  
>>wrote:
>>>> I highlight on the folder user1 and I get: /home/gt/user1  is not a 
>>>> mailbox.
>>>Hmm, me too.
>> I withdraw this - I had a nonexistent name in my mailboxes list. With
>> that fixed, the sidebar behaves correctly for me.
>> More investigation needed. Does it fail for all your mailboxes, or 
>> just specific ones?
>
>I am not sure: here is my setting, and I can not get the cursor to go 
>to the sidebar at all anymore. Is there some setting I am missing?

The cursor does not go to the sidebar. It is kind of like a control 
separately manipulated. So you need some key bindings to operate it. On 
my machine the sidebar hightlights the current folder (whose index is 
shown) and separately highlights a "selected" folder, which you move 
around before using  to switch to the selected new folder.

My settings are presently just this:

    [~/rc/mutt(hg:default)]fleet2*> g sidebar *
    macros:77:macro index J 
    macros:78:macro index K 
    macros:79:macro index O 
    settings:112:set sidebar_divider_char=" | "
    settings:113:set sidebar_folder_indent=yes
    settings:114:set sidebar_indent_string="→"
    settings:115:set sidebar_short_path=yes
    settings:116:set sidebar_sort_method=alpha
    settings:117:set sidebar_visible=yes

Looking at your settings:

># Should the mailbox paths be abbreviated?
>set sidebar_short_path = yes

You could try turning this off to ensure that the paths it shows are in 
fact the paths you expect.

># When abbreviating mailbox path names, use any of these characters as path
># separators. Only the part after the last separators will be shown.
># For file folders '/' is good. For IMAP folders, often '.' is useful.
>set sidebar_delim_chars = '/'

And turn this off too, again just to debug.

&g

set up folder-specifc send mail options

2020-10-28 Thread Globe Trotter via Mutt-users
Hi,

I don't know if this is possible but I want to be able to set up 
folder-specific send-mail. 

So, for e-mails in the mutt and other mailing list folders, when I send e-mail, 
I want to use this e-mail address (say send...@email.com). 

For e-mails in the family folder, when I send e-mail I want to use another 
e-mail address (say send...@email.com).

For other folders, I want to use the default work address (send...@work.com), 
with the option of having a choice of what I use. 

How do I set this up?

Sorry if my question is not clear.

Thanks in advance!
GT




Re: is it possible to have two options for viewing html mail?

2020-10-26 Thread Globe Trotter via Mutt-users


Thank you for this!This works beautifully for now, and I have made a list of my 
browsers with it: w3m, dillo, midori, firefox and chromium in that order. 





On Sunday, October 25, 2020, 7:57:09 PM CDT, raf  wrote: 





On Sun, Oct 25, 2020 at 11:38:01PM +, Globe Trotter via Mutt-users 
 wrote:

> On Sunday, October 25, 2020, 5:53:20 PM CDT, raf  wrote: 
> 
> On Sun, Oct 25, 2020 at 12:18:26AM +0000, Globe Trotter via Mutt-users 
>  wrote:
> 
> > On Saturday, 24 October at 22:54, Mutt Users wrote:
> > 
> > >> Lots of people send me mail in HTML format (even though I do not
> > >> like it). I have the following set up in my .mailcap:
> > >> text/html; w3m -I %{charset} -T text/html; copiousoutput
> > >> so it converts things using w3m more or less okay, however, I
> > >> am wondering is it possible to have an option for viewing using
> > >> midori/firefox for the cases where w3m is not enough?
> > 
> > > I've got this in my mailcap:
> > 
> > > text/html; w3m -I %{charset} -T text/html -dump; copiousoutput; print = 
> > > qutebrowser %s; nametemplate=%s.html
> > 
> > > To open an email in w3m press Enter, in qutebrowser p or whatever
> > > print is bound to. You can adapt this for firefox.
> > 
> > > Hope that helps.
> > > Regards Wim
> > 
> > This solution does exactly what I want. I wanted to use midori, so I
> > replaced qutebrowser with midori and it works.
> > 
> > Is it possible to have multiple options? So, in case midori did not
> > cut it, I would use firefox instead?
> > 
> > TIA!
> 
> Rather than invoking actual browsers directly, you
> could write a script that presented you with a list of
> options, and you enter your choice. That way, you could
> have more that two options. If always having to select
> a browser manually is too inefficient, you could
> continue to invoke w3m when viewing html, and invoke
> this menu-based browser chooser when "printing" html.
> 
> cheers,
> raf
> 
> Thanks, where would this option be presented? While I press "p"?

I think that would be best, so that you can decide
whether or not you want to manually select a browser.
By only invoking this script for "printing" the
attachment, you can still access the easier default
behaviour when viewing the attachment. But it probably
means you can't print the attachment, unless you add
that as one of the choices.

> Is the script in mutt or a bash/python/perl/etc script?

It would be a separate script referred to in your .mailcap
file. Here's a sample implementation:

In your ~/.mailcap (or whatever your mailcap_path is set to):

  text/html; w3m -I %{charset} -T text/html -dump; copiousoutput; print = 
select-browser %s; nametemplate=%s.html

Attached is the command select-browser which would need
to be in your $PATH. Note that it doesn't support all
of the % expansions that mailcap(5) supports. It only
handles the %s filename place holder, but that's
probably fine for web browsers. Adding support for all
the others would make its appearance in the mailcap
file a lot uglier.


cheers,
raf


Re: is it possible to go to the folders via the sidebar?

2020-10-26 Thread Globe Trotter via Mutt-users
On Monday, October 26, 2020, 5:19:58 PM CDT, Cameron Simpson  
wrote: 





On 27Oct2020 08:56, Cameron Simpson  wrote:
>On 25Oct2020 23:43, Globe Trotter via Mutt-users  wrote:
>>> I highlight on the folder user1 and I get: /home/gt/user1  is not a mailbox.
>
>>Hmm, me too.

> I withdraw this - I had a nonexistent name in my mailboxes list. With 
that fixed, the sidebar behaves correctly for me.

> More investigation needed. Does it fail for all your mailboxes, or just 
specific ones?


HI,

I am not sure: here is my setting, and I can not get the cursor to go to the 
sidebar at all anymore. Is there some setting I am missing?

# --
# VARIABLES – shown with their default values
# --
# Should the Sidebar be shown?
# set sidebar_visible = no
set sidebar_visible = yes
# How wide should the Sidebar be in screen columns?

# Note: Some characters, e.g. Chinese, take up two columns each.
set sidebar_width = 20
# Should the mailbox paths be abbreviated?
set sidebar_short_path = yes
# When abbreviating mailbox path names, use any of these characters as path
# separators. Only the part after the last separators will be shown.
# For file folders '/' is good. For IMAP folders, often '.' is useful.
set sidebar_delim_chars = '/'
# If the mailbox path is abbreviated, should it be indented?
set sidebar_folder_indent = no
# Indent mailbox paths with this string.
set sidebar_indent_string = '  '
# Make the Sidebar only display mailboxes that contain new, or flagged,
# mail.
set sidebar_new_mail_only = no
# Any mailboxes that are whitelisted will always be visible, even if the
# sidebar_new_mail_only option is enabled.
# Only show mailboxes that contain some mail
#sidebar_whitelist '/home/user/mailbox1'
#sidebar_whitelist '/home/user/mailbox2'
# When searching for mailboxes containing new mail, should the search wrap
# around when it reaches the end of the list?
set sidebar_next_new_wrap = no
# The character to use as the divider between the Sidebar and the other NeoMutt
# panels.
set sidebar_divider_char = '|'
# Enable extended mailbox mode to calculate total, new, and flagged
# message counts for each mailbox.
set mail_check_stats
# Display the Sidebar mailboxes using this format string.
set sidebar_format = '%B%?F? [%F]?%* %?N?%N/?%S'
# Sort the mailboxes in the Sidebar using this method:
#   count    – total number of messages
#   flagged  – number of flagged messages
#   new  – number of new messages
#   path – mailbox path
#   unsorted – do not sort the mailboxes
set sidebar_sort_method = 'unsorted'


# --
# FUNCTIONS – shown with an example mapping
# --
# Move the highlight to the previous mailbox
bind index,pager \Cp sidebar-prev
# Move the highlight to the next mailbox
bind index,pager \Cn sidebar-next
# Open the highlighted mailbox
bind index,pager \Co sidebar-open
# Move the highlight to the previous page
# This is useful if you have a LOT of mailboxes.
bind index,pager \CU sidebar-page-up
# Move the highlight to the next page
# This is useful if you have a LOT of mailboxes.
bind index,pager \CD sidebar-page-down
# Move the highlight to the previous mailbox containing new, or flagged,
# mail.
bind index,pager \CP sidebar-prev-new
# Move the highlight to the next mailbox containing new, or flagged, mail.
bind index,pager \CN sidebar-next-new
# Toggle the visibility of the Sidebar.
bind index,pager \CV sidebar-toggle-visible


Some setting is probably messed up. Not sure what I am looking for. Thanks!


Re: is it possible to go to the folders via the sidebar?

2020-10-25 Thread Globe Trotter via Mutt-users








On Sunday, October 25, 2020, 6:35:37 PM CDT, Kevin Shell  
wrote: 





On Sun, Oct 25, 2020 at 04:22:27PM +, Globe Trotter via Mutt-users wrote:
> Thanks for your e-mail.
>
> On Sunday, October 25, 2020, 10:59:15 AM CDT, Kevin Shell  
> wrote:
>
>
> > Welcom another newbie. :-)
> > You're not using mutt to send to the list, what a pity. :-)
>
> Yes, I have to figure out how to get to Yahoo! Mail from IMAP/POP.
>
> > There is no key to got to the sidebar, you have to exec the sidebar-* 
> > functions, you can bind some keys to them.
>
> > Here are my bindings:
> > bind index,pager B sidebar-toggle-visible
> > bind index,pager \CN sidebar-next
> > bind index,pager \CP sidebar-prev
> >  bind index,pager \CF sidebar-first
> > bind index,pager \CL sidebar-last
> > bind index,pager \CO sidebar-open
>
> What does it mean to exec the sidebar-* functions? For me, the last one 
> (which I presumed opens a mailbox) does not work.
>
I mean the set of functions that start with sidebar-.

> I highlight on the folder user1 and I get: /home/maitra/gt/user1  is not a 
> mailbox.
>
> However, it is a mailbox because when I do c -> =user1 I get to the mailbox 
> and list of mails in there.
>

What type of mailbox do you use, have you set the mailbox type?

Thanks, yes, I have set the mailbox type to Maildir (that is what I use).


Re: is it possible to have two options for viewing html mail?

2020-10-25 Thread Globe Trotter via Mutt-users








On Sunday, October 25, 2020, 5:53:20 PM CDT, raf  wrote: 





On Sun, Oct 25, 2020 at 12:18:26AM +, Globe Trotter via Mutt-users 
 wrote:


> On Saturday, 24 October at 22:54, Mutt Users wrote:
> 
> >> Lots of people send me mail in HTML format (even though I do not like it). 
> >> I have the following set up in my .mailcap:
> >> text/html; w3m -I %{charset} -T text/html; copiousoutput
> >> so it converts things using w3m more or less okay, however, I am wondering 
> >> is it possible to have an option for viewing using midori/firefox for the 
> >> cases where w3m is not enough?
> 
> 
> > I've got this in my mailcap:
> 
> 
> > text/html; w3m -I %{charset} -T text/html -dump; copiousoutput; print = 
> > qutebrowser %s; nametemplate=%s.html
> 
> > To open an email in w3m press Enter, in qutebrowser p or whatever print is 
> > bound to. You can adapt this for firefox.
> 
> > Hope that helps.
> > Regards Wim
> 
> --
>       |\      _,,,---,,_
> ZZZzz /,`.-'`'    -.  ;-;;,_
>     |,4-  ) )-,_. ,\ (  `'-'
> 
>     '---''(_/--'  `-'\_)
> 
> 
> This solution does exactly what I want. I wanted to use midori, so I replaced 
> qutebrowser with midori and it works. 
> 
> Is it possible to have multiple options? So, in case midori did not cut it, I 
> would use firefox instead?
> 
> TIA!


Rather than invoking actual browsers directly, you
could write a script that presented you with a list of
options, and you enter your choice. That way, you could
have more that two options. If always having to select
a browser manually is too inefficient, you could
continue to invoke w3m when viewing html, and invoke
this menu-based browser chooser when "printing" html.

cheers,
raf




Thanks, where would this option be presented? While I press "p"? Is the script 
in mutt or a bash/python/perl/etc script?


Re: is it possible to go to the folders via the sidebar?

2020-10-25 Thread Globe Trotter via Mutt-users
Thanks for your e-mail. 

On Sunday, October 25, 2020, 10:59:15 AM CDT, Kevin Shell  
wrote: 


> Welcom another newbie. :-)
> You're not using mutt to send to the list, what a pity. :-)

Yes, I have to figure out how to get to Yahoo! Mail from IMAP/POP. 

> There is no key to got to the sidebar, you have to exec the sidebar-* 
> functions, you can bind some keys to them.

> Here are my bindings:
> bind index,pager B sidebar-toggle-visible
> bind index,pager \CN sidebar-next
> bind index,pager \CP sidebar-prev
>  bind index,pager \CF sidebar-first
> bind index,pager \CL sidebar-last
> bind index,pager \CO sidebar-open

What does it mean to exec the sidebar-* functions? For me, the last one (which 
I presumed opens a mailbox) does not work.

I highlight on the folder user1 and I get: /home/maitra/gt/user1  is not a 
mailbox.

However, it is a mailbox because when I do c -> =user1 I get to the mailbox and 
list of mails in there.

> It's fun to me, I use it to read tons of emails, and even huge newsgroups, 
> the headers cache make mutt very fast!

Agreed. 

Thanks!


is it possible to go to the folders via the sidebar?

2020-10-25 Thread Globe Trotter via Mutt-users
I am new to mutt, and have sidebar enabled and a list of my folders to the 
left. I can go down the list of the folders, using my keyboard. But I can not 
figure out how to get into them directly (after highlighting them). Is there a 
way? Right now, I am reduced to typing c -> =foldername and then going to the 
list. Kind of makes the sidebar not at all useful for me so I am thinking that 
there must be a better value for the sidebar folders.

Btw, after using mutt for two 2 days, it has been a lot of fun. (The initial 
frustration has worn out.) Thanks to all the developers and also the members of 
the users list for their very helpful answers and directions!



Re: is it possible to have two options for viewing html mail?

2020-10-24 Thread Globe Trotter via Mutt-users
On Saturday, 24 October at 22:54, Mutt Users wrote:

>> Lots of people send me mail in HTML format (even though I do not like it). I 
>> have the following set up in my .mailcap:
>> text/html; w3m -I %{charset} -T text/html; copiousoutput
>> so it converts things using w3m more or less okay, however, I am wondering 
>> is it possible to have an option for viewing using midori/firefox for the 
>> cases where w3m is not enough?


> I've got this in my mailcap:


> text/html; w3m -I %{charset} -T text/html -dump; copiousoutput; print = 
> qutebrowser %s; nametemplate=%s.html

> To open an email in w3m press Enter, in qutebrowser p or whatever print is 
> bound to. You can adapt this for firefox.

> Hope that helps.
> Regards Wim

--
      |\      _,,,---,,_
ZZZzz /,`.-'`'    -.  ;-;;,_
    |,4-  ) )-,_. ,\ (  `'-'

    '---''(_/--'  `-'\_)


This solution does exactly what I want. I wanted to use midori, so I replaced 
qutebrowser with midori and it works. 

Is it possible to have multiple options? So, in case midori did not cut it, I 
would use firefox instead?

TIA!


is it possible to have two options for viewing html mail?

2020-10-24 Thread Globe Trotter via Mutt-users
Lots of people send me mail in HTML format (even though I do not like it). I 
have the following set up in my .mailcap:

text/html; w3m -I %{charset} -T text/html; copiousoutput

so it converts things using w3m more or less okay, however, I am wondering is 
it possible to have an option for viewing using midori/firefox for the cases 
where w3m is not enough?

My thanks in advance!




[no subject]

2020-10-24 Thread Globe Trotter via Mutt-users
This message wraps the original message.

The sending domain has a DMARC p=reject policy, which unfortunately
can cause bounces.  See http://www.mutt.org/mail-lists.html#dmarc

To remove this message, please change the domain policy to p=none or
p=quarantine.--- Begin Message ---
Thanks, this works for me! Thanks also to Remco.


On Saturday, October 24, 2020, 12:24:15 PM CDT, Felix Finch  
wrote: 





On 20201024, Globe Trotter via Mutt-users wrote:

>
>An irritating thing right now is that if I hit q in error after composing a 
>message, I get: Postpone message (yes/no) and if I say no, then the message 
>appears lost. Is is possible to have an an option on this which should be to 
>cancel the postpone question:  perhaps a prompt that is [yes/no/cancel]


Try ^G.  I just tried it on this message and it does cancel the quit.  You do 
have to type "e" to get back to editing.

Or go ahead and postpone, then type "m" to send a new message.  This notices 
the draft and asks if you want to work on that.

-- 
            ... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
    Felix Finch: scarecrow repairman & wood chipper / fe...@crowfix.com
  GPG = E987 4493 C860 246C 3B1E  6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o
--- End Message ---


[no subject]

2020-10-24 Thread Globe Trotter via Mutt-users
This message wraps the original message.

The sending domain has a DMARC p=reject policy, which unfortunately
can cause bounces.  See http://www.mutt.org/mail-lists.html#dmarc

To remove this message, please change the domain policy to p=none or
p=quarantine.--- Begin Message ---

  > On Saturday, October 24, 2020, 11:33:57 AM CDT, Remco Rijnders 
 wrote: 
> I got that mixed up indeed, apologies! The manual does mention it, but 
> perhaps not in the easiest searchable way:
> 3.347. sort_aux
> (...)> You can also specify the “last-” prefix in addition to the “reverse-” 
> prefix, but “last-” must come after “reverse-”. The “last-” prefix causes 
> messages to be sorted against its siblings by which has the last descendant, 
> using the rest of $sort_aux as an ordering.

Oh, thanks very much for this additional information. This is very helpful!!




--- End Message ---


[no subject]

2020-10-24 Thread Globe Trotter via Mutt-users
This message wraps the original message.

The sending domain has a DMARC p=reject policy, which unfortunately
can cause bounces.  See http://www.mutt.org/mail-lists.html#dmarc

To remove this message, please change the domain policy to p=none or
p=quarantine.--- Begin Message ---
Hi,

An irritating thing right now is that if I hit q in error after composing a 
message, I get: Postpone message (yes/no) and if I say no, then the message 
appears lost. Is is possible to have an an option on this which should be to 
cancel the postpone question:  perhaps a prompt that is [yes/no/cancel]

Thanks!
--- End Message ---


[no subject]

2020-10-24 Thread Globe Trotter via Mutt-users
This message wraps the original message.

The sending domain has a DMARC p=reject policy, which unfortunately
can cause bounces.  See http://www.mutt.org/mail-lists.html#dmarc

To remove this message, please change the domain policy to p=none or
p=quarantine.--- Begin Message ---
On Saturday, October 24, 2020, 11:07:41 AM CDT, Remco Rijnders 
 wrote: 

On Sat, Oct 24, 2020 at 03:09:06PM +, Globe wrote in 
:
>
>Looking at: http://www.mutt.org/doc/manual/manual.html#sort, it seems to me 
>that I should simply
>
>set sort=threads
>set sort_aux=reverse-date-received
>
>However, what I get is the threads, correctly, but the ones with most recent 
>messages do not come up first. I want the threads with most recent activity 
>coming up first. Can this be done in mutt? (I do not want reverse_threads.)

> Try changing the sort_aux to:

> set sort_aux=last-reverse-date-received

> Does that what you want? Without "last" it looks at the date of the first 
> message in the thread, with it, it uses the last one of all the messages.

Thanks! For me, and also from the manual, I don't find this method: 

Error in /home/gt/.muttrc, line 187: reverse-date-received: unknown sorting 
method

Perhaps, you meant: 

set sort_aux=reverse-last-date-received

which I tried as a guess, even though it does not seem to be in the manual but 
does not give an error and seems to work. Thanks!!

--- End Message ---


[no subject]

2020-10-24 Thread Globe Trotter via Mutt-users
This message wraps the original message.

The sending domain has a DMARC p=reject policy, which unfortunately
can cause bounces.  See http://www.mutt.org/mail-lists.html#dmarc

To remove this message, please change the domain policy to p=none or
p=quarantine.--- Begin Message ---
Hi,

Looking at: http://www.mutt.org/doc/manual/manual.html#sort, it seems to me 
that I should simply 

set sort=threads
set sort_aux=reverse-date-received

However, what I get is the threads, correctly, but the ones with most recent 
messages do not come up first. I want the threads with most recent activity 
coming up first. Can this be done in mutt? (I do not want reverse_threads.)

Sorry if my question is unclear.

Thanks,
GT
--- End Message ---


[no subject]

2020-10-23 Thread Globe Trotter via Mutt-users
This message wraps the original message.

The sending domain has a DMARC p=reject policy, which unfortunately
can cause bounces.  See http://www.mutt.org/mail-lists.html#dmarc

To remove this message, please change the domain policy to p=none or
p=quarantine.--- Begin Message ---
On Friday, October 23, 2020, 10:38:00 AM CDT, Remco Rijnders 
 wrote: 


>> I want to set bcc to my address for every e-mail I send from an account. How 
>> do I do that? Do I define a hook?


> You could use a hook for it, but it might be simpler to use the record 
> functionality. See http://www.mutt.org/doc/manual/#record for how to 
> automatically save a copy of every outgoing message to a folder of your 
> choice.


Thank you for this.I also set Bcc because it gives me an indication that the 
message actually went out/through. How do I specify this hook?

Thank you again!
GT
--- End Message ---


[no subject]

2020-10-23 Thread Globe Trotter via Mutt-users
This message wraps the original message.

The sending domain has a DMARC p=reject policy, which unfortunately
can cause bounces.  See http://www.mutt.org/mail-lists.html#dmarc

To remove this message, please change the domain policy to p=none or
p=quarantine.--- Begin Message ---

On Friday, October 23, 2020, 9:33:13 AM CDT, Remco Rijnders 
 wrote: 

> Hi Globe,

> Please see http://www.mutt.org/doc/manual/#sidebar-sort-method for a list of 
> options for sorting your sidebar. It probably is a good idea to refer to this 
> official mutt manual in general for supported options as some of the "how 
> to"'s and tricks you can find on the internet might be outdated.  I hope this 
> helps!

> Kind regards,

Remco,

Thanks very much! This is very helpful.

Best regards,
GT

--- End Message ---


[no subject]

2020-10-23 Thread Globe Trotter via Mutt-users
This message wraps the original message.

The sending domain has a DMARC p=reject policy, which unfortunately
can cause bounces.  See http://www.mutt.org/mail-lists.html#dmarc

To remove this message, please change the domain policy to p=none or
p=quarantine.--- Begin Message ---
Hi,

I want to set bcc to my address for every e-mail I send from an account. How do 
I do that? Do I define a hook?

Thanks!
--- End Message ---


[no subject]

2020-10-23 Thread Globe Trotter via Mutt-users
This message wraps the original message.

The sending domain has a DMARC p=reject policy, which unfortunately
can cause bounces.  See http://www.mutt.org/mail-lists.html#dmarc

To remove this message, please change the domain policy to p=none or
p=quarantine.--- Begin Message ---
Hi,

New to mutt but I put the following in my .muttrc file, as per examples online:



set sort_sidebar = desc



However, when I start mutt, I get:



Error in /home/gt/.muttrc, line 217: sort_sidebar: unknown variable

source: errors in /home/gt/.muttrc

Press any key to continue...



Is sort_sidebar deprecated in mutt?



Thanks,

GT
--- End Message ---


[no subject]

2020-10-23 Thread Globe Trotter via Mutt-users
This message wraps the original message.

The sending domain has a DMARC p=reject policy, which unfortunately
can cause bounces.  See http://www.mutt.org/mail-lists.html#dmarc

To remove this message, please change the domain policy to p=none or
p=quarantine.--- Begin Message ---
Hi,
New to mutt but I put the following in my .muttrc file: 

set sort_sidebar = desc

However, when I start mutt, I get: 

Error in /home/gt/.muttrc, line 217: sort_sidebar: unknown variable
source: errors in /home/gt/.muttrc
Press any key to continue...

Is sort_sidebar deprecated in mutt? 

Thanks,
GT
--- End Message ---


[no subject]

2020-10-21 Thread Globe Trotter via Mutt-users
This message wraps the original message.

The sending domain has a DMARC p=reject policy, which unfortunately
can cause bounces.  See http://www.mutt.org/mail-lists.html#dmarc

To remove this message, please change the domain policy to p=none or
p=quarantine.--- Begin Message ---
My aoologies for the earlier attempts at sending e-mail. But I am new to mutt 
(as of today) and do not have my mailer set up  and trying to get started. I 
hope this goes through in plain-text format.

My set up is as follows: I use fetchmail and procmail to get my mail delivered 
to Maildir mailboxes. So,my mail is inside folders in ~/Maildir in the 
following manner:


~/Maildir/inbox
~/Maildir/sent
~/Maildir/drafts
~/Maildir/work/
~/Maildir/work/user1
~/Maildir/work/user2
~/Maildir/bills
~/Maildir/family


etc. I want to show this tree on a side-pane. So, my initial attempt at .muttrc 
has the following: modified from mutt & Maildir Mini-HOWTO


set mbox_type=Maildir
set folder="~/Maildir"
mailboxes `echo -n "+ "; find ~/Maildir -type d -name "*" -printf "+'%f' "`


However, when I launch mutt, I get nothing and after a lot of blank stares 
on-screen, I get: Mutt:/var/spool/mail/itsme [Msgs: 0 Inc: 
20](date/date)(all)--



I was wondering if I could get some advice and help on how to do this. I plan 
on sending mail through postfix (localhost:25). 


My apologies for my questions and thank you for your help!


GT



--- End Message ---


[no subject]

2020-10-21 Thread Globe Trotter via Mutt-users
This message wraps the original message.

The sending domain has a DMARC p=reject policy, which unfortunately
can cause bounces.  See http://www.mutt.org/mail-lists.html#dmarc

To remove this message, please change the domain policy to p=none or
p=quarantine.--- Begin Message ---
Hi,
Sorry I am very new (as of today) to mutt and I am trying to get started. 

My set up is as follows: I use fetchmail and procmail to get my mail delivered 
to Maildir mailboxes. So,my mail is inside folders in ~/Maildir in the 
following manner:
~/Maildir/inbox~/Maildir/sent~/Maildir/drafts
~/Maildir/work/~/Maildir/work/user1~/Maildir/work/user2~/Maildir/bills~/Maildir/family
etc. I want to show this tree on a side-pane. So, my initial attempt at .muttrc 
has the following: modified from mutt & Maildir Mini-HOWTO
set mbox_type=Maildir
set folder="~/Maildir"
mailboxes `echo -n "+ "; find ~/Maildir -type d -name "*" -printf "+'%f' "`

However, when I launch mutt, I get nothing and after a lot of blank stares 
on-screen, I get: Mutt:/var/spool/mail/itsme [Msgs: 0 Inc: 
20](date/date)(all)-- 

I was wondering if I could get some help.
My apologies for my questions and thank you for your help!
GT



--- End Message ---


[no subject]

2020-10-21 Thread Globe Trotter via Mutt-users
This message wraps the original message.

The sending domain has a DMARC p=reject policy, which unfortunately
can cause bounces.  See http://www.mutt.org/mail-lists.html#dmarc

To remove this message, please change the domain policy to p=none or
p=quarantine.--- Begin Message ---
Hi,
Sorry I am very new (as of today) to mutt and I am trying to get started. 

My set up is as follows: I use fetchmail and procmail to get my mail delivered 
to Maildir mailboxes. So,my mail is inside folders in ~/Maildir in the 
following manner:
~/Maildir/inbox~/Maildir/sent~/Maildir/drafts
~/Maildir/work/~/Maildir/work/user1~/Maildir/work/user2~/Maildir/bills~/Maildir/family
etc. I want to show this tree on a side-pane. So, my initial attempt at .muttrc 
has the following: modified from mutt & Maildir Mini-HOWTO

| 
| 
|  | 
mutt & Maildir Mini-HOWTO


 |

 |

 |



set mbox_type=Maildir
set folder="~/Maildir"
mailboxes `echo -n "+ "; find ~/Maildir -type d -name "*" -printf "+'%f' "`

However, when I launch mutt, I get nothing and after a lot of blank stares 
on-screen, I get: Mutt:/var/spool/mail/itsme [Msgs: 0 Inc: 
20](date/date)(all)-- 

I was wondering if I could get some help.
My apologies for my questions and thank you for your help!
GT

--- End Message ---