Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.
/ mail2diaspora Public archive

[DEPRECATED] Post text and image to Diaspora via e-mails

License

Notifications You must be signed in to change notification settings

kianby/mail2diaspora

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[DEPRECATED]

Mail to Diaspora

Small piece of code providing a way to post text and image to Diaspora via emails. It is part of my ecosystem built around RabbitMQ. It depends on SRMail to send and receive e-mails. Other dependencies are listed in requirements.txt. Mail2Diaspora is written in Python 3.

config.json is a configuration example.

Diaspy connection patch for Framasphere:

class Connection():
    """Object representing connection with the pod.
    """
    _token_regex = re.compile(r'name="csrf-token"\s+content="(.*?)"')
    _userinfo_regex = re.compile(r'window.current_user_attributes = ({.*})')
    # this is for older version of D*
    _token_regex_2 = re.compile(r'content="(.*?)"\s+name="csrf-token')
    _userinfo_regex_2 = re.compile(r'gon.user=({.*});gon.appConfig')
    _verify_SSL = True

About

[DEPRECATED] Post text and image to Diaspora via e-mails

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published