Difference between revisions of "Talk:Mutt"

From ArchWiki
Jump to: navigation, search
(Mutt's official name)
m (Deleted section in Display recipient instead of sender in "Sent" folder view: unsigned)
 
(44 intermediate revisions by 14 users not shown)
Line 1: Line 1:
== Viewing URLs & Opening Firefox ==
+
== Using mixmaster in Mutt ==
 +
I once installed mutt with mixmaster, after upgrading it, mixmaster is not installed by default with mutt. -- [[User:Pickfire|Pickfire]]([[User talk:Pickfire|talk]]) 15:25, 5 July 2015‎ (UTC)
  
I'd say: Viewing URLs & Opening your favorite browser<br>
+
==Maildir==
and after<br>
+
{{bc|1=
COMMAND firefox %s <br>
+
set folder=$HOME/mail
I'd add: <br>
+
}}
(in case, replace firefox with your favorite browser, e.g. opera, elinks) [[User:Marco.it|Marco.it]] 05:06, 7 November 2007 (EST)
+
Does the folder need a trailing slash? like
 +
{{bc|1=
 +
set folder=$HOME/mail/
 +
}}
 +
[[User:Napterk|Napterk]] ([[User talk:Napterk|talk]]) 06:45, 4 April 2016 (UTC)
  
== <s>Mutt's official name </s> ==
 
See the website: http://www.mutt.org. It's Mutt, not ''m''utt. [[User:Dres|Dres]] 15:05, 7 January 2010 (EST)
 
:Fixed. Close. -- [[User:Fengchao|Fengchao]] ([[User talk:Fengchao|talk]]) 01:02, 7 March 2013 (UTC)
 
  
== Use Mutt to send mail from command line ==
+
==Deleted section in Display recipient instead of sender in "Sent" folder view==
I am not able to use the command with an attachment, and it seems it does not work because the -a flag must be after the recipient, as in http://www.linuxquestions.org/questions/showthread.php?p=4159242 is said.
+
This section was originally under `Display recipient instead of sender in "Sent" folder view`
  
Therefore, I directly change that line. If anyone have any problem, tell here please.
+
I removed it because there's a much simpler way, but this might be useful for some edge cases, so feel free to put it back (with a caveat that it's sub-optimal). The deleted section follows.
 +
 
 +
{{unsigned|10:11, 27 September 2016‎|Ostiensis}}
 +
 
 +
=== Old content ===
 +
 
 +
The "columns" of the index can be configured through the {{ic|index_format}} variable. Its syntax is documented in the {{ic|muttrc}} man page. The values of our concern are {{ic|%t}} (recipient) and {{ic|%F}} (sender).
 +
 
 +
To change the columns according to the current folder, we need to use a hook:
 +
{{hc|muttrc|<nowiki>
 +
folder-hook  .*[sS]ent.* 'set index_format="%2C | %Z [%d] %-30.30t (%-4.4c) %?M?<%M> ?%s"'
 +
folder-hook ! .*[sS]ent.* 'set index_format="%2C | %Z [%d] %-30.30F (%-4.4c) %?M?<%M> ?%s"'
 +
</nowiki>}}
 +
 
 +
The exclamation mark means ''everything that does not match the following regex''. Of course you can change the index_format following your taste, and the regular expression if the folder does not have ''Sent'' nor ''sent'' in its name.
 +
 
 +
Let us centralize the settings, it will simplify future tweaking.
 +
{{hc|muttrc|<nowiki>
 +
set my_index_format_pre='set index_format="%2C | %Z [%d] %-30.30'
 +
set my_index_format_post=' (%-4.4c) %?M?<%M> ?%s"'
 +
 
 +
folder-hook .*[sS]ent.* "$my_index_format_pre"t"$my_index_format_post"
 +
folder-hook ! .*[sS]ent.* "$my_index_format_pre"F"$my_index_format_post"
 +
</nowiki>}}
 +
 
 +
== <s>Secure Environment</s> ==
 +
I believe that local [[openvpn]] article was describing secure environment as a mere /root/ folder, since no one can access it besides local root(or whoever is authorized as such). Another far more concrete, yet comparatively more resource hungry approach, would be to call some kind of a chroot jail and perform necessary operations in it. This however, for an apparent reason, would not be fitting for all cases, such as a VPS, where space and resources are already fairly limited -- [[User:Pineman13|Pineman13]] ([[User talk:Pineman13|talk]]) 21:06, 3 October 2016 (UTC)
 +
 
 +
:Probably not relevant anymore since [https://wiki.archlinux.org/index.php?title=Mutt&diff=470497&oldid=470492], closing. -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 07:32, 11 August 2017 (UTC)

Latest revision as of 10:01, 11 August 2017

Using mixmaster in Mutt

I once installed mutt with mixmaster, after upgrading it, mixmaster is not installed by default with mutt. -- Pickfire(talk) 15:25, 5 July 2015‎ (UTC)

Maildir

set folder=$HOME/mail

Does the folder need a trailing slash? like

set folder=$HOME/mail/

Napterk (talk) 06:45, 4 April 2016 (UTC)


Deleted section in Display recipient instead of sender in "Sent" folder view

This section was originally under `Display recipient instead of sender in "Sent" folder view`

I removed it because there's a much simpler way, but this might be useful for some edge cases, so feel free to put it back (with a caveat that it's sub-optimal). The deleted section follows.

—This unsigned comment is by Ostiensis (talk) 10:11, 27 September 2016‎. Please sign your posts with ~~~~!

Old content

The "columns" of the index can be configured through the index_format variable. Its syntax is documented in the muttrc man page. The values of our concern are %t (recipient) and %F (sender).

To change the columns according to the current folder, we need to use a hook:

muttrc
folder-hook   .*[sS]ent.* 'set index_format="%2C | %Z [%d] %-30.30t (%-4.4c) %?M?<%M> ?%s"'
folder-hook ! .*[sS]ent.* 'set index_format="%2C | %Z [%d] %-30.30F (%-4.4c) %?M?<%M> ?%s"'

The exclamation mark means everything that does not match the following regex. Of course you can change the index_format following your taste, and the regular expression if the folder does not have Sent nor sent in its name.

Let us centralize the settings, it will simplify future tweaking.

muttrc
set my_index_format_pre='set index_format="%2C | %Z [%d] %-30.30'
set my_index_format_post=' (%-4.4c) %?M?<%M> ?%s"'

folder-hook .*[sS]ent.* "$my_index_format_pre"t"$my_index_format_post"
folder-hook ! .*[sS]ent.* "$my_index_format_pre"F"$my_index_format_post"

Secure Environment

I believe that local openvpn article was describing secure environment as a mere /root/ folder, since no one can access it besides local root(or whoever is authorized as such). Another far more concrete, yet comparatively more resource hungry approach, would be to call some kind of a chroot jail and perform necessary operations in it. This however, for an apparent reason, would not be fitting for all cases, such as a VPS, where space and resources are already fairly limited -- Pineman13 (talk) 21:06, 3 October 2016 (UTC)

Probably not relevant anymore since [1], closing. -- Lahwaacz (talk) 07:32, 11 August 2017 (UTC)