problem MEGA-CMD
ferdinandogalera opened this issue · 0 comments
Dear Support.
I have been testing the MEGA-CMD solution on my CentOS 8 Linux server and have encountered some issues that I need your help with:
- Confirmation email language:**
- The email sent by
mega-signup
does not use the systemLOCALE
variable, which is set to PT-BR. The confirmation email is always sent in German. - I believe the email language is based on the server's IP address and not on the
LOCALE
variable. I have already opened a support ticket, but the issue has not been resolved. - I have also posted a question on GitHub about this issue.
- Account creation solution:**
- Since I need the user of my system (tanobau.com) to confirm and create the account to inform in the system preferences, I have developed the following solution:
- When an account is created in the TANOBAU.COM system, an email is automatically created in the ISPCONFIG system (which monitors my Linux).
- For example, the email
[testelocal@gmail.com](mailto:testelocal@gmail.com)
becomes[testelocal@tanobau.com](mailto:testelocal@tanobau.com)
. - With this new email, I run:
mega-login [tanobaubr@gmail.com](mailto:tanobaubr@gmail.com) (password)
mega-invite [testelocal@tanobau.com](mailto:testelocal@tanobau.com)
mega-logout
mega-signup [testelocal@tanobau.com](mailto:testelocal@tanobau.com) (password used in [TANOBAU.COM](http://tanobau.com/))
- Then, I monitor the POP email until I receive the confirmation email in German.
- I extract the confirmation link and confirm the account in MEGA:
mega-confirm LINKCONFIRMACAO [testelocal@tanobau.com](mailto:testelocal@tanobau.com)
- Finally, I confirm the account with the login:
mega-login [testelocal@tanobau.com](mailto:testelocal@tanobau.com) (password)
- This way, I can connect to MEGA.NZ and see who the account belongs to.
- Observations:**
- The process works correctly, but the confirmation email is not sent in Portuguese.
- When creating the account in my system, file synchronization is automatic.
- The user can decide later whether to contract MEGA's services.
- Log example:**
I created 3 accounts today: [oitavoemail@tanobau.com](mailto:oitavoemail@tanobau.com)
, [nonoemail@tanobau.com](mailto:nonoemail@tanobau.com)
and [decimoemail@tanobau.com](mailto:decimoemail@tanobau.com)
. All were invited by [tanobaubr@gmail.com](mailto:tanobaubr@gmail.com)
. The mega-showpcr
command generated the following log:
mega-showpcr
Outgoing PCRs:
oitavoemail@tanobau.com (id: 9r4qhDFIWRg, creation: Tue, 09 Apr 2024 10 :59:34 -0300, modification: Tue, 09 Apr 2024 10:59:34 -0300)
decimoemail@tanobau.com (id: vSPCseOq548, creation: Wed, 10 Apr 2024 10 :17:00 -0300, modification: Wed, 10 Apr 2024 10:17:00 -0300)
nonoemail@tanobau.com (id: olrMsmZFNfQ, creation: Wed, 10 Apr 2024 10:11:57 - 0300, modification: Wed, 10 Apr 2024 10:11:57 -0300)
- Achievements and tanobau.com domain:
When accessing the TANOBAUBR@gmail.com account on MEGA.NZ and going to "https://mega.nz/fm/dashboard" (achievements), you will not see any of the emails listed in the mega-showpcr command. This is because achievements are assigned to the email used to create the MEGA account, in this case tanobaubr@gmail.com.
Since the tanobau.com domain is monitored and only allows 1 account, the achievements of the @tanobau.com accounts will not be assigned to the main account?
To work around this, you can:
Create sub-accounts on MEGA using the tanobaubr@gmail.com email as the main one. The achievements of the sub-accounts will be assigned to the main account.
Use a third-party service to manage the achievements of multiple accounts.
- MEGA API package and MEGA-CMD:
I understand the frustration with installing and using the MEGA API package. MEGA-CMD is a simpler and more functional alternative for many users.
3. Limitations of MEGA-CMD in PHP scripts:
It is true that MEGA-CMD does not work inside PHP scripts when using the mega-login command. This is because of the browser-based authentication, which is not possible in scripts.
As a workaround, you can:
Use the PHP library "API mega" to interact with the MEGA API.
Run the mega-login command manually before running the PHP script.
Use a third-party service to automate authentication and use of the MEGA API.
Final considerations:
I understand that you are planning to use MEGA for a large number of accounts and files. It is important to consider the limitations of the MEGA API and MEGA-CMD when planning your project.
I recommend that you explore the alternatives and solutions mentioned above to ensure that your needs are met.
I appreciate your understanding and hope this response has been helpful.
I will be available to answer any questions you may have.
Additional notes:
This text has been translated to English using Google Translate.
I have tried my best to ensure the accuracy of the translation, but there may be some errors.
If you have any questions or concerns, please feel free to contact me.
This text has been create GEMINI IA
thanks
Ferdinando Galera