Need help configuring remote alpine mail client

Advanced feature discussion, beta programs and unsupported "Labs" features.
3 posts Page 1 of 1
by meyerbo2 » Sun May 19, 2024 5:39 pm
Does anyone have expertise that can help me with this?

Now that shell access is being discontinued. I want to use alpine running on a remote host to read and send email from Sonic.
The problem I am having is that I cannot seem to access email folders other than INBOX. Like others, I have a procmail filter that filters my email into various folders on sh.sonic.net into my "mail" directory, which I check as needed. When I try the following configuration in my .pinerc configuration file:

incoming-folders=IN.good {sh.sonic.net:993/novalidate-cert/ssl/user=meyerbo2}~meyerbo2/mail/IN.good

I see the folder IN.good in my Incoming Message Folders list and when selected, alpine says '[Opening "IN.good" <-> ]', but after a minute it returns "sh.sonic.net, 993: Connection timed out". This worked fine when I ran alpine locally on Sonic using the shell to access my local file "mail/IN.good".

Any ideas?

FYI, the following works fine and allows me to view my INBOX and send email (after authentication):
smtp-server=mail.sonic.net:465/ssl
inbox-path={imap.sonic.net:993/novalidate-cert/ssl/user=meyerbo2}

Thanks in advance!
by apl » Mon May 20, 2024 11:29 am
I don't think having a remote client read from a directory on shell is going to work at all. (And even if you could get it to work today, it would stop working after shell is turned off.)

But rather than have procmail save the mail to a file, you can have it sort it into a subfolder on the IMAP server, by starting the destination with a "." and ending with a "/"
So your recipe would look something like

:0
* ^From.*[email protected]
.good/

This would move any message matching the criterion to the subfolder "good" on the IMAP server. If your main mailbox is INBOX, then any IMAP client should be able to see the subfolder as INBOX.good
(I don't use alpine, so don't know if there is something you would need to do to get it to see the new subfolder, or if it will find it automatically.)
by meyerbo2 » Mon May 20, 2024 2:12 pm
Thanks so much. I will give that a try!

UPDATE: This works great. I can now access the INBOX subfolders from a remote machine through IMAP. Thanks for your help, apl!
3 posts Page 1 of 1