From r.wolf.pine at atlas.cz Thu Jun 9 00:52:58 2022 From: r.wolf.pine at atlas.cz (Robert Wolf) Date: Fri Mar 22 14:17:32 2024 Subject: [Alpine-info] Gmail IMAP with username+password (was: Instructions to configure XOAUTH2 in Gmail have changed) In-Reply-To: <0ef0366f-df41-0d96-529c-ea473a0ca9d8@yandex.com> References: <0ef0366f-df41-0d96-529c-ea473a0ca9d8@yandex.com> Message-ID: Hello all, I answer to this thread to keep the context. First - Eduardo, thank you very much for keeping alpine alive and adding new features! > with the upcoming change in gmail whereas username/passwords combination > will stop working many users are attempting to configure Alpine woth XOAUTH2. This change affected me yesterday - I have found that offlineimap cannot sync the emails from gmail to my dovecot server (I don't know why, but my dovecot IMAP is faster than Gmail IMAP in alpine, therefore I sync extern IMAPs to my IMAP). I have logged in to my gmail and I have found, the "use less secure apps" option is really deactivated and disabled forever. A few months ago, when this change has been announced, I have found in the google account the possibility to generate special application password. So I have tested it on one low-prio account. I had to activate 2-step verification and then I could generate special password for Mail. With this password and my email I was able to login to IMAP using simple username+password authentication. And yesterday, I have activated 2-step verification (with smartphone "Yes" click, SMS/voice call, time based OTP [google auth, andotp] and backup codes) for all my gmail accounts and then I could generate special random password for IMAP login. So now my offlineimap works again. Yes, I have to login with 2-step verification to google from webclient, but the most important is that IMAP works with simple username+password again. It works in alpine too, if you save the password to password file, then you don't need to remeber or copy it everytime you start alpine. Great is that you can still use gmail IMAP in other apps without XOAUTH2 support (as my old offlineimap version) without any changes except password. I hope this information helps you. Regards, Robert Wolf. From alpine.chappa at yandex.com Thu Jun 9 14:30:04 2022 From: alpine.chappa at yandex.com (Eduardo Chappa) Date: Fri Mar 22 14:17:32 2024 Subject: [Alpine-info] Gmail IMAP with username+password (was: Instructions to configure XOAUTH2 in Gmail have changed) In-Reply-To: References: <0ef0366f-df41-0d96-529c-ea473a0ca9d8@yandex.com> Message-ID: <41d532ab-2ef3-daf1-c369-0516d019ef30@yandex.com> On Thu, 9 Jun 2022, Robert Wolf wrote: >> with the upcoming change in gmail whereas username/passwords >> combination will stop working many users are attempting to configure >> Alpine woth XOAUTH2. > > This change affected me yesterday - I have found that offlineimap cannot > sync the emails from gmail to my dovecot server (I don't know why, but > my dovecot IMAP is faster than Gmail IMAP in alpine, therefore I sync > extern IMAPs to my IMAP). That's interesting. I have found directions to use xoauth with offline email https://hobo.house/2017/07/17/using-offlineimap-with-the-gmail-imap-api/ I suppose these will be useful for anything. > A few months ago, when this change has been announced, I have found in > the google account the possibility to generate special application > password. So I have tested it on one low-prio account. I had to activate > 2-step verification and then I could generate special password for Mail. > With this password and my email I was able to login to IMAP using simple > username+password authentication. This is interesting. While the use of XOAUTH2 over app generated passwords might be a matter of personal preference, I wonder why Google allows these still. Do you have to generate a password for different machines or can you use the same password for two different machines? (say a user needs access from office computer and from home computer). If the answer is that the same password generated in one machine can be used to access in another machine, then I do not see much of a gain in security. Refresh tokens cannot be moved from one machine to another. Typically any attempt to move a refresh token from one machine to another will make the refresh token lose its effectiveness (this is a problem that people find when they attempt to authorize Alpine in one machine and do the authorization process in another). What this potentially means is that if someone decodes a password file that contains an app generated password they will gain access to that account, but not if they decode such password file containing a refresh token. Thanks for the information. It is very useful. -- Eduardo From r.wolf.pine at atlas.cz Thu Jun 9 16:34:21 2022 From: r.wolf.pine at atlas.cz (Robert Wolf) Date: Fri Mar 22 14:17:32 2024 Subject: [Alpine-info] Gmail IMAP with username+password (was: Instructions to configure XOAUTH2 in Gmail have changed) In-Reply-To: <9s92o596-93op-91qr-90rp-7r1r5ro9116q@ngynf.pm> References: <0ef0366f-df41-0d96-529c-ea473a0ca9d8@yandex.com> <41d532ab-2ef3-daf1-c369-0516d019ef30@yandex.com> <9s92o596-93op-91qr-90rp-7r1r5ro9116q@ngynf.pm> Message-ID: <982r093-sn49-6ps6-5q2s-229766p1574@ngynf.pm> Hello Eduardo, > That's interesting. I have found directions to use xoauth with offline email Wow, I have not expected, that offlineimap supports xoauth too. Great. > This is interesting. While the use of XOAUTH2 over app generated passwords > might be a matter of personal preference, With the App password everything works still same way, only the password is different. > I wonder why Google allows these still. It's one application password (if someone steals this password, he can only access data from this application, but cannot steals the whole accounts), and it's generated (random characters, i.e. better then "abc123" password). Maybe therefore they allow it? > Do you have to generate a password for different machines or can you use the > same password for two different machines? I just select what application I want access (Mail, Calendar, Contacts, Youtube and "other"??) and then device from which I want to access it (predefined are iPhone, iPad, BlackBerry, Mac, Windows Phone, Windows Computer and then "Other" with custom name). I have selected "Mail" application and "Other" device named "imap". Then I can access mailbox using IMAP with offlineimap or from alpine. > (say a user needs access from office computer and from home computer). It looks like he generates one password for access to Mail and then he can use it as many time as he want. > If the answer is that the same password generated in one machine can be used > to access in another machine, then I do not see much of a gain in security. As discussed with my work colleague, there is higher security that the password is only for access to specific application (not the whole google account) and the password is random generated 16 characters, which is better then passwords created by users "abc123". It's protecting google account, but it's not protecting better the application. > Refresh tokens cannot be moved from one machine to another. Typically any > attempt to move a refresh token from one machine to another will make the > refresh token lose its effectiveness (this is a problem that people find > when they attempt to authorize Alpine in one machine and do the > authorization process in another). Yes, this is more secure. But, does it mean that I need to generate new refresh token everytime I change my client IP? My offlineimap runs on server with fixed IP, but on my notebook, I move to different networks. Then do I have to generate refresh token everytime? > What this potentially means is that if someone decodes a password file that > contains an app generated password they will gain access to that account, > but not if they decode such password file containing a refresh token. Yes, that's true. Now the password file contains password for IMAP access only, not for the google account anymore. Of course, I can generate for offlineimap and for alpine two different passwords and if I find out, that someone got one password, I can delete it (and maybe generate new one). It's something like API tokens for web services - IP independent and for specific app only. Thank you. Regards, Robert Wolf. From robin.listas at telefonica.net Thu Jun 9 23:31:25 2022 From: robin.listas at telefonica.net (Carlos E. R.) Date: Fri Mar 22 14:17:32 2024 Subject: [Alpine-info] Gmail IMAP with username+password (was: Instructions to configure XOAUTH2 in Gmail have changed) In-Reply-To: <41d532ab-2ef3-daf1-c369-0516d019ef30@yandex.com> References: <0ef0366f-df41-0d96-529c-ea473a0ca9d8@yandex.com> <41d532ab-2ef3-daf1-c369-0516d019ef30@yandex.com> Message-ID: On 2022-06-09 23:30, Eduardo Chappa wrote: > On Thu, 9 Jun 2022, Robert Wolf wrote: ... >> A few months ago, when this change has been announced, I have found in >> the google account the possibility to generate special application >> password. So I have tested it on one low-prio account. I had to >> activate 2-step verification and then I could generate special >> password for Mail. With this password and my email I was able to login >> to IMAP using simple username+password authentication. > > This is interesting. While the use of XOAUTH2 over app generated > passwords might be a matter of personal preference, I wonder why Google > allows these still. Do you have to generate a password for different > machines or can you use the same password for two different machines? > (say a user needs access from office computer and from home computer). > If the answer is that the same password generated in one machine can be > used to access in another machine, then I do not see much of a gain in > security. Refresh tokens cannot be moved from one machine to another. > Typically any attempt to move a refresh token from one machine to > another will make the refresh token lose its effectiveness (this is a > problem that people find when they attempt to authorize Alpine in one > machine and do the authorization process in another). What this > potentially means is that if someone decodes a password file that > contains an app generated password they will gain access to that > account, but not if they decode such password file containing a refresh > token. I use a different password for each application (alpine, postfix, etc), and machine. Maybe sharing would work, but I'm not risking it. Although in this machine I'm not using Alpine much, not fully configured yet, postfix is working. -- Cheers / Saludos, Carlos E. R. (from Elesar, using openSUSE Leap 15.3) From info at simonh.uk Fri Jun 10 11:29:21 2022 From: info at simonh.uk (Simon Harrison) Date: Fri Mar 22 14:17:32 2024 Subject: [Alpine-info] Maildir showing as Empty Message-ID: <20220610192921.7fb145b4@jupiter> Hello. I'm using Alpine 2.25 compiled with the Maildir patch. Everything has been working fine for a few weeks but the other day I typed: $ mail -f "/home/simon/mbox": 0 messages just to double check that there weren't any lingering messages in there. When I then opened Alpine, it seemed all my emails had vanished! [Folder "INBOX" opened with 0 messages] Running tree showed that they were still there, and running Mutt also loaded them all correctly. So, has anyone any idea what might be going on? Thanks, Simon From jason-alpine-info at shalott.net Fri Jun 10 12:32:51 2022 From: jason-alpine-info at shalott.net (jason-alpine-info@shalott.net) Date: Fri Mar 22 14:17:32 2024 Subject: [Alpine-info] Maildir showing as Empty In-Reply-To: <20220610192921.7fb145b4@jupiter> References: <20220610192921.7fb145b4@jupiter> Message-ID: > Hello. I'm using Alpine 2.25 compiled with the Maildir patch. > > Everything has been working fine for a few weeks but the other day I > typed: > > $ mail -f > "/home/simon/mbox": 0 messages > > just to double check that there weren't any lingering messages in > there. When I then opened Alpine, it seemed all my emails had vanished! I think that Alpine's "mbox" driver has a higher precedence than the "maildir" driver; so if both mailbox types exist, and you're not manually configuring the inbox-path, then Alpine will see the mbox and ignore the maildir. I'm guessing that when you ran "mail -f", it created an empty mbox file in your homedir, so now Alpine sees that as a valid mailbox with zero messages in it, and it is ignoring the maildir that actually has your messages in it. If so, you have a few options: 1) Confirm that ${HOME}/mbox is empty, and then simply delete it. 2) Assuming you use maildir exclusively, disable the mbox driver in Alpine. Go into the configuration screen (M -> S -> C), search (W) for "Disable These Drivers", and add "mbox" to the list. 3) Manually set inbox-path to point to your maildir. (Again, in the configuration screen, search for "Inbox Path".) -Jason From gajs-f0el at dea.spamcon.org Fri Jun 10 16:14:05 2022 From: gajs-f0el at dea.spamcon.org (gajs-f0el@dea.spamcon.org) Date: Fri Mar 22 14:17:32 2024 Subject: [Alpine-info] gmail issues help request Message-ID: <3gjpqkvrat-1@m0247473.ppops.net> I've begun experiencing big headaches using Alpine to interface with my gmail accounts (2 of them via IMAP). I think my problems predate, at least in part, google's June 2022 system changes. So I'll ask about the problem I was having prior to the recent google changes and see whether the increasing issues I'm having subsequent to June 1st might not be addressed or resolved by addressing that. So Alpine recently implemented the ability to save passwords to disk in encrypted form. That seemed like a great idea to me, so I began using it. Shortly thereafter Alpine stopped accepting the password/passphrase I'd set up to encrypt/decrypt the saved passwords. I tried every one I think I could possibly have used, but none worked. There is, of course, the possibility that I used some unique password I'd never used before, though that remains a remote possibility. So I think I will need to restart from scratch on that front before attempting to address additional issues that have cropped up in the past few days, should those persist after resolving the password-saving issue. Is there a way to delete whatever file/folder/data got created when I previously set a passphrase to encrypt the data saved on disk when asked by Alpine whether to save/encrypt the passwords? That's what I hope to be able to do so as to restart the process of saving those credentials, which makes the process of checking e-mail much more streamlined. Also, is there some documentation that explains in greater detail the way this new (subsequent to June 1st 2022) process Alpine uses to interface with gmail works? It seems quite complicated with a number of different moving parts. I don't have much hope of or interest in understanding in great depth how this all works on a technical level but I would like to get a better handle on the fundamentals of it since it may save, in the future, some time and effort in diagnosing things when I encounter obstacles such as the one I'm presently facing. BTW I have in mind an explanation that goes a bit beyond the what is covered on the "Authorizing Alpine Access to Gmail Email Services" page, helpful though that is. Thanks, and thanks for the work of the developer(s) in continuing to support changing e-mail authentication scenarios. From alpine.chappa at yandex.com Fri Jun 10 16:40:25 2022 From: alpine.chappa at yandex.com (Eduardo Chappa) Date: Fri Mar 22 14:17:32 2024 Subject: [Alpine-info] gmail issues help request In-Reply-To: <3gjpqkvrat-1@m0247473.ppops.net> References: <3gjpqkvrat-1@m0247473.ppops.net> Message-ID: Dear gajs-f0el, if you can't remember your master password, there is no way to recover it. Which means that you have rendered your password file useless. If you think it is not worth trying to recall it and you prefer to restart from scratch, then you need to do two things: 1) remove your password file; and, 2) remove the certificate used to encrypt it. You can do this with the command rm -rf ~/.alpine-smime/.pwd Then execute the command touch your_password_file to create an empty password file. Everything else will happen automatically after that. I hope that will help you get on the good path to authenticate in Gmail. -- Eduardo On Fri, 10 Jun 2022, gajs-f0el@dea.spamcon.org wrote: > I've begun experiencing big headaches using Alpine to interface with my gmail accounts (2 of them via IMAP). I think my problems predate, > at least in part, google's June 2022 system changes. So I'll ask about the problem I was having prior to the recent google changes and see > whether the increasing issues I'm having subsequent to June 1st might not be addressed or resolved by addressing that. > > So Alpine recently implemented the ability to save passwords to disk in encrypted form. That seemed like a great idea to me, so I began > using it. Shortly thereafter Alpine stopped accepting the password/passphrase I'd set up to encrypt/decrypt the saved passwords. I tried > every one I think I could possibly have used, but none worked. There is, of course, the possibility that I used some unique password I'd > never used before, though that remains a remote possibility. So I think I will need to restart from scratch on that front before > attempting to address additional issues that have cropped up in the past few days, should those persist after resolving the > password-saving issue. > > Is there a way to delete whatever file/folder/data got created when I previously set a passphrase to encrypt the data saved on disk when > asked by Alpine whether to save/encrypt the passwords? That's what I hope to be able to do so as to restart the process of saving those > credentials, which makes the process of checking e-mail much more streamlined. > > Also, is there some documentation that explains in greater detail the way this new (subsequent to June 1st 2022) process Alpine uses to > interface with gmail works? It seems quite complicated with a number of different moving parts. I don't have much hope of or interest in > understanding in great depth how this all works on a technical level but I would like to get a better handle on the fundamentals of it > since it may save, in the future, some time and effort in diagnosing things when I encounter obstacles such as the one I'm presently > facing. > > BTW I have in mind an explanation that goes a bit beyond the what is covered on the "Authorizing Alpine Access to Gmail Email Services" > page, helpful though that is. > > Thanks, and thanks for the work of the developer(s) in continuing to support changing e-mail authentication scenarios. > _______________________________________________ > Alpine-info mailing list > Alpine-info@u.washington.edu > http://mailman12.u.washington.edu/mailman/listinfo/alpine-info > From alpine.chappa at yandex.com Sat Jun 11 22:17:53 2022 From: alpine.chappa at yandex.com (Eduardo Chappa) Date: Fri Mar 22 14:17:32 2024 Subject: [Alpine-info] New Site Message-ID: Dear Alpinists, I have registered the site https://alpineapp.email to continue supporting Alpine. The site should be available to you soon. All references to the old web site should be updated by changing alpine.x10host.com to alpineapp.email. If you find any problems during this transitions, please let me know. Thank you. -- Eduardo From gajs-f0el at dea.spamcon.org Mon Jun 13 09:02:53 2022 From: gajs-f0el at dea.spamcon.org (gajs-f0el@dea.spamcon.org) Date: Fri Mar 22 14:17:32 2024 Subject: [Alpine-info] Continued gmail difficulties Message-ID: <3gmm5v8j9b-1@m0247480.ppops.net> I have tried, using help Eduardo offered in an earlier response, to start afresh on saving passwords to disk. But I can't tell whether or not I've met with success. Here is the reason. Each time I try to check e-mail on one of my two gmail accounts, I am prompted to enter a password. And each time I enter the password, I am asked whether I want to save the password to disk, I hit "y." And I have to do this 3 times each time I try to check e-mail for each folder under each of the two accounts before the folder I am trying to check will open and display the e-mails contained in it (on the first 2 tries I see the message "Retrying PLAIN authentication after [AUTHENTICATIONFAILED] Invalid credentials (Failure)"). This development has made dealing with e-mail quite an onerous task. Assuming I am in a minority of Alpine users in confronting these issues, what could I be doing wrong here? I followed the directives presented on the "Authorizing Alpine Access to Gmail Email Services" page and set up projects for each account. I saved the client-id and client-secret per the instructions. I entered the access code and pasted it at the prompt as directed. My version of Alpine is 2.25.1, gotten via the Void Linux repositories. Help resolving these issues will be much appreciated. I am unhappy with these gmail developments and began a month ago planning to migrate from gmail for that reason and due to privacy concerns. But I need a way to continue using these accounts while I complete my migration plan. From alpine.chappa at yandex.com Mon Jun 13 09:23:39 2022 From: alpine.chappa at yandex.com (Eduardo Chappa) Date: Fri Mar 22 14:17:32 2024 Subject: [Alpine-info] Continued gmail difficulties In-Reply-To: <3gmm5v8j9b-1@m0247480.ppops.net> References: <3gmm5v8j9b-1@m0247480.ppops.net> Message-ID: <0d4a2b05-816c-c0f3-2736-8f61e538150a@yandex.com> On Mon, 13 Jun 2022, gajs-f0el@dea.spamcon.org wrote: > I have tried, using help Eduardo offered in an earlier response, to > start afresh on saving passwords to disk. But I can't tell whether or > not I've met with success. Here is the reason. Each time I try to check > e-mail on one of my two gmail accounts, I am prompted to enter a > password. And each time I enter the password, I am asked whether I want > to save the password to disk, I hit "y." And I have to do this 3 times > each time I try to check e-mail for each folder under each of the two > accounts before the folder I am trying to check will open and display > the e-mails contained in it (on the first 2 tries I see the message > "Retrying PLAIN authentication after [AUTHENTICATIONFAILED] Invalid > credentials (Failure)"). This development has made dealing with e-mail > quite an onerous task. > > Assuming I am in a minority of Alpine users in confronting these issues, > what could I be doing wrong here? I followed the directives presented on > the "Authorizing Alpine Access to Gmail Email Services" page and set up > projects for each account. I saved the client-id and client-secret per > the instructions. I entered the access code and pasted it at the prompt > as directed. My version of Alpine is 2.25.1, gotten via the Void Linux > repositories. It seems that you are still using username/password authentication, and once that fails Alpine moves to using xoauth2. For technical reasons Alpine attempts to use username/password before it attempts xoauth2, so in order to use xoauth2 first you need to tell Alpine explictly to try that, and that is done by adding /auth=xoauth2 to the definition of the server, so in addition to imap.gmail.com/ssl/user=Yourid@gmail.com you need to add /auth=xoauth2 to that to make it look like imap.gmail.com/ssl/user=Yourid@gmail.com/auth=xoauth2 I hope this helps. -- Eduardo From gajs-f0el at dea.spamcon.org Tue Jun 14 08:27:18 2022 From: gajs-f0el at dea.spamcon.org (gajs-f0el@dea.spamcon.org) Date: Fri Mar 22 14:17:32 2024 Subject: [Alpine-info] Continued gmail difficulties Message-ID: <3gpemhbe6m-1@m0247480.ppops.net> Thanks you for your input, Eduardo. That makes sense. Fully implementing the directives requires restarting Alpine, correct? Also, it seems similar changes must be made to smtp entries, yes? What would be the form for smtp entries so that Alpine uses the new authentication scheme? Thank you, James From alpine.chappa at yandex.com Tue Jun 14 11:34:04 2022 From: alpine.chappa at yandex.com (Eduardo Chappa) Date: Fri Mar 22 14:17:32 2024 Subject: [Alpine-info] Continued gmail difficulties In-Reply-To: <3gpemhbe6m-1@m0247480.ppops.net> References: <3gpemhbe6m-1@m0247480.ppops.net> Message-ID: <5cd8870b-546e-7a0f-a839-1fda3f9886f6@yandex.com> On Tue, 14 Jun 2022, gajs-f0el@dea.spamcon.org wrote: > Thanks you for your input, Eduardo. That makes sense. Fully implementing > the directives requires restarting Alpine, correct? Also, it seems > similar changes must be made to smtp entries, yes? What would be the > form for smtp entries so that Alpine uses the new authentication scheme? Dear gajs-f0el, please follow the directions at https://alpineapp.email/alpine/alpine-info/misc/AuthorizeAlpineGmail.html there you can see the exact values for smtp and imap servers. Thank you. -- Eduardo From peter at asgalon.net Tue Jun 21 01:52:28 2022 From: peter at asgalon.net (Peter Koellner) Date: Fri Mar 22 14:17:32 2024 Subject: [Alpine-info] Remote address book adding does not seem to work? Message-ID: Hi, I am using alpine 2.25.1 now, and just had an odd effect when trying to add a new address to the address book: It tells me "Address book has changed: resynchronize and try again". What does "resynchronize" mean there? I quit and restarted alpine, nothing changed. Regards Peter From alpine.chappa at yandex.com Tue Jun 21 12:13:20 2022 From: alpine.chappa at yandex.com (Eduardo Chappa) Date: Fri Mar 22 14:17:32 2024 Subject: [Alpine-info] Remote address book adding does not seem to work? In-Reply-To: References: Message-ID: <16f192f3-6a04-848b-c8a1-349432dadf1b@yandex.com> On Tue, 21 Jun 2022, Peter Koellner wrote: > I am using alpine 2.25.1 now, and just had an odd effect when trying to > add a new address to the address book: It tells me "Address book has > changed: resynchronize and try again". What does "resynchronize" mean > there? I quit and restarted alpine, nothing changed. I am not sure what triggers that message, but the synchronization refers to a local copy of the addressbook. This is typically a file with a name .abXXXXXX that should be in the same directory as your .pinerc. It looks like somehow there is a discrepancy between your local copy and that on the server. Find your local copy and change its name to see if Alpine will recreate it and if that might fix your issue. -- Eduardo From peter at asgalon.net Tue Jun 21 12:51:16 2022 From: peter at asgalon.net (Peter Koellner) Date: Fri Mar 22 14:17:32 2024 Subject: [Alpine-info] Remote address book adding does not seem to work? In-Reply-To: <16f192f3-6a04-848b-c8a1-349432dadf1b@yandex.com> References: <16f192f3-6a04-848b-c8a1-349432dadf1b@yandex.com> Message-ID: <8b69921b-2bc5-fba2-d971-b14701c12b14@asgalon.net> Dear Eduardo, On Tue, 21 Jun 2022, Eduardo Chappa wrote: > I am not sure what triggers that message, but the synchronization refers to a > local copy of the addressbook. This is typically a file with a name .abXXXXXX > that should be in the same directory as your .pinerc. It looks like somehow > there is a discrepancy between your local copy and that on the server. > > Find your local copy and change its name to see if Alpine will recreate it > and if that might fix your issue. It looks like the problem solved itself by entering the address book, changing something, which also triggers the message, then reentering and doing the change again. It may have been some side effect of reorganizing the system a couple of months before. Regards Peter From patrick at collinatorstudios.com Fri Jun 24 15:51:29 2022 From: patrick at collinatorstudios.com (Patrick J. Collins) Date: Fri Mar 22 14:17:32 2024 Subject: [Alpine-info] multiple mailbox locations? Message-ID: <1584fa9a-a76a-1a36-92bf-a514beda8dc3@collinatorstudios.com> Hi everyone, My webhost recently emailed me telling me my mail directory was too big... So I copied all my non-inbox mail folders (organized by month/year) down to my local machine, and deleted everything but my inbox on their server. Is there a way for my pinerc to specify two locations for mail? So I can have it display my inbox from the remote server, but also show all my "read-messages--" and "sent-mail--" from my local machine? Patrick J. Collins https://collinatorstudios.com From mepstein at illinois.edu Fri Jun 24 18:16:49 2022 From: mepstein at illinois.edu (Milt Epstein) Date: Fri Mar 22 14:17:32 2024 Subject: [Alpine-info] multiple mailbox locations? In-Reply-To: <1584fa9a-a76a-1a36-92bf-a514beda8dc3@collinatorstudios.com> References: <1584fa9a-a76a-1a36-92bf-a514beda8dc3@collinatorstudios.com> Message-ID: <6e926e33-9fd2-b344-ae40-65cda2d55121@illinois.edu> How do you want the different folders displayed? If you just want them displayed as folders you can go into to view the messages therein, then all you need do is put them in a directory alpine knows about. This can be done with the folder-collections option, e.g.: folder-collections="Local Folders" Mail/[] sets the directory Mail to be for Local Folders. Then when you do L/ListFolders it shows those folders. If you want these folders as incoming folders, you can use the incoming-folders option. You can set these options either interactively from within alpine or in your .pinerc file. Milt Epstein mepstein@illinois.edu On Fri, 24 Jun 2022, Patrick J. Collins wrote: > Hi everyone, > > My webhost recently emailed me telling me my mail directory was too > big... So I copied all my non-inbox mail folders (organized by > month/year) down to my local machine, and deleted everything but my > inbox on their server. > > Is there a way for my pinerc to specify two locations for mail? So I > can have it display my inbox from the remote server, but also show all > my "read-messages--" and "sent-mail--" from my > local machine? > > Patrick J. Collins > https://urldefense.com/v3/__https://collinatorstudios.com__;!!DZ3fjg!-YycFD_tOamyuxvRo_YI3uquCzkh4M69PeFqx2RL9ed4s2Skx-c3pp13U1eKtfYgvmkhTZbBDgBAHZxNKrrYuz-bQ2k$ > > _______________________________________________ > Alpine-info mailing list > Alpine-info@u.washington.edu > https://urldefense.com/v3/__http://mailman12.u.washington.edu/mailman/listinfo/alpine-info__;!!DZ3fjg!-YycFD_tOamyuxvRo_YI3uquCzkh4M69PeFqx2RL9ed4s2Skx-c3pp13U1eKtfYgvmkhTZbBDgBAHZxNKrrYwDaSk3g$ > From lucio at lambrate.inaf.it Sat Jun 25 12:47:39 2022 From: lucio at lambrate.inaf.it (Lucio Chiappetti) Date: Fri Mar 22 14:17:32 2024 Subject: [Alpine-info] multiple mailbox locations? In-Reply-To: <1584fa9a-a76a-1a36-92bf-a514beda8dc3@collinatorstudios.com> References: <1584fa9a-a76a-1a36-92bf-a514beda8dc3@collinatorstudios.com> Message-ID: On Fri, 24 Jun 2022, Patrick J. Collins wrote: > Is there a way for my pinerc to specify two locations for mail? You can have as many locations as you want, local and remote even in different locations. I have defined as "incoming folders" at least 3 locations (actually I have 5 but some are vestigials) , and as "folder collections" more than half a dozen locations. All the "folder collections" but one are local directories (each one with many folders mainly grouped by topic). The other one point to Gsuite IMAP to see all folders there BUT the inbox (de facto I have only Spam and Bin which I clean daily). The first of the "incoming folders" is my LOCAL inbox (/var/spool/mail/user) ... I used to receive mnail directly there, but soince we moved to Gsuite it is populated by fetchmail. The other two are the Gsuite IMAP inbox (this is emptied by fetchmail every 5 min, so I use it only if I cannot wait) and a POP inbox on another provider (this is emptied by fetchmail twice pr day). The other two vestigial ones are local folders populated by procmail for spefici rules (subjects/origin). Of course everytying which is in local folders (for me the majority, it used to be the totality before we moved to Gsuite) CANNOT be accessed when you are away from office or home or wherever your machine resides. For me it is not a problem (I am not a frequent traveller). I can always ssh to my machine, or activate an (UW) IMAP server there. -- Lucio Chiappetti - INAF/IASF - via Corti 12 - I-20133 Milano (Italy) For more info : http://www.iasf-milano.inaf.it/~lucio/personal.html ------------------------------------------------------------------------ "All that is google does not glitter Nor all who use alpine/procmail are lost" From patrick at collinatorstudios.com Sat Jun 25 13:59:23 2022 From: patrick at collinatorstudios.com (Patrick J. Collins) Date: Fri Mar 22 14:17:32 2024 Subject: [Alpine-info] multiple mailbox locations? Message-ID: <6a85b5fa-ef63-b8f5-b183-2e618688a4@collinatorstudios.com> > This can be done with the folder-collections option, e.g.: > > folder-collections="Local Folders" Mail/[] Hmm.. I must be doing something wrong because this appears to not be working. I put in my pinerc: folder-collections=Mail {collinatorstudios.com:993/ssl/novalidate-cert/user=patrick@collinatorstudios.com}[], "Local Folders" /Users/patrick/Documents/mail/patrick[] But when I run Alpine, it just shows: -------------------------------------------------------------------------------- Folder-Collection -------------------------------------------------------------------------------- INBOX -------------------------------------------------------------------------------- Folder-Collection -------------------------------------------------------------------------------- [Select Here to See Expanded List] ... When I try the "see expanded list" option, it just shows me the various other folders on the remote server, not the local stuff. The ~/Documents/mail/patrick folder has in it two regular files: dovecot.mailbox.log.2 maildirsize along with all the dot files for my folders like .sent-mail-may-2013 for example So I am not sure if it's expecting things to be in a different folder structure? Patrick J. Collins https://collinatorstudios.com From mepstein at illinois.edu Sat Jun 25 14:36:14 2022 From: mepstein at illinois.edu (Milt Epstein) Date: Fri Mar 22 14:17:32 2024 Subject: [Alpine-info] multiple mailbox locations? In-Reply-To: <6a85b5fa-ef63-b8f5-b183-2e618688a4@collinatorstudios.com> References: <6a85b5fa-ef63-b8f5-b183-2e618688a4@collinatorstudios.com> Message-ID: Don't know for sure the issue, a few thoughts: When I have "continuation lines" for an option setting in my .pinerc, the lines begin with a TAB. So it'd be something like: folder-collections=... ... I don't know what you have. (Plus you might check the setting in alpine interactively to see if that gives you any more information.) Should you have a "/" after the "patrick", e.g., "/Users/patrick/Documents/mail/patrick/[]"? Are the absolute/relative paths OK? e.g., when I specify "Mail/[]", it's referring to the directory Mail under my home directory. As to the files in that directory, with mine they're just regular mbox files. Not really sure what you mean by "the dot files for my folders". Maybe you're using a different format for message files/directories, like maildir? (Or maybe you need to put the messages you saved in mbox files?) I think you can use alpine with maildir, but it may require using a patched version. And I'd think these options can be used with maildir, but I don't know the details. Milt Epstein mepstein@illinois.edu On Sat, 25 Jun 2022, Patrick J. Collins wrote: > > This can be done with the folder-collections option, e.g.: > > > > folder-collections="Local Folders" Mail/[] > > Hmm.. I must be doing something wrong because this appears to not be working. > I put in my pinerc: > > folder-collections=Mail {collinatorstudios.com:993/ssl/novalidate-cert/user=patrick@collinatorstudios.com}[], > "Local Folders" /Users/patrick/Documents/mail/patrick[] > > But when I run Alpine, it just shows: > > -------------------------------------------------------------------------------- > Folder-Collection > -------------------------------------------------------------------------------- > > INBOX > > -------------------------------------------------------------------------------- > Folder-Collection > -------------------------------------------------------------------------------- > > [Select Here to See Expanded List] > > > ... When I try the "see expanded list" option, it just shows me the various > other folders on the remote server, not the local stuff. > > The ~/Documents/mail/patrick folder has in it two regular files: > > dovecot.mailbox.log.2 > maildirsize > > along with all the dot files for my folders like .sent-mail-may-2013 for example > > So I am not sure if it's expecting things to be in a different folder structure? > > Patrick J. Collins > https://urldefense.com/v3/__https://collinatorstudios.com__;!!DZ3fjg!8cQH-eROBuFNMznSHfiR9i14yCjZwO9FY0AGwypz0hOq_8GQbfU7scTEThaUYRW6B8P40MnDbgzKyarVVOc2jk9ZriI$ > _______________________________________________ > Alpine-info mailing list > Alpine-info@u.washington.edu > https://urldefense.com/v3/__http://mailman12.u.washington.edu/mailman/listinfo/alpine-info__;!!DZ3fjg!8cQH-eROBuFNMznSHfiR9i14yCjZwO9FY0AGwypz0hOq_8GQbfU7scTEThaUYRW6B8P40MnDbgzKyarVVOc2EZ-lOrU$ > From patrick at collinatorstudios.com Sun Jun 26 13:24:24 2022 From: patrick at collinatorstudios.com (Patrick J. Collins) Date: Fri Mar 22 14:17:32 2024 Subject: [Alpine-info] multiple mailbox locations? Message-ID: <74181cc-aa22-bc89-7524-ef60a5e1439@collinatorstudios.com> I tried replying a few times, but seems like something in my message is confusing the mailing list.. So here is a link to my message: https://collinatorstudios.com/www/alpine.txt Patrick J. Collins https://collinatorstudios.com On Sat, 25 Jun 2022, alpine-info-bounces@mailman12.u.washington.edu wrote: > The results of your email command are provided below. Attached is your > original message. > > - Results: > Ignoring non-text/plain MIME parts > > - Unprocessed: > > the lines begin with a TAB. So it'd be something like: > > Should you have a "/" after the "patrick", e.g., > > "/Users/patrick/Documents/mail/patrick/[]"? > Aha.. Yes, both of those things were needed. > However, now I guess my problem is the format, which is kind of confusing to > me... So I mentioned "dot files" because that's how all of my folders were > stored on the remote server, which as far as I know is what alpine created > during use. that mail folder basically has two non-invisible files: > -rw-r----- 1 patrick staff 4104 Jun 21 11:09 dovecot.mailbox.log.2 > -rw------- 1 patrick staff 5089 Jun 21 11:12 maildirsize > and then all of my folders are dot files (invisible): > drwxr-x--x 12 patrick staff 384 Jun 21 11:37 .sent-mail-sep-2012 > drwxr-x--x 11 patrick staff 352 Jun 21 11:16 .sent-mail-sep-2013 > drwxr-x--x 10 patrick staff 320 Jun 21 11:26 .sent-mail-sep-2014 > drwxr-x--x 10 patrick staff 320 Jun 21 11:19 .sent-mail-sep-2016 > drwxr-x--x 10 patrick staff 320 Jun 21 11:19 .sent-mail-sep-2017 > drwxr-x--x 10 patrick staff 320 Jun 21 11:17 .sent-mail-sep-2018 > > - Ignored: > ... etc > > Within one of those directories, .sent-mail-sep-2018 for example, has the > following contents: > > ~/Documents/mail/patrick/.sent-mail-sep-2018>tree . > . > ??? cur > ??? ??? 1589265452.M997649P9066.sh11.svwh.net,S=2377,W=2452:2,S > ??? ??? 1589265453.M163519P9066.sh11.svwh.net,S=931,W=948:2,S > ??? ??? 1589265453.M347635P9066.sh11.svwh.net,S=508,W=523:2, > ??? ??? 1589265453.M467958P9066.sh11.svwh.net,S=831,W=852:2,S > ??? ??? 1589265453.M599150P9066.sh11.svwh.net,S=841,W=864:2,S > ??? ??? 1589265453.M782238P9066.sh11.svwh.net,S=5114,W=5190:2, > ??? ??? 1589265453.M968419P9066.sh11.svwh.net,S=5107,W=5175:2, > ??? ??? 1589265454.M237423P9066.sh11.svwh.net,S=1029,W=1057:2,S > ??? ??? 1589265454.M557229P9066.sh11.svwh.net,S=442,W=456:2, > ??? ??? 1589265454.M763921P9066.sh11.svwh.net,S=2417,W=2467:2,S > ??? ??? 1589265454.M921825P9066.sh11.svwh.net,S=458,W=474:2, > ??? ??? 1589265455.M130583P9066.sh11.svwh.net,S=1511,W=1544:2,S > ??? ??? 1589265455.M341382P9066.sh11.svwh.net,S=984,W=1010:2,S > ??? ??? 1589265456.M494800P9066.sh11.svwh.net,S=692473,W=703841:2, > ??? ??? 1589265457.M582095P9066.sh11.svwh.net,S=459,W=473:2, > ??? ??? 1589265457.M775470P9066.sh11.svwh.net,S=505,W=520:2, > ??? ??? 1589265457.M932204P9066.sh11.svwh.net,S=774,W=797:2,S > ??? ??? 1589265458.M199355P9066.sh11.svwh.net,S=496,W=514:2,S > ??? ??? 1589265458.M442489P9066.sh11.svwh.net,S=440,W=454:2, > ??? ??? 1589265458.M70102P9066.sh11.svwh.net,S=1207,W=1230:2,S > ??? ??? 1589265458.M781451P9066.sh11.svwh.net,S=2542,W=2598:2,RSa > ??? ??? 1589265459.M349696P9066.sh11.svwh.net,S=423,W=437:2, > ??? ??? 1589265459.M528535P9066.sh11.svwh.net,S=2524,W=2580:2,RS > ??? ??? 1589265459.M711271P9066.sh11.svwh.net,S=642,W=663:2, > ??? ??? 1589265459.M94223P9066.sh11.svwh.net,S=3052,W=3121:2,S > ??? ??? 1589265460.M627294P9066.sh11.svwh.net,S=708477,W=720107:2, > ??? ??? 1589265461.M386569P9066.sh11.svwh.net,S=936,W=961:2, > ??? ??? 1589265461.M651887P9066.sh11.svwh.net,S=1015,W=1037:2,S > ??? ??? 1589265462.M670360P9066.sh11.svwh.net,S=1134010,W=1152620:2, > ??? ??? 1589265463.M689693P9066.sh11.svwh.net,S=434,W=448:2,S > ??? dovecot-keywords > ??? dovecot-uidlist > ??? dovecot.index.cache > ??? dovecot.index.log > ??? maildirfolder > ??? new > ??? tmp > > .... > > regarding formats as you previously mentioned, I don't know ANYTHING about mail > formats mbox vs maildir... But I see that the files under "cur" are my actual > messages and they apparently are gzipped.. So I can for example do: > > ~/Documents/mail/patrick/.sent-mail-sep-2018/cur>cat "1589265461.M651887P9066.sh11.svwh.net,S=1015,W=1037:2,S" | gunzip > Date: Thu, 27 Sep 2018 21:56:28 -0700 (PDT) > From: "Patrick J. Collins" > To: > Subject: Re: > In-Reply-To: > Message-ID: > References: > User-Agent: Alpine 2.11 (OSX 23 2013-08-11) > MIME-Version: 1.0 > Content-Type: TEXT/PLAIN; charset=US-ASCII > > > > ... Anyway, so with the Local /Users/patrick/Documents/mail/patrick/[] > under folder-collections > > Alpine now shows: > -------------------------------------------------------------------------------------------------------------------------------- > Folder-Collection > -------------------------------------------------------------------------------------------------------------------------------- > > INBOX > > -------------------------------------------------------------------------------------------------------------------------------- > Folder-Collection > -------------------------------------------------------------------------------------------------------------------------------- > > [Select Here to See Expanded List] > > -------------------------------------------------------------------------------------------------------------------------------- > Folder-Collection > -------------------------------------------------------------------------------------------------------------------------------- > > [Select Here to See Expanded List] > > ... And if I expand under Local there, I see only those two visible files: > > dovecot.mailbox.log.2 maildirsize > > If I rename one of my folders from a dotfile, say .sent-mail-sep-2018 to > sent-mail-sep-2018, then that as well shows up, and if I select it, I see in > Alpine: > > Local folders in /Users/patrick/Documents/mail/patrick/ > Dir: sent-mail-sep-2018/ > -------------------------------------------------------------------------------------------------------------------------------- > > cur/ dovecot-keywords dovecot-uidlist dovecot.index.cache dovecot.index.log maildirfolder > new/ tmp/ > > and if I select cur... > Local folders in /Users/patrick/Documents/mail/patrick/ > Dir: sent-mail-sep-2018/cur/ > ------------------------------------------------------------------------------------------------------------------------------ > > 1589265452.M997649P9066.sh11.svwh.net,S=2377,W=2452:2,S 1589265453.M163519P9066.sh11.svwh.net,S=931,W=948:2,S > 1589265453.M347635P9066.sh11.svwh.net,S=508,W=523:2, 1589265453.M467958P9066.sh11.svwh.net,S=831,W=852:2,S > 1589265453.M599150P9066.sh11.svwh.net,S=841,W=864:2,S 1589265453.M782238P9066.sh11.svwh.net,S=5114,W=5190:2, > 1589265453.M968419P9066.sh11.svwh.net,S=5107,W=5175:2, 1589265454.M237423P9066.sh11.svwh.net,S=1029,W=1057:2,S > 1589265454.M557229P9066.sh11.svwh.net,S=442,W=456:2, 1589265454.M763921P9066.sh11.svwh.net,S=2417,W=2467:2,S > 1589265454.M921825P9066.sh11.svwh.net,S=458,W=474:2, 1589265455.M130583P9066.sh11.svwh.net,S=1511,W=1544:2,S > 1589265455.M341382P9066.sh11.svwh.net,S=984,W=1010:2,S 1589265456.M494800P9066.sh11.svwh.net,S=692473,W=703841:2, > 1589265457.M582095P9066.sh11.svwh.net,S=459,W=473:2, 1589265457.M775470P9066.sh11.svwh.net,S=505,W=520:2, > 1589265457.M932204P9066.sh11.svwh.net,S=774,W=797:2,S 1589265458.M199355P9066.sh11.svwh.net,S=496,W=514:2,S > 1589265458.M442489P9066.sh11.svwh.net,S=440,W=454:2, 1589265458.M70102P9066.sh11.svwh.net,S=1207,W=1230:2,S > 1589265458.M781451P9066.sh11.svwh.net,S=2542,W=2598:2,RSa 1589265459.M349696P9066.sh11.svwh.net,S=423,W=437:2, > 1589265459.M528535P9066.sh11.svwh.net,S=2524,W=2580:2,RS 1589265459.M711271P9066.sh11.svwh.net,S=642,W=663:2, > 1589265459.M94223P9066.sh11.svwh.net,S=3052,W=3121:2,S 1589265460.M627294P9066.sh11.svwh.net,S=708477,W=720107:2, > 1589265461.M386569P9066.sh11.svwh.net,S=936,W=961:2, 1589265461.M651887P9066.sh11.svwh.net,S=1015,W=1037:2,S > 1589265462.M670360P9066.sh11.svwh.net,S=1134010,W=1152620:2, 1589265463.M689693P9066.sh11.svwh.net,S=434,W=448:2,S > > And selecting any of those results in an unviewable message, such as: > > Date: Sat, 25 Jun 2022 18:48:57 > From: patrick@collinatorstudios.com > Subject: /Users/patrick/Documents/mail/patrick/sent-mail-sep-2018/cur/1589265452.M997649P9066.sh11.svwh.net,S=2377,W=2452:2,S > Parts/Attachments: > 1 OK 1.3 KB Application > ---------------------------------------- > > > > [ Part 1, Application/OCTET-STREAM (Name: "1589265452.M997649P9066.sh11.svwh.net,S=2377,W=2452:2,S") 1.3 KB. ] > [ Not Shown. Use the "V" command to view or save this part. ] > > where if I view this, it just opens in my external text editor the unreadable > gzipped contents... > > ........... > > So.. my confusion now is, why/how is Alpine able to display these gzipped > messages remotely -- but not locally? > > Like I said, I know nothing about mail formats, so I don't even know how I > would tell Alpine to use mbox instead of maildir, what the benefit of that > would be, but I don't see anything in alpine's config options or the .pinerc > file about mbox or maildir, so I don't know how or why it is using maildir > (perhaps this is something my webhost company has chosen on my behalf?) > > Anyway, I am kind of at a loss as to what I should be doing to make these > messages viewable in Alpine. Unless I just should gunzip these directories as > part of my process of pulling archival folders off of the remote server? > > Any advice or thoughts about this would be greatly appreciated! > > Patrick J. Collins > https://collinatorstudios.com > > > - Done. > > From superaorta at gmail.com Thu Jun 30 06:57:43 2022 From: superaorta at gmail.com (superaorta@gmail.com) Date: Fri Mar 22 14:17:32 2024 Subject: [Alpine-info] search: found on line 48 of the screen Message-ID: <1656599708.cJOVAafXjk@lunesta> Is there any way to make searching in an email more useful than this? [Found on line 31 on screen] Having to count 30 or 40 lines down the screen doesn't seem very friendly!