Re: providing imap_pass but not from ~/.muttrc

2019-06-13 Thread Larry Rosenman

On 06/13/2019 4:52 pm, Cameron Simpson wrote:

On 13Jun2019 14:26, Larry Rosenman  wrote:

I do the following trick:

source "gpg -q --textmode -d ~/.neomutt/passwords.gpg  |"

where the passwords.gpg file sets my_ vars for all my
passwords.


Doesn't that require interaction on each mutt startup? I appreciate
that this has the password nicely encrypted when idle and doesn't
display them on the command line or in environment variables.


[snip]

I have gpg-agent running so the key is available.  I have some 
switch-identity stuff in the rest of my

(neo)mutt rc files to switch between the identities.
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 214-642-9640 E-Mail: l...@lerctr.org
US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106


Re: providing imap_pass but not from ~/.muttrc

2019-06-13 Thread Larry Rosenman

On 06/13/2019 2:19 pm, Ben Boeckel wrote:

On Thu, Jun 13, 2019 at 20:56:33 +0200, Matthias Apitz wrote:
I often use SSH to connect to my rented VM space of my ISP (which gets 
me to a
Linux server) and I do use mutt from there to check my mails or even 
to
answer, esp. when I do not have my FreeBSD netbook with full Internet 
and all

mails up.

I do not want to set 'imap_pass=...' and such values in the ~/.muttrc 
on

this VM. Is there any other way to provide such credentials without to
key them in on start of mutt, for example based on an environment
variable which I could route to the VM through the SSH session like:

$ ssh -At www.unixarea.de imap_pass=abc bash --login
Thu Jun 13 20:44:51 CEST 2019
...
sh4-5:~$ env | grep imap
imap_pass=abc


I don't think there's any mechanism in mutt. You might be able to have
`mutt -F <(genmuttrc)` dump it out. It may also be worth just doing 
`set

imap_pass=...` inside mutt once it has started.

However, what's your threat model that having it in the file is not OK
but the environment is OK? `/proc/foo/environ` is just as readable on
Linux as muttrc is likely to be.

How are you getting your sendmail password over in order to send email?
Or is it trusted because it's coming from the ISP's VM?

--Ben



I do the following trick:

source "gpg -q --textmode -d ~/.neomutt/passwords.gpg  |"

where the passwords.gpg file sets my_ vars for all my
passwords.

Just an idea.

--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 214-642-9640 E-Mail: l...@lerctr.org
US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106


Re: moving messages on imap4 server based on date received

2017-10-08 Thread Larry Rosenman
I use the following cron job on my server using doveadm running on the imap 
server:
lrosenman:~ lrosenman$ ssh tbh.lerctr.org cat bin/archive-mail
#!/bin/sh
PATH=$PATH:/usr/local/bin
#Expects to be run after midnight on the first of the month
#  to archive all the previous months mail
#Date Run:
TODAY=`date "+%Y-%m-%d"`
#last month in /MM
YEAR_LAST_MONTH=`date -v-1d "+%Y/%m"`
#1st of last month as 01-Mon-
FIRST_LAST_MONTH=`date -v-1d "+01-%b-%Y"`
echo 'TODAY=' ${TODAY}
echo 'YEAR_LAST_MONTH=' ${YEAR_LAST_MONTH}
echo 'FIRST_LAST_MONTH=' ${FIRST_LAST_MONTH}
# get a list of all the mailboxes with at least one real message
doveadm -f tab mailbox status vsize \* 2>/dev/null |
sed -e 1d | sort -k 1,1 |
awk  'BEGIN {FS="\t"} {if ($2 > 0)  print $1}' |
while read i
do
   echo `date` start ${i}
   doveadm mailbox create "ARCHIVE/${YEAR_LAST_MONTH}/${i}"
   doveadm -f tab mailbox status messages "${i}"
   doveadm move "ARCHIVE/${YEAR_LAST_MONTH}/${i}" mailbox \
"${i}" BEFORE ${TODAY} SINCE ${FIRST_LAST_MONTH}
   doveadm -f tab mailbox status messages "${i}"
   echo `date` done  ${i}
done
lrosenman:~ lrosenman$

Whether you can run on YOUR server, I do not know, but I've been running this 
script for ~1 year. 


-- 
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 214-642-9640 E-Mail: l...@lerctr.org
US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
 
 
On 10/8/17, 4:10 PM, "tech-lists" <owner-mutt-us...@mutt.org on behalf of 
tech-li...@zyxst.net> wrote:

On Thu, Sep 28, 2017 at 03:56:35PM -0400, Dan Ritter wrote:
>On Thu, Sep 28, 2017 at 02:10:22PM +0100, tech-lists wrote:
>> Hello mutt-users@
>>
>> I'm running mutt 1.9.1 (2017-09-22) on freebsd-11-stable.
>>
>> What I'd like to have is, when mutt loads, it scans its subscribed
>> folders and moves the mail based on date received into preconfigured
>> mail folders. Either that, or maybe run another standalone program in a
>> screen or cron that does the same. I don't want to "download" the mail
>> at this stage - it needs to be moved around on the remote server.
>>
>> Can mutt do this, or is there another program that does this with imap4?
>
>If your IMAP server supports SIEVE, that is the easiest way to
>get this done. Sorting will happen at delivery time.

Hi, sorry for the late reply

The reason I can't use SIEVE is because SIEVE rules act at delivery time
only. By delivery time, I mean the time they arrive on the imap server.

What I want to happen is, for emails already in folders on the imap
server, if they're over say 30 days old, for an automatic process to
move them into an archive folder on the same server.

thanks,
-- 
J.





Re: Sending SMTP email to lookout -- RESOLVED

2017-10-03 Thread Larry Rosenman
Yeah, the O365 username is user@domain, so the double at-sign (@) confuses some 
folks….

-- 
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 214-642-9640 E-Mail: l...@lerctr.org
US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
 
 

On 10/3/17, 4:37 PM, "fe...@crowfix.com" <fe...@crowfix.com> wrote:

It was smtp_url.  The definition in the mutt manual says

smtp[s]://[user[:pass]@]host[:port]

and I guess I got it confused with http://user:pass@domain, so had

smtp://me:p...@corp.com@smtp.office365.com:port

but it should be

smtp://m...@corp.com:p...@smtp.office365.com:port

-- 
... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
 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





Re: Sending SMTP email to lookout

2017-10-03 Thread Larry Rosenman
On Tue, Oct 03, 2017 at 07:04:42PM +, fe...@crowfix.com wrote:
> I doubt very much this is a bug in (neo)mutt.
> 
> I also didn't think there was enough difference in the two for it to matter 
> that I post here.
> 
> What I need help with is the configuration.  If K-9 can talk to 
> smtp.office365.com, surely so can (neo)mutt.  What am I doing wrong?
> 

I use the following with office 365:
--
set folder=imaps://%40:$my_pass_@outlook.office365.com
set smtp_url = "smtp://@:$my_pass_@smtp.office365.com:587"
set imap_check_subscribed=yes
set imap_idle=yes
set imap_list_subscribed=no
set from = "@"
set realname = "Larry Rosenman"
set spoolfile= "+INBOX"
set record = "+Sent Items"

set smtp_authenticators=login
mailboxes +INBOX
account-hook imaps://@@outlook.office365.com "unset imap_headers"
---
where $my_pass_ is set in a different file. 


-- 
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 214-642-9640 E-Mail: l...@lerctr.org
US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106


signature.asc
Description: PGP signature


MAILDIR format/slocal?

2000-11-15 Thread Larry Rosenman

Greetings,
I know this isn't a Mutt issue per se, but...
Does anyone know of a MAILDIR enabled version of slocal?  SCO
supplies slocal as the Local Delivery Agent on UnixWare 7, and I'm
thinking about making my mailinglist folders maildir...

I'm not even sure where slocal comes from.  Pointers appreciated. 

Thanks!

LER

-- 
Larry Rosenman  http://www.lerctr.org/~ler
Phone: +1 972-414-9812 (voice) Internet: [EMAIL PROTECTED]
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749



Re: mailbox list order?

2000-10-24 Thread Larry Rosenman

* Bruce DeVisser [EMAIL PROTECTED] [001023 23:20]:
 On Sat, Oct 21, 2000 at 05:02:21PM -0500, Larry Rosenman wrote:
  Is there a way (1.3.10i if it matters) to set the mailbox list order?
  I.E. I want it to be reverse date sent always (I do O d when I get
  into it).
  
  I can't seem to find the right command for my .muttrc stuff.
 
 I think this is it:
 set sort_browser=reverse-date
Bingo.  Thank You.  

That worked.  Now, can we make it easier to find somehow? 

(yes, the command list is daunting).

LER

 
 -- 
 - Bruce
-- 
Larry Rosenman  http://www.lerctr.org/~ler
Phone: +1 972-414-9812 (voice) Internet: [EMAIL PROTECTED]
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749



mailbox list order?

2000-10-23 Thread Larry Rosenman

Is there a way (1.3.10i if it matters) to set the mailbox list order?

I.E. I want it to be reverse date sent always (I do O d when I get
into it).

I can't seem to find the right command for my .muttrc stuff.

Thanks!
-- 
Larry Rosenman  http://www.lerctr.org/~ler
Phone: +1 972-414-9812 (voice) Internet: [EMAIL PROTECTED]
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

 PGP signature


Re: color

2000-10-20 Thread Larry Rosenman

Sounds like your curses lib doesn't support color.  You might try
ncurses
* Mike E [EMAIL PROTECTED] [001020 11:56]:
 On Fri, Oct 20, 2000 at 10:29:17AM -0600, Harold Oga wrote:
  On 20 Oct 2000, at 22:50, Anthony Liu wrote:
   On Fri, Oct 20, 2000 at 02:56:30AM -0700, Mike E wrote:
I'm trying to set up color with mutt (1.2.5i) but I am getting 
"color: unknown command" errors from my muttrc. Is there some trick
that I'm missing?

   Perhaps you should try colour instead :)
   
   Seriously, can you post a few lines before and after the color
   statement?
  Hi,
 Actually, it sounds like color support has been turned off.  What does 
  the output from "mutt -v" show.  Specifically, what curses lib is your mutt 
  built against and does "mutt -v" show +HAVE_COLOR or -HAVE_COLOR?
 
 Sure enough -HAVE_COLOR is in the compile options. However, when I went
 back to the source and did a ./configure --help, I didn't see any option
 to include color support. How do I recompile with color support?
 
 Thanks
 Mike
 
 -- 
 Mike Ericksonmee@quidquam http://www.quidquam.com/
 "Hatred is the coward's revenge for being intimidated" - George Bernard Shaw
-- 
Larry Rosenman  http://www.lerctr.org/~ler
Phone: +1 972-414-9812 (voice) Internet: [EMAIL PROTECTED]
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749



Re: color

2000-10-20 Thread Larry Rosenman

* Mike E [EMAIL PROTECTED] [001020 12:14]:
 On Fri, Oct 20, 2000 at 12:01:13PM -0500, Larry Rosenman wrote:
  Sounds like your curses lib doesn't support color.  You might try
  ncurses
As I said, the curses lib doesn't support color...

Here is my mutt -v:

Mutt 1.3.10i (2000-10-11)
Copyright (C) 1996-2000 Michael R. Elkins and others.
Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
Mutt is free software, and you are welcome to redistribute it
under certain conditions; type `mutt -vv' for details.

System: UnixWare 5
Compile options:
DOMAIN="lerctr.org"
+DEBUG
-HOMESPOOL  -USE_SETGID  +USE_DOTLOCK  -DL_STANDALONE  
+USE_FCNTL  -USE_FLOCK
+USE_POP  +USE_IMAP  -USE_GSS  +USE_SSL  +USE_SASL  
+HAVE_REGCOMP  -USE_GNU_REGEX  
+HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET  
+HAVE_CURS_SET  +HAVE_META  -HAVE_RESIZETERM  
+HAVE_PGP  -BUFFY_SIZE -EXACT_ADDRESS  -SUN_ATTACHMENT  
+ENABLE_NLS  -LOCALES_HACK  +HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET  
++HAVE_LANGINFO_YESEXPR  
+HAVE_ICONV  +ICONV_NONTRANS  +HAVE_GETSID  +HAVE_GETADDRINFO  
ISPELL="/usr/local/bin/ispell"
SENDMAIL="/etc/mail/sendmail"
MAILPATH="/var/mail"
SHAREDIR="/usr/local/share/mutt"
SYSCONFDIR="/usr/local/etc"
EXECSHELL="/bin/sh"
-MIXMASTER
To contact the developers, please mail to [EMAIL PROTECTED].
To report a bug, please use the flea(1) utility.

 
 here is the full output of mutt -v
 
 
 Mutt 1.2.5i (2000-07-28)
 Copyright (C) 1996-2000 Michael R. Elkins and others.
 Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
 Mutt is free software, and you are welcome to redistribute it
 under certain conditions; type `mutt -vv' for details.
 
 System: FreeBSD 3.4-STABLE [using ncurses 1.8.6/ache]
 Compile options:
 -DOMAIN
 -DEBUG
 -HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +USE_FCNTL  -USE_FLOCK
 -USE_IMAP  -USE_GSS  -USE_SSL  -USE_POP  +HAVE_REGCOMP  -USE_GNU_REGEX  
 -HAVE_COLOR  +HAVE_PGP  -BUFFY_SIZE -EXACT_ADDRESS  +ENABLE_NLS
 SENDMAIL="/usr/sbin/sendmail"
 MAILPATH="/var/mail"
 SHAREDIR="/usr/local/share/mutt"
 SYSCONFDIR="/usr/local/etc"
 -ISPELL
 To contact the developers, please mail to [EMAIL PROTECTED].
 To report a bug, please use the muttbug utility.
 
 Mike
 
 -- 
 Mike Ericksonmee@quidquam     http://www.quidquam.com/
 "Hatred is the coward's revenge for being intimidated" - George Bernard Shaw
-- 
Larry Rosenman  http://www.lerctr.org/~ler
Phone: +1 972-414-9812 (voice) Internet: [EMAIL PROTECTED]
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749



RE: Configuring Mutt with Sendmail and PPP.

2000-08-24 Thread Larry Rosenman

sendmail can be configured in the sendmail.cf to use mode=queueonly.

(from man sendmail:

DeliveryMode=x
  Set the delivery mode to x. Delivery modes are
i
   interactive (synchronous) delivery
b
   background (asynchronous) delivery
q
   queue only; that is, actual delivery is done the next time
   the queue is run
d
   deferred; the same as q except that database lookups
   (notably DNS and NIS lookups) are avoided

)

See also the sendmail operations guide.

LER


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of rex
Sent: Thursday, August 24, 2000 11:40 AM
To: Damien Tougas
Cc: [EMAIL PROTECTED]
Subject: Re: Configuring Mutt with Sendmail and PPP.


On Wed, Aug 23, 2000 at 10:36:45PM -0400, Damien Tougas wrote:

 I am using Mutt on a laptop, with a dialup connection. I have Sendmail
 configured to queue messages, and I force processing of the mailqueue
 when I connect via PPP. The problem is, every time mutt sends a message
 it forces sendmail to do a DNS lookup which in turn causes PPPd to make
 a connection to the net. (I know that this is Sendmail's fault, but
 from what I can see, there is no way to prevent Sendmail from doing this).

I'm using Sendmail on a dialup and it queues messages when offline. When
Mutt sends a message it's put in the queue and no dialup is initiated.
Later, when I connect, I type "sendmail -q" and the queued messages are
sent. Unfortunately, I don't remember where this is configured, but at
least you know it's possible to stop sendmail/PPPd from dialing every time
a message is queued (I think this is a PPPd issue).

If someone else doesn't point out what needs to be configured, let me know
and I'll dig into it more.

Regards,

-rex