Re: Feature (plugin?) request, boomerang mail

2011-10-28 Thread Erik Christiansen
On 27.10.11 15:27, David Champion wrote:
 * On 27 Oct 2011, Jostein Gogstad wrote: 
  
  Anyone heard of a script that does something similar? Do you think it falls
  under the responsibility of the MUA?
 
 I think that sounds like a task management / trouble-ticketing system.
 Typically a reply to an e-mail is not the exact result I'm looking for;
 it's I'll take care of that or I need more details or something
 similar.  I wouldn't want to automate that.

Yep, I think that normally needs to be wetware-initiated, according to
intracranial process priorities. In similar circumstances, I'd be
tempted to just whack in an at job, and move on:

$ at now + 12 hours
warning: commands will be executed using /bin/sh
at mail -s Ping Fred, if no action yet! erik
at EOT
job 1 at Sat Oct 29 07:09:00 2011

Admittedly, if the host is powered down at now + 12 hours, then you'd
need to be using anacron, for the job to be run when you come back to
the office and turn it on again. But then I'd schedule the job for prior
to COB. (e.g. at 4pm)

Erik

-- 
(5)  It is always possible to agglutinate multiple separate problems
 into a single complex interdependent solution. In most cases
 this is a bad idea. 
 RFC-1925



Re: external file manager

2011-10-28 Thread Christian Brabandt


On Do, 27 Okt 2011, Jostein Berntsen wrote:
 Thanks. I tried to source the vmb file now from the updated
 repository, but the same result with no ranger. 

I took this offlist and the problem is now solved.

regards,
Christian


Re: Help with multiple emails

2011-10-28 Thread Robert Dyer
I have now successfully set up mutt as my email client, but have three
issues remaining. They are listed below in order of increasing
seriousness.
  1) I have successfully set up macros for limiting the number of emails
I see, but would like to be able to have a default limiting expression
for when I first start mutt.
  2) I have placed all my emails in one maildir structure but would like
to back them up independently. I.e. 'cp'ing them only if the sender or
receiver had a particular address. This would have to be scriptable.
  3) I have set up several configuration files and made a maildir
structure but feel uncomfortable leaving my emails settings, e.g.
passwords, and messages in plain text files that anyone could read. I
have nothing to hide but feel this is insecure.
  To clarify the programs I have installed to manage my mail are: mutt
(obviously), getmail, procmail, and msmtp. I would very much appreciate
any help possible, as the last issue especially is a BIG problem.
 For the benefit of those reading this I will attach a copy of my .muttrc
rather than uploading it. Also for those wondering, explicitly setting my
from address to an empty string did not work as expected, instead mutt
very incorrectly guessed my address based on my login name and the name
of the computer I was working at. However this did not matter as by not
specifying a default account for msmtp I receive an error whenever
trying to send an email without explicitly setting the from address. 
  Finally a thank you in advance to anyone who can help :-).
# character set on messages that we send
set send_charset=utf-8
# if there is no character set given on incoming messages, it is probably 
windows
set assumed_charset=iso-8859-1

# make sure Vim knows mutt is a mail client and that we compose an UTF-8 
encoded message
set editor=vim -c 'set syntax=mail ft=mail enc=utf-8'

# Tell mutt to use maildir format
set mbox_type=Maildir

# just scroll one line instead of full page
set menu_scroll=yes

# enable mailcap file
set mailcap_path=~/.mutt/mailcap

# we want to see some MIME types inline, see below this code listing for 
explanation
auto_view text/html
auto_view application/msword
auto_view application/pdf

# make default search pattern to search in To, Cc and Subject
set simple_search=~f %s | ~C %s | ~s %s

# threading preferences, sort by threads
set sort=threads
set strict_threads=yes

# show spam score (from SpamAssassin only) when reading a message
spam X-Spam-Score: ([0-9\\.]+).* SA: %1
set pager_format =  %C - %[%H:%M] %.20v, %s%* %?H? [%H] ?

# do not show all headers, just a few
ignore  *
unignoreFrom To Cc Bcc Date Subject
# and in this order
unhdr_order *
hdr_order   From: To: Cc: Bcc: Date: Subject:

# brighten up stuff with colours, for more colouring examples see:
# http://aperiodic.net/phil/configs/mutt/colors
color normal  white  black
color hdrdefault  green  default
color quoted  green  default
color quoted1 yellow default
color quoted2 reddefault
color signature   cyan   default
color indicator   brightyellow   red
color error   brightred  default
color status  brightwhiteblue
color treebrightmagenta  black
color tilde   blue   default
color attachment  brightyellow   default
color markers brightred  default
color message white  black
color search  brightwhitemagenta
color boldbrightyellow   default
# if you don't like the black progress bar at the bottom of the screen,
# comment out the following line
color progresswhite  black

# spell-checking
set ispell=aspell -e -c

# personality settings
set sendmail='/usr/bin/msmtp'
set reverse_name
set realname = [CENSORED]
unset from
set use_envelope_from
alternates ^[CENSORED]$
alternates ^[CENSORED]$
alternates ^[CENSORED]$
alternates -group [CENSORED] ^[CENSORED]$ ^[CENSORED]$
# this file must exist, and contains your signature, comment it out if
# you don't want a signature to be used
## set signature = ~/.signature

# aliases (sort of address book)
set alias_file=/data/mail/aliases
set sort_alias=alias
set reverse_alias=yes
source $alias_file

# account settings
set folder=/data/mail
set spoolfile=+.Inbox
set mask=!^\\.[^.]
set record=+.Sent
set postponed=+.Drafts

# use headercache for IMAP (make sure this is a directory for performance!)
set header_cache=/tmp/.mutt

# mailboxes we want to monitor for new mail
  mailboxes ! `\
  for file in /data/mail/.*; do \
box=$(basename $file); \
if [ ! $box = '.' -a ! $box = '..' -a ! $box = '.customflags' \
  -a ! $box = '.subscriptions' ]; then \
  echo -n \+$box\ ; \
fi; \
  done`
# mailboxes =
# mailboxes =Lists

# mailing lists we are on (these are regexps!)
## subscribe gentoo-.*@gentoo\\.org

# Macros
macro index,pager c change-folder?toggle-mailboxes open a different 
folder
# macro pager c change-folder?toggle-mailboxes open a 

mailcap entry for html - escaping spaces

2011-10-28 Thread Tim Johnson
Using mutt on Mac Lion - OSX 10.7
I'm trying to create a mailcap entry so that I can view text/html
attachments with chrome
The chrome executable is on a path with embedded spaces.
I have the following entry:
##
text/html; /Applications/Google\ Chrome.app/Contents/MacOS/Google\
Chrome %s
##
in .mailcap.

When I select the attachment I get the following error message:
[1028/162111:INFO:breakpad_mac.mm(82)] Breakpad disabled
[5695:2571:73282031144211:ERROR:process_singleton_mac.cc(102)]
Unable to obtain profile lock.

I think that could be translated as Barking up the wrong tree.
What would be the preferable way to do this?

NOTE: I am most familiar with ubuntu. I am new to Lion.
Ubuntu uses a script called /usr/bin/sensible-browser for this
purpose, I believe. 

Is there a comparable script for Lion?

thanks
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com


Re: mailcap entry for html - escaping spaces

2011-10-28 Thread Cameron Simpson
On 28Oct2011 16:27, Tim Johnson t...@akwebsoft.com wrote:
| Using mutt on Mac Lion - OSX 10.7
| I'm trying to create a mailcap entry so that I can view text/html
| attachments with chrome
| The chrome executable is on a path with embedded spaces.
| I have the following entry:
| ##
| text/html; /Applications/Google\ Chrome.app/Contents/MacOS/Google\
| Chrome %s
| ##
| in .mailcap.
| 
| When I select the attachment I get the following error message:
| [1028/162111:INFO:breakpad_mac.mm(82)] Breakpad disabled
| [5695:2571:73282031144211:ERROR:process_singleton_mac.cc(102)]
| Unable to obtain profile lock.
| 
| I think that could be translated as Barking up the wrong tree.
| What would be the preferable way to do this?
| 
| NOTE: I am most familiar with ubuntu. I am new to Lion.
| Ubuntu uses a script called /usr/bin/sensible-browser for this
| purpose, I believe. 
| 
| Is there a comparable script for Lion?

Here's what I do sometimes. My $PATH has two (well ,more, but basicly
two) leading items:

  $HOME/bin-local
  $HOME/bin

The latter is my collection of scripts and is identical on all machines.
The _former_ is per-machine hacks (and new scripts not yet part of the
main set).

For your situation the simplest thing for me would be:

  ln -s '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome' 
$HOME/bin-local/chrome

(On one line, should the mailer fold things.)

Then just make the mailcap read:

  text/html; chrome %s

In general, this kind of approach will let you have a nice easy to read
mailcap with simple command names; you put all the machine specific
executable location rubbish in $HOME/bin-local if the normal bins don't
do what you need.

Cheers,
-- 
Cameron Simpson c...@zip.com.au DoD#743
http://www.cskk.ezoshosting.com/cs/

I am now convinced that theoretical physics is actual philosophy.
- Max Born