Re: providing IMAP password to a mutt running on a remote host

2020-05-28 Thread Alexander Dahl
Hello Matthias,

On Fri, May 29, 2020 at 07:33:41AM +0200, Matthias Apitz wrote:
> I often use mutt on some remote Linux host of my ISP about which I do
> not have control as root, just a SSH login is provided. Due to this I do
> not want to store the IMAP password in ~/.muttrc or where ever there in
> plain text.

Good.

> Has someone an idea how could I provide to the remote mutt session the
> IMAP credentials stored on my local laptop? And no, I do not want to use
> IMAP through the SSH tunnel, i.e. run mutt on my laptop, because in the
> scenario described above the laptop is inside my company and central
> managed network and I can not use any normal sendmail MX chain, all mail
> must be passed through a central host (guess, what type of MX this runs
> :-) )

What I do, seriously: start mutt in 'screen', type in the IMAP
password interactively every morning, leave mutt open, close it in the
evening.

Not quite automatic, but maybe you can copy and paste the password to
the interactive input from a password manager like 'pass' from your
laptop?

Greets
Alex

-- 
/"\ ASCII RIBBON | »With the first link, the chain is forged. The first
\ / CAMPAIGN | speech censured, the first thought forbidden, the
 X  AGAINST  | first freedom denied, chains us all irrevocably.«
/ \ HTML MAIL| (Jean-Luc Picard, quoting Judge Aaron Satie)


signature.asc
Description: PGP signature


providing IMAP password to a mutt running on a remote host

2020-05-28 Thread Matthias Apitz


Hello,

I often use mutt on some remote Linux host of my ISP about which I do
not have control as root, just a SSH login is provided. Due to this I do
not want to store the IMAP password in ~/.muttrc or where ever there in
plain text.

The SSH connection is initiated from my local FreeBSD laptop using RSA
and a ssh-agent, i.e. I can do there on the remote host also:

$ ssh-add -l
1024 SHA256:kZHWaISpML7rzqVppZNTOR+r+6plvFsc967WqOJ5iKo /home/guru/.ssh/id_rsa 
(RSA)

Has someone an idea how could I provide to the remote mutt session the
IMAP credentials stored on my local laptop? And no, I do not want to use
IMAP through the SSH tunnel, i.e. run mutt on my laptop, because in the
scenario described above the laptop is inside my company and central
managed network and I can not use any normal sendmail MX chain, all mail
must be passed through a central host (guess, what type of MX this runs
:-) )

Thanks

matthias
-- 
Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub
May, 9: Спаси́бо освободители! Thank you very much, Russian liberators!


Re: [Mutt] Block, autoreplay and purge messages with attachement size large than 1MB

2020-05-28 Thread Marcelo Laia
On 28/05/20 at 02:46, Mihai Lazarescu wrote:
> On Wednesday, May 27, 2020 at 16:59:20 -0300, Marcelo Laia wrote:
> Probably this can be automated, at least to some extent.
> 
> I prefer to save the attachments on disk


This is a good idea! If it could be automated, is the best to choose!
But, an autoresponse to the sender is good, so!

I do not have skills to do this in the mutt/offline side!
unfortunately!

Cheers!

-- 
Marcelo


Re: Block, autoreplay and purge messages with attachement size large than 1MB

2020-05-28 Thread Marcelo Laia
On 28/05/20 at 08:10, José María Mateos wrote:
> On Wed, May 27, 2020 at 05:22:23PM -0300, Marcelo Laia wrote:
> Now I send an e-mail to that address with a large attachment (300kb)... and
> the e-mail is deleted, but for some reason I don't get the autoresponse
> back.


Yes! It worked! I have been created autoresponse filter first. After
few days I will create another one to delete messages. I think you do
not have autoresponse because you create one filter. I suggest you
create two. First autoresponse and, after, delete it.

Thank you so much!

-- 
Marcelo


Re: Block, autoreplay and purge messages with attachement size large than 1MB

2020-05-28 Thread José María Mateos

On Wed, May 27, 2020 at 05:22:23PM -0300, Marcelo Laia wrote:

You are very welcome!

I asked to do this in the client side because I use Gmail. How I could
do this on the Gmail side? If it is possible, I will love it!


Hi Marcelo,

I've done a small test but I haven't been able to make it work, though I 
think I've followed a reasonable path. You're welcome to try to 
replicate it, I can't really tell why it fails, it's not like there's a 
log somewhere.


First I have created a template (make sure you have them enabled: 
Settings > Advanced > Templates). Edit a new mail and use the "three 
dot" menu at the bottom of the composing window: Templates > Save draft 
as template > Save as new template. Give it a proper name 
(large_autoreply, for instance).


Then create a filter with this search: "has:attachment larger:256K". I'm 
using 256K so we don't have to use attachments that are too large to 
test it. Put that in the search box (or use the options to get basically 
the same effect) and then click "Create filter". Choose "Delete it" and 
"Sent template", and choose the one we just created. Click on the blue 
"Create filter" button.


Now I send an e-mail to that address with a large attachment (300kb)... 
and the e-mail is deleted, but for some reason I don't get the 
autoresponse back. It's true that I haven't used gmail in a while, so 
perhaps there is something more to the templates that I haven't done.


Cheers,

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